POST
/
v1
/
audio
/
translations
curl -X POST https://api.example.com/v1/audio/translations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F file="@/path/to/audio.mp3" \
  -F model="whisper-1"
{
  "text": "Hello, my name is Wolfgang and I come from Germany. Where are you heading today?"
}
This endpoint is currently not supported.
Translates audio into English text.

Request Parameters

file
file
required
The audio file object (not file name) to translate, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm.
model
string
required
ID of the model to use. Only whisper-1 is currently available.
prompt
string
An optional text to guide the model’s style or continue a previous audio segment. The prompt should be in English.
response_format
string
The format of the translation output, in one of these options: json, text, srt, verbose_json, vtt.
temperature
number
default:"0"
The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.

Response

text
string
required
The translated English text.
curl -X POST https://api.example.com/v1/audio/translations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F file="@/path/to/audio.mp3" \
  -F model="whisper-1"
{
  "text": "Hello, my name is Wolfgang and I come from Germany. Where are you heading today?"
}