/v1/tasks/{task_id} to query asynchronous task state.
Status values
pendingprocessingcompletedfailedexpired
Completed task
The shape ofresult depends on the task type.
Image tasks return the OpenAI image format — the image URL is at result.data[0].url:
result.video_url / result.audio_url, and every output is also listed in result.urls[]: