If the audio output modality is requested, this object contains data about the audio response from the model. Learn more.

interface ChatCompletionAudio {
    data: string;
    expires_at: number;
    id: string;
    transcript: string;
}

Properties

data: string

Base64 encoded audio bytes generated by the model, in the format specified in the request.

expires_at: number

The Unix timestamp (in seconds) for when this audio response will no longer be accessible on the server for use in multi-turn conversations.

id: string

Unique identifier for this audio response.

transcript: string

Transcript of the audio generated by the model.