Console

Get Task

GET/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

FieldTypeRequiredDescription
task_idstringRequired

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.

FieldTypeDescription
id: string

Task ID corresponding to the task_id in the path.

object: string

Task object type, for example audio.speech / audio.voice_generation / audio.transcription.

status: string

Task status, for example PENDING / PROCESSING / SUCCESS / FAILED.

created_at: integer

Creation time, a Unix timestamp in seconds.

updated_at: integer

Last update time, a Unix timestamp in seconds.

error: object

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.

FieldTypeConditionDescription
urlstringOn success

Audio result URL.

response_formatstringOn success

Actual output audio format, for example wav.

content_typestringOn success

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.

FieldTypeConditionDescription
textstringSuccessful standard transcription

Complete transcription text.

segmentsarraySuccessful diarization

Diarized segments; may be an empty array when there are no valid segments.

segments[].speakerstringWith segments

Speaker identifier.

segments[].textstringWith segments

Text for the segment.

segments[].startnumberWith segments

Segment start time in seconds.

segments[].endnumberWith segments

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

HTTPerror.codeTriggerSuggested action
404task_not_foundThe specified task_id does not exist or is not visibleUse the task_id returned by the creation endpoint and verify that the API Key can access the task.