API integration deep-dive
Embed Artisser's generation API into your own product with authentication, webhooks, and error handling.
- 1
Generate an API key
Go to Settings → API keys and click Create key. Scope it to the minimum permissions your integration needs and store it in an environment variable — never hardcode it.
- 2
Make your first request
POST your prompt and generation parameters to the API endpoint. The response streams back as server-sent events, so you can forward progress to your own UI in real time.
- 3
Handle errors and retries
Treat 429 (rate limited) with exponential back-off. Treat 5xx responses as transient and retry up to three times. Log the request ID from the response header to make debugging tractable.
- 4
Set up a webhook for async jobs
Long video generations run asynchronously. Register a webhook URL in Settings to receive a POST when the job completes, rather than polling the status endpoint.
Ready to try it yourself?
Artisser is free to start — 150 credits every day, no credit card required.
Start free