curl --request POST \
--url https://api.openai.com/v1/audio/translations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form model=whisper-1 \
--form 'prompt=<string>' \
--form response_format=json \
--form temperature=0 \
--form file=@example-file
{
"text": "<string>"
}
Translates audio into English.
curl --request POST \
--url https://api.openai.com/v1/audio/translations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form model=whisper-1 \
--form 'prompt=<string>' \
--form response_format=json \
--form temperature=0 \
--form file=@example-file
{
"text": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
OK
The response is of type object
.
Was this page helpful?