Skip to main content
Every generation submission creates a stable API request with an ID beginning with req_. Use that request ID to track the workflow from submission through its terminal state.

Idempotency keys

POST /api/v1/generations requires an Idempotency-Key header of at most 255 safe characters.
  • Reusing a key with the same request body returns the original request.
  • Reusing a key with a different body returns 409 conflict.
  • Use one key per logical operation and keep it stable across network retries.
  • Do not reuse keys for recurring jobs or separate user actions.
Good keys include your own order ID or a UUID:

Status lifecycle

Completed media URLs are owner-authorized application routes. Treat them as temporary access URLs and copy output into your own approved workflow when needed.