Request Body
This endpoint acceptsmultipart/form-data.
The audio file to translate. Supported formats:
flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm. Maximum file size is 25MB.The model to use for translation (e.g.,
whisper-1).Optional text to guide the model’s style. Should be in English.
The output format. Options:
json, text, srt, verbose_json, vtt.Sampling temperature between 0 and 1.
Response
The translated English text.
Examples
Basic Translation
With Prompt Guidance
SRT Subtitles in English
Response Example
Supported Languages
The translation endpoint accepts audio in any of the following languages and translates to English:| Language | Code | Language | Code |
|---|---|---|---|
| Afrikaans | af | Korean | ko |
| Arabic | ar | Latvian | lv |
| Chinese | zh | Lithuanian | lt |
| Czech | cs | Malay | ms |
| Danish | da | Norwegian | no |
| Dutch | nl | Polish | pl |
| Finnish | fi | Portuguese | pt |
| French | fr | Romanian | ro |
| German | de | Russian | ru |
| Greek | el | Spanish | es |
| Hebrew | he | Swedish | sv |
| Hindi | hi | Thai | th |
| Hungarian | hu | Turkish | tr |
| Indonesian | id | Ukrainian | uk |
| Italian | it | Vietnamese | vi |
| Japanese | ja |
Unlike transcription, translation always outputs English text regardless of the input language.
