Skip to main content
POST
/
v1
/
audio
/
transcriptions
Transcribe audio (STT)
curl --request POST \
  --url https://tokens.flex.ai/v1/audio/transcriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form model=whisper-large-v3-turbo \
  --form 'language=<string>'
{
  "text": "<string>"
}

Authorizations

Authorization
string
header
required

Virtual API key. Create one from the FlexAI dashboard. Pass as Authorization: Bearer sk-xxxx.

Body

multipart/form-data
file
file
required
model
string
required
Example:

"whisper-large-v3-turbo"

language
string

ISO-639-1 code.

Response

Transcription result.

text
string