Create translation
POST
https://api.openai.com/v1/audio/translations
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.openai.com/v1/audio/translations' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: multipart/form-data' \
--form 'file=@""' \
--form 'model="whisper-1"' \
--form 'prompt=""' \
--form 'response_format="json"' \
--form 'temperature="0"'
Response Response Example
{
"text": "Hello, my name is Wolfgang and I come from Germany. Where are you heading today?"
}
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
model
stringΒ
required
whisper-1
Β is currently available.Example:
whisper-1
prompt
stringΒ
optional
response_format
stringΒ
optional
Example:
json
temperature
numberΒ
optional
Example:
0
Responses
Modified atΒ 2023-06-28 06:09:10