Skip to main content
POST
/
v1
/
openai
/
audio
/
translations
Openai Audio Translations
curl --request POST \
  --url https://api.example.com/v1/openai/audio/translations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'model=<string>' \
  --form 'prompt=<string>' \
  --form response_format=json \
  --form temperature=0
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-deepinfra-source
string | null
xi-api-key
string | null

Body

multipart/form-data
file
file
required
model
string
required
prompt
string | null
response_format
enum<string> | null
default:json
Available options:
json,
verbose_json,
text,
srt,
vtt
temperature
number | null
default:0

Response

Successful Response