Skip to main content
All errors return JSON with an error object:

Status codes

Common fixes

Use an API key from your dashboard (ak_...). Create a new key if needed.
Add balance on the pricing page. Check your balance with GET /v1/credits.
Generation failed. Retry the request, or try a different model or shorter duration.