Skip to main content
Use /v1/tasks/{task_id} to query asynchronous task state.

Status values

  • pending
  • processing
  • completed
  • failed
  • expired

Completed task

The shape of result depends on the task type. Image tasks return the OpenAI image format — the image URL is at result.data[0].url:
Video and audio tasks return the primary URL at result.video_url / result.audio_url, and every output is also listed in result.urls[]:

Failed task