- API Reference
- endpoint
- audio
Audio Transcriptions
Audio Transcriptions
POST /v1/audio/transcriptions
Create Transcription
Create Transcription
Request Example
{
"model": "voxtral-mini-latest"
}
Request Body
context_bias
array<string>diarize
booleanDefault Value: false
file
FileThe File object (not file name) to be uploaded. To upload a file and specify a custom file name you should format your request as such:
file=@path/to/your/file.jsonl;filename=custom_name.jsonl
Otherwise, you can just keep the original file name:
file=@path/to/your/file.jsonl
File
The File object (not file name) to be uploaded. To upload a file and specify a custom file name you should format your request as such:
file=@path/to/your/file.jsonl;filename=custom_name.jsonl
Otherwise, you can just keep the original file name:
file=@path/to/your/file.jsonl
content
binary* requiredfileName
string* requiredfile_id
string | nullID of a file uploaded to /v1/files
file_url
string | nullUrl of a file to be transcribed
language
string | nullLanguage of the audio, e.g. 'en'. Providing the language can boost accuracy.
model
string* requiredID of the model to be used.
Examples:
voxtral-mini-latest
voxtral-mini-2507
speaker_references
map<string>Dictionary of speaker names and reference audios for speakers who are known to appear in the audio. When enabled, diarize must be true. Predicted speakers will be matched against reference speakers from this dictionary.
stream
booleanDefault Value: false
temperature
number | nulltimestamp_granularities
array<"segment" | "word">Granularities of timestamps to include in the response.
Responses
Successful Response
language
string | null* requiredmodel
string* requiredsegments
array<TranscriptionSegmentChunk>TranscriptionSegmentChunk
end
number | null* requiredscore
number | nullspeaker_id
string | nullstart
number | null* requiredtext
string* requiredtype
stringDefault Value: "transcription_segment"
text
string* requiredUsageInfo
completion_tokens
integerDefault Value: 0
prompt_audio_seconds
integer | nullprompt_tokens
integerDefault Value: 0
prompt_tokens_details
PromptTokensDetails | nullToken usage details for the prompt.
PromptTokensDetails
Token usage details for the prompt.
audio_tokens
integerDefault Value: 0
cached_tokens
integerDefault Value: 0
service_tier
string | nullThe service tier at which the request was processed: standard or priority.
total_tokens
integerDefault Value: 0
POST /v1/audio/transcriptions#stream
Create Streaming Transcription (SSE)
Create Streaming Transcription (SSE)
Request Example
{
"model": "ipsum eiusmod"
}
Request Body
context_bias
array<string>diarize
booleanDefault Value: false
file
FileThe File object (not file name) to be uploaded. To upload a file and specify a custom file name you should format your request as such:
file=@path/to/your/file.jsonl;filename=custom_name.jsonl
Otherwise, you can just keep the original file name:
file=@path/to/your/file.jsonl
File
The File object (not file name) to be uploaded. To upload a file and specify a custom file name you should format your request as such:
file=@path/to/your/file.jsonl;filename=custom_name.jsonl
Otherwise, you can just keep the original file name:
file=@path/to/your/file.jsonl
content
binary* requiredfileName
string* requiredfile_id
string | nullID of a file uploaded to /v1/files
file_url
string | nullUrl of a file to be transcribed
language
string | nullLanguage of the audio, e.g. 'en'. Providing the language can boost accuracy.
model
string* requiredspeaker_references
map<string>Dictionary of speaker names and reference audios for speakers who are known to appear in the audio. When enabled, diarize must be true. Predicted speakers will be matched against reference speakers from this dictionary.
stream
booleanDefault Value: true
temperature
number | nulltimestamp_granularities
array<"segment" | "word">Granularities of timestamps to include in the response.
Server-Side Events
Stream of transcription events
TranscriptionStreamEvents
data
TranscriptionStreamTextDelta | TranscriptionStreamLanguage | TranscriptionStreamSegmentDelta | TranscriptionStreamDone | TurnDetectionStartEvent | TurnDetectionEagerEndEvent | TurnDetectionResumeEvent | TurnDetectionEndEvent* requiredTranscriptionStreamTextDelta
text
string* requiredtype
stringDefault Value: "transcription.text.delta"
TranscriptionStreamLanguage
audio_language
stringPattern: ^[A-Za-z]{2,3}(?:[-_][A-Za-z0-9]+)*$* requiredtype
stringDefault Value: "transcription.language"
TranscriptionStreamSegmentDelta
end
number | null* requiredspeaker_id
string | nullstart
number | null* requiredtext
string* requiredtype
stringDefault Value: "transcription.segment"
TranscriptionStreamDone
language
string | null* requiredmodel
string* requiredsegments
array<TranscriptionSegmentChunk>TranscriptionSegmentChunk
end
number | null* requiredscore
number | nullspeaker_id
string | nullstart
number | null* requiredtext
string* requiredtype
stringDefault Value: "transcription_segment"
text
string* requiredtype
stringDefault Value: "transcription.done"
UsageInfo
completion_tokens
integerDefault Value: 0
prompt_audio_seconds
integer | nullprompt_tokens
integerDefault Value: 0
prompt_tokens_details
PromptTokensDetails | nullToken usage details for the prompt.
PromptTokensDetails
Token usage details for the prompt.
audio_tokens
integerDefault Value: 0
cached_tokens
integerDefault Value: 0
service_tier
string | nullThe service tier at which the request was processed: standard or priority.
total_tokens
integerDefault Value: 0
TurnDetectionStartEvent
time_s
numberMin: 0* requiredtype
stringDefault Value: "turn.start"
TurnDetectionEagerEndEvent
time_s
numberMin: 0* requiredtype
stringDefault Value: "turn.eager_end"
TurnDetectionResumeEvent
time_s
numberMin: 0* requiredtype
stringDefault Value: "turn.resume"
TurnDetectionEndEvent
end_reason
"threshold" | "timeout"* requiredtime_s
numberMin: 0* requiredtype
stringDefault Value: "turn.end"