Create translation

post/v1/audio/translations

Request

Request body multipart/form-data

filestring binary required

The audio file to translate. Supported formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.

modelstring required

The audio translation model to use. Choose a current speech model from the Models page.

promptstring

Optional text to guide the model's style or continue a previous audio segment. The prompt should be in English.

response_format'json' | 'text' | 'srt' | 'verbose_json' | 'vtt'

The output format for the translation.

temperaturenumber

Sampling temperature between 0 and 1. Higher values produce more random output; lower values are more focused. When set to 0, the model auto-adjusts temperature using log probability.

Response

The translation result in English.

textstring required

The translated text in English.

Changes

No recorded changes to this operation across all 1 revision of this API.