Learning resourcesReviewed · Mistral AI

Mistral Quickstart: Generate Speech (Voxtral text-to-speech)

This is a short Mistral documentation quickstart that shows developers how to turn text into spoken audio with Mistral's hosted voxtral-mini-tts-3-0 model. Its main catch is that it needs a Mistral API key and gives no pricing or usage limits. It covers one basic call in curl, Python and TypeScript: send text and a preset voice ID to the speech endpoint, decode the base64 audio in the reply, then save or play it as a WAV file.

Researched 15 Nov 2026

In short.

This is a short Mistral documentation quickstart that teaches developers to generate speech from text with the hosted voxtral-mini-tts-3-0 model. Its main catch is that it needs a Mistral API key, and the page says nothing about pricing, limits or licensing. The page shows one request to [https://api.mistral.ai/v1/audio/speech] using the preset voice gb_jane_neutral and WAV output. The API returns base64-encoded audio in an audio_data field, which the examples decode and then save or play. There are three versions: curl with jq, Python with sounddevice and soundfile, and TypeScript with play-sound. Nothing was run for this report. The page also has a small mismatch: the sentence it says you will hear is not the sentence in the code.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is one Mistral documentation page, Quickstart: generate speech, at [https://docs.mistral.ai/studio/audio/text-to-speech/quickstarts/generate-speech.md], captured in full. Pages it links to are outside scope and were not read: the voice list, style instructions, stream speech, the Mistral console and API key pages, and the jq site. No licence, pricing, changelog or SDK source evidence was captured. Nothing was run: the curl, Python and TypeScript examples, the model's audio quality and latency, and the SDK's behaviour are all untested and not assessed. Cost, rights and limits remain unknown.

The overview

What this resource is

This is a single page of Mistral's developer documentation titled Quickstart: generate speech. It sits in the Studio audio text-to-speech section and is served at [https://docs.mistral.ai/studio/audio/text-to-speech/quickstarts/generate-speech.md]. Its description is: Convert text into natural speech and play it back with one API call.

It is a tutorial for a hosted service, not a downloadable model or a library. The service is Mistral's text-to-speech API, and the page uses the model identifier voxtral-mini-tts-3-0. The page does not name an author, version or publication date.

Overall assessment

As a first-call tutorial it is compact and complete. It covers getting a key, installing dependencies, making the request, decoding the response and hearing the result, and it shows the same flow in three languages or tools. It is a good place to start if you want to confirm that Mistral's speech endpoint works from your own machine.

It is only a starting point. It shows one voice, one output format and one short sentence. It leaves out pricing, rate limits, error handling, supported languages and input length limits. Treat it as a way into the API, not a full guide to building a speech feature. None of the code was run for this report, so every behaviour described here comes from what the page says.

Who it is for

It suits developers, from beginners to experienced engineers, who want to add synthetic speech to an app, script or prototype and are happy to call a hosted API. The steps are simple enough for someone new to APIs: set an environment variable, install packages, paste a snippet. The raw HTTP request in the curl tab also helps experienced developers who work in another language and want to see the request fields and the audio_data response field used by the example.

It is a poor fit if you need to run speech synthesis offline or on your own hardware, because the page only shows calls to Mistral's hosted endpoint. It also gives no basis for judging whether the service meets compliance, privacy or data residency needs, because the page does not cover those topics.

What it lets you do

Following the page, you can send a text string and a voice ID to Mistral's speech endpoint and get audio back. The example asks for WAV output (response_format: wav) from the model voxtral-mini-tts-3-0 with the voice gb_jane_neutral, and the text it sends is Hi there! You are listening to Voxtral.

According to the page, the Python example plays the audio straight away, the TypeScript example saves it as hello.wav and then plays it, and the curl example saves hello.wav in the current directory. The page also links to three further pages without describing them in detail: a list of all voices, style instructions for controlling delivery, and streaming speech, where audio plays while it is being generated. Those pages were not part of this review, so what they offer is unknown here.

Using it

Requirements

You need a Mistral API key, stored in the MISTRAL_API_KEY environment variable. You create it in Mistral's console at [https://console.mistral.ai], in the API keys section [https://console.mistral.ai/api-keys]. The page does not say whether a free tier exists or whether billing must be set up first.

For Python, the page installs mistralai, sounddevice and soundfile with pip. For TypeScript, it installs @mistralai/mistralai and play-sound with npm, and the examples use top-level await and ES module imports. For curl, you need jq to pull out the audio_data field and a base64 command that supports --decode. To hear the file from a terminal, the page suggests afplay on macOS or aplay on Linux.

The page does not state which Python or Node.js versions or SDK versions are supported. Apart from the two playback commands it names no operating systems, and it does not list any system audio libraries the playback packages may need. All of this is unknown from this page.

How it works

The flow is a single synchronous request and response. The client sends an HTTP POST to [https://api.mistral.ai/v1/audio/speech] with an Authorization: Bearer header carrying the API key. The JSON body has four fields: model, input (the text), voice_id and response_format.

The page says the API returns the audio base64-encoded. In curl, jq extracts the audio_data field from the JSON reply and the result is decoded to a file. In Python, client.audio.speech.complete returns an object whose audio_data is decoded with base64.b64decode, read with soundfile and played with sounddevice. In TypeScript, client.audio.speech.complete takes voiceId and responseFormat in camelCase, and the response's audioData is decoded and written to hello.wav before play-sound plays it.

This basic call returns the whole clip in one response. The page says you can instead play audio continuously as it is generated, and points to a separate streaming page for that. How streaming works is not covered here.

Setup steps

The page gives three steps. First, create an API key in Mistral's console and export it as MISTRAL_API_KEY. Second, install the SDK and a playback library: pip install mistralai sounddevice soundfile for Python, or npm install @mistralai/mistralai play-sound for TypeScript. The curl example requires curl, jq and a base64 utility supporting --decode; playback requires an audio player. Third, run the snippet for your chosen language.

The page offers no guidance on virtual environments, project layout, storing the key other than in the environment variable, or what to do if installation or playback fails. It does not mention any service setup beyond the key, such as account verification or billing.

Worked example from the page

The curl example posts this JSON: model voxtral-mini-tts-3-0, input Hi there! You are listening to Voxtral., voice_id gb_jane_neutral, response_format wav. It then pipes the reply through jq -r '.audio_data' and base64 --decode into hello.wav. You can play that file with afplay hello.wav on macOS or aplay hello.wav on Linux.

The Python example does the same through the SDK. It creates a Mistral client from the environment variable, calls client.audio.speech.complete with the same four values, wraps the decoded bytes in io.BytesIO, reads them with soundfile and plays them with sounddevice. The TypeScript example calls the same method, writes the decoded bytes to hello.wav and plays the file.

Watch for a few small points on the page. The You should hear section says the voice will say Hello! This is Voxtral, Mistral's text-to-speech model. But all three examples send Hi there! You are listening to Voxtral., so the spoken sentence will follow the code, not that line. The Python example also names a variable bytes, which hides Python's built-in bytes type, so rename it in real code. Finally, the page shows the Python import as from mistralai.client import Mistral, but this report did not check that import against the SDK.

Assessment & evidence

Limitations and unknowns

Nothing was run for this report. The examples are untested, and the voice's sound quality, latency and reliability have not been assessed.

The page does not cover supported languages or accents, maximum input length, output formats other than wav, audio sample rate or duration limits, error responses and retries, rate limits, or how the provider stores or uses input text. It shows only one voice, gb_jane_neutral, and leaves the full voice list, delivery style controls and streaming to other pages, which were not reviewed.

Playback depends on extra packages (sounddevice and soundfile in Python, play-sound in TypeScript) and, for the curl route, on an audio player. The page says the saved hello.wav can be opened in any audio player, and gives afplay on macOS and aplay on Linux only as optional terminal examples. The page does not say what the playback packages need from the operating system, so playback may need extra troubleshooting on some machines. As noted above, the page's expected-speech line does not match the sample text in the code.

Why this assessment

The assessment rests on what the page itself shows: the endpoint URL, the request fields, the response field and the three code paths. These are specific enough to follow without guessing, which is why the page counts as a usable quickstart rather than a marketing summary.

The caveats come from what the page leaves out, not from anything seen in use. Where the page is silent on cost, rights, limits or compatibility, this report says unknown instead of filling the gap. The pages it links to are outside the scope of this assessment, the examples are untested, and costs and rights remain unknown.

Alternatives and related options

The selected page names no competing resources and makes no comparisons. It gives no basis for comparing Mistral's text-to-speech service with other options on quality, cost or privacy.

Within Mistral's own documentation, the page links to a voice list, a style-instructions page and a streaming page. These are the natural next reads if the basic call works for you, but their content is not reviewed here.

Evidence used

The only evidence is the captured text of the Mistral documentation page Quickstart: generate speech at [https://docs.mistral.ai/studio/audio/text-to-speech/quickstarts/generate-speech.md], captured in full. Every detail above comes from that page, including the endpoint, field names, package names and the model and voice identifiers. Pages it links to were not used.

No source code repository, SDK source, release notes, pricing page, licence file or live test result was available. As a result, claims about SDK behaviour, billing, licensing and audio quality could not be checked. The examples are untested, and costs and rights remain unknown.

Access & freshness

Costs

The page states no prices, free-tier terms, credits, per-character or per-second rates, or rate limits, so the cost of using the speech endpoint is unknown from this evidence. Because the API is called with a personal key, usage is probably tied to a Mistral account, but this evidence does not show how it is billed. Check Mistral's pricing and account terms before relying on it for more than a one-off test.

The page gives pip and npm install commands for mistralai, sounddevice, soundfile, @mistralai/mistralai and play-sound, and its curl example uses jq. It does not state the price or licence of any of these dependencies, so both are unknown.

Rights and licensing

The page contains no licence statement, copyright notice or terms of use. It does not say who owns the generated audio, whether you may use it commercially, whether attribution is required, or what restrictions apply to the voices. All of that is unknown from this evidence.

The page also does not state the licences of the SDKs or playback libraries. If you plan to publish or sell generated audio, read Mistral's service terms and the voice documentation first. Permission to redistribute the documentation or its examples is not established by this page.

Freshness

The page was captured on 2026-11-15. It shows no publication date, last-updated date or version number. From this evidence alone, you cannot tell how recently it was written or whether the model name voxtral-mini-tts-3-0, the voice ID or the SDK import style are still current.

Documentation for a hosted API can change as the service changes. Compare the snippets with Mistral's current documentation and SDK before building on them.

Suggested next steps

To try it, create an API key in Mistral's console, export it as MISTRAL_API_KEY, and run the example for the tool you prefer. The curl example requires curl, jq and a base64 utility supporting --decode; playback requires an audio player. Check Mistral's pricing and terms before sending more than a test sentence.

Next, change the text and voice ID, and read the voice list, style-instructions and streaming pages the quickstart links to. For production use, add error handling, check rate limits and data handling terms, and rename the bytes variable in the Python sample. If playing audio from code does not work, you can save the WAV file, as the curl and TypeScript examples do, and open it in any audio player, as the page suggests for the curl route.

Evidence for this report

selected-page.txtselected · checked 2026-11-15