Criar tradução
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
está disponível atualmente.Example:
whisper-1
prompt
string
optional
response_format
string
optional
Example:
json
temperature
number
optional
Example:
0
Responses
Modified at 2024-12-09 04:22:25