Errors & retries

Determine whether a request was accepted before correcting, waiting or retrying.

Updated October 7, 2026View Markdown ↗

Common cases

CaseRecommended action
401Check whether the key is correct, active and unexpired.
403 / model_not_foundCheck model access and membership instead of repeatedly submitting.
429Back off as instructed by the server and reduce concurrency.
generation_pendingThe task may still be running. Preserve the original idempotency key.
Expired quoteGet a fresh quote and use its quote_id.
Stream disconnectedQuery the task or reconnect to its event stream.

Keep diagnostic details

Record the time, endpoint, HTTP status, error code and task ID. Remove API keys and private media before sharing diagnostics. Avoid logging only “generation failed”.