Skip to main content
POST
curl

Authorizations

Authorization
string
header
required

An account API key. Send it as Authorization: Bearer <key>.

Body

multipart/form-data

The audio to translate into English, as the part named file, beside the model to translate with and two optional hints.

The multipart/form-data body of POST /v1/audio/transcriptions and of POST /v1/audio/translations — one audio upload and three text fields.

model
string
required

The model to transcribe or translate with, named by its id or alias.

file
file
required

The audio file itself. The gateway converts the container where the provider needs another.

prompt
string | null

A free-form hint for the provider: names, jargon, expected style.

language
string | null

The language spoken in the audio, as a lower-case ISO 639-1 code. Any other shape draws a 400.

Response

The English translation, as one object with one key.

The answer both audio-to-text routes give: the recognized text.

text
string
required

What the model heard in the uploaded audio, and the whole body.