Skip to main content
Poll the status_url returned by the submission response until the request reaches a terminal state.
  1. Start with a two-second interval.
  2. Increase the interval gradually up to ten seconds.
  3. Add random jitter when many workers poll concurrently.
  4. Stop on completed, failed, nsfw, or canceled.
  5. Set an application-level timeout appropriate for the selected model.

Retry decisions

For long-running production workloads, use webhooks and keep polling as a recovery path.