/audio/translationsTranslate audio into English
Translates an audio file into English and returns the result in a selected format. Provide the file and model, then optionally use prompt to guide the translation style. Send the file as multipart form data with metadata that lets the service identify its audio format.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Multipart form data containing an audio file and translation settings. file and model are required.
One documented failure
slow_downYour request rate increased too quickly. Please reduce the request rate and gradually increase it again.
Traffic increased too quickly
One documented failure
server_is_overloadedThe model is temporarily overloaded. Please retry your request after a brief delay.
The requested model is temporarily overloaded
A 400 is returned for invalid audio input or request parameters; a 401 indicates a missing or revoked API key or an unauthorized client IP; a 403 indicates organization policy blocks access; and a 413 indicates the request exceeds the supported size limit. A 429 indicates a rate limit was exceeded, a 500 indicates the audio could not be processed, a 502 indicates an upstream audio service connection failure, and a 503 indicates temporary service unavailability. file and model are required, model must be whisper-1, response_format must be one of the supported formats, and temperature must be between 0 and 1.