Get Task
/v1/audio/tasks/{task_id}Use the task_id returned by an asynchronous request to query task status and results. Applies to speech generation, voice generation, and audio transcription tasks.
Path parameters
The task ID returned by the asynchronous request.
Return value
The endpoint returns the task's current status. On success, result fields appear directly at the top level of the response.
Task ID corresponding to the task_id in the path.
Task object type, for example audio.speech / audio.voice_generation / audio.transcription.
Task status, for example PENDING / PROCESSING / SUCCESS / FAILED.
Creation time, a Unix timestamp in seconds.
Last update time, a Unix timestamp in seconds.
Task execution failure details.
Audio task result
When status=SUCCESS and object is audio.speech or audio.voice_generation, the response includes an audio result URL. Use the returned response_format and content_type for the actual format.
Audio result URL.
Actual output audio format, for example wav.
Audio MIME type, for example audio/wav.
Transcription task result
When status=SUCCESS and object=audio.transcription, text contains the complete transcription; speaker diarization tasks also return segments.
Complete transcription text.
Diarized segments; may be an empty array when there are no valid segments.
Speaker identifier.
Text for the segment.
Segment start time in seconds.
Segment end time in seconds.
Task failure
status=FAILED means the task was created but failed during execution. This differs from a query error when the task does not exist or cannot be accessed. The failure details are in error.
Error codes
| HTTP | error.code | Trigger | Suggested action |
|---|---|---|---|
| 404 | task_not_found | The specified task_id does not exist or is not visible | Use the task_id returned by the creation endpoint and verify that the API Key can access the task. |