Create translation
POST
https://api.openai.com/v1/audio/translationsTranscribes audio into the input language.
Request
Header Params
Content-Type
string
required
Example:
multipart/form-data
Accept
string
required
Example:
application/json
Authorization
string
optional
Example:
Bearer {{YOUR_API_KEY}}
Body Params multipart/form-data
file
file
required
The audio file object (not file name) translate, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.
model
string
required
ID of the model to use. Only whisper-1
is currently available.
Example:
whisper-1
prompt
string
optional
An optional text to guide the model's style or continue a previous audio segment. The prompt should be in English.
response_format
string
optional
The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.
Example:
json
temperature
number
optional
The format of the transcript output, in one of these options: json, text, srt, verbose_json, or vtt.
Example:
0
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
text
string
required
ExampleOK
{
"text": "Hello, my name is Wolfgang and I come from Germany. Where are you heading today?"
}
Last modified: a year ago