mistralM

Docs

sideBar

Audio Transcriptions

API for audio transcription.

POST /v1/audio/transcriptions

Create Transcription

Create Transcription

Request Example

{
  "model": "voxtral-mini-latest"
}

Request Body

context_bias
array<string>
diarize
boolean

Default Value: false

file
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
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* required
fileName
string* required
file_id
string | null

ID of a file uploaded to /v1/files

file_url
string | null

Url of a file to be transcribed

language
string | null

Language of the audio, e.g. 'en'. Providing the language can boost accuracy.

model
string* required

ID 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
boolean

Default Value: false

temperature
number | null
timestamp_granularities
array<"segment" | "word">

Granularities of timestamps to include in the response.

Responses

Successful Response

language
string | null* required
model
string* required
TranscriptionSegmentChunk
end
number | null* required
score
number | null
speaker_id
string | null
start
number | null* required
text
string* required
type
string

Default Value: "transcription_segment"

text
string* required
usage
UsageInfo* required
UsageInfo
completion_tokens
integer

Default Value: 0

prompt_audio_seconds
integer | null
prompt_tokens
integer

Default Value: 0

prompt_tokens_details
PromptTokensDetails | null

Token usage details for the prompt.

PromptTokensDetails

Token usage details for the prompt.

audio_tokens
integer

Default Value: 0

cached_tokens
integer

Default Value: 0

service_tier
string | null

The service tier at which the request was processed: standard or priority.

total_tokens
integer

Default 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
boolean

Default Value: false

file
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
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* required
fileName
string* required
file_id
string | null

ID of a file uploaded to /v1/files

file_url
string | null

Url of a file to be transcribed

language
string | null

Language of the audio, e.g. 'en'. Providing the language can boost accuracy.

model
string* required
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
boolean

Default Value: true

temperature
number | null
timestamp_granularities
array<"segment" | "word">

Granularities of timestamps to include in the response.

Server-Side Events

event-stream<TranscriptionStreamEvents>

Stream of transcription events

TranscriptionStreamEvents
TranscriptionStreamTextDelta
text
string* required
type
string

Default Value: "transcription.text.delta"

TranscriptionStreamLanguage
audio_language
stringPattern: ^[A-Za-z]{2,3}(?:[-_][A-Za-z0-9]+)*$* required
type
string

Default Value: "transcription.language"

TranscriptionStreamSegmentDelta
end
number | null* required
speaker_id
string | null
start
number | null* required
text
string* required
type
string

Default Value: "transcription.segment"

TranscriptionStreamDone
language
string | null* required
model
string* required
TranscriptionSegmentChunk
end
number | null* required
score
number | null
speaker_id
string | null
start
number | null* required
text
string* required
type
string

Default Value: "transcription_segment"

text
string* required
type
string

Default Value: "transcription.done"

usage
UsageInfo* required
UsageInfo
completion_tokens
integer

Default Value: 0

prompt_audio_seconds
integer | null
prompt_tokens
integer

Default Value: 0

prompt_tokens_details
PromptTokensDetails | null

Token usage details for the prompt.

PromptTokensDetails

Token usage details for the prompt.

audio_tokens
integer

Default Value: 0

cached_tokens
integer

Default Value: 0

service_tier
string | null

The service tier at which the request was processed: standard or priority.

total_tokens
integer

Default Value: 0

TurnDetectionStartEvent
time_s
numberMin: 0* required
type
string

Default Value: "turn.start"

TurnDetectionEagerEndEvent
time_s
numberMin: 0* required
type
string

Default Value: "turn.eager_end"

TurnDetectionResumeEvent
time_s
numberMin: 0* required
type
string

Default Value: "turn.resume"

TurnDetectionEndEvent
end_reason
"threshold" | "timeout"* required
time_s
numberMin: 0* required
type
string

Default Value: "turn.end"

event
"transcription.language" | "transcription.segment" | "transcription.text.delta" | "transcription.done" | "turn.start" | "turn.eager_end" | "turn.resume" | "turn.end"* required