Skip to main content

Using Mistral Voxtral for Speech-to-Text

This guide covers how to use Mistral's Voxtral model for Speech-to-Text with Open WebUI. Voxtral is Mistral's speech-to-text model that provides accurate transcription.

Looking for TTS?

See the companion guide: Using Mistral for Text-to-Speech

Requirements​

  • A Mistral API key
  • Open WebUI installed and running

Quick Setup (UI)​

  1. Click your profile icon (bottom-left corner)
  2. Select Admin Panel
  3. Click Settings → Audio tab
  4. Configure the following:
SettingValue
Speech-to-Text EngineMistralAI
API KeyYour Mistral API key
STT Modelvoxtral-mini-2602 (empty falls back to voxtral-mini-latest, an alias Mistral may no longer serve, so set it)
  1. Click Save

Available Models​

ModelDescription
voxtral-mini-2602Voxtral Mini Transcribe 2 — current transcription model (recommended)
Set the model explicitly

Mistral no longer publishes -latest alias names such as voxtral-mini-latest. Use a dated ID from the Mistral models overview.

Environment Variables Setup​

If you prefer to configure via environment variables:

services:
  open-webui:
    image: ghcr.io/open-webui/open-webui:main
    environment:
      - AUDIO_STT_ENGINE=mistral
      - AUDIO_STT_MISTRAL_API_KEY=your-mistral-api-key
      - AUDIO_STT_MODEL=voxtral-mini-2602
    # ... other configuration

All Mistral STT Environment Variables​

VariableDescriptionDefault
AUDIO_STT_ENGINESet to mistralempty (uses local Whisper)
AUDIO_STT_MISTRAL_API_KEYYour Mistral API keyempty
AUDIO_STT_MISTRAL_API_BASE_URLMistral API base URLhttps://api.mistral.ai/v1
AUDIO_STT_MISTRAL_USE_CHAT_COMPLETIONSUse chat completions endpointfalse
AUDIO_STT_MODELSTT modelempty (voxtral-mini-latest is used at request time)

Transcription Methods​

Mistral supports two transcription methods:

Standard Transcription (Default)​

Uses the dedicated transcription endpoint. This is the recommended method.

Chat Completions Method​

Turn on Use Chat Completions API in the admin Audio settings, or set AUDIO_STT_MISTRAL_USE_CHAT_COMPLETIONS=true, to use Mistral's chat completions API for transcription. The toggle shows only when Speech-to-Text Engine is MistralAI.

Open WebUI then posts to <API Base URL>/chat/completions instead of <API Base URL>/audio/transcriptions. The request sends the STT Model as model and one user message with two parts: the audio as base64 input_audio, and the instruction Transcribe this audio exactly as spoken in its original language. Do not translate it to another language. When a Language is set in your Settings > Audio, the instruction becomes Transcribe this audio exactly as spoken in <language>. Do not translate it. Open WebUI uses the reply's message content as the transcript, so set STT Model to a Mistral model that accepts audio input on the chat completions endpoint.

This method:

  • Sends FLAC, M4A, MP3, MP4, MPEG, WAV and WebM audio as it is, and converts other formats, and AAC audio in an MP4 container, to MP3 first. Nothing is converted with BYPASS_PYDUB_PREPROCESSING on, which slim images always have
  • May provide different results than the standard endpoint

Using STT​

  1. Click the microphone icon in the chat input
  2. Speak your message
  3. Click the microphone again or wait for silence detection
  4. Your speech will be transcribed and appear in the input box

Supported Audio Formats​

Voxtral accepts common audio formats. The system defaults to accepting audio/* and video/webm.

If using the chat completions method, audio is automatically converted to mp3.

Troubleshooting​

API Key Errors​

If you see "Mistral API key is required":

  1. Verify your API key is entered correctly
  2. Check the API key hasn't expired
  3. Ensure your Mistral account has API access

Transcription Not Working​

  1. Check container logs: docker logs open-webui -f
  2. Verify the STT Engine is set to MistralAI
  3. Try the standard transcription method (disable chat completions)
  4. If the error is Failed to parse Mistral response: Empty transcript in response, the reply had no text. With Use Chat Completions API on, try another STT Model or turn the toggle off

Audio Format Issues​

If using chat completions method and audio conversion fails, the error is Audio conversion failed. Chat completions API requires mp3 or wav format. On an image with USE_SLIM_DOCKER=true, Open WebUI does not convert audio for this method, and audio that reaches it as anything other than an .mp3 or .wav file fails with Mistral chat transcription requires MP3 or WAV in slim; local conversion is unavailable. To fix either error:

  • Ensure FFmpeg is available in the container
  • Try recording in a different format (wav or mp3)
  • Switch to the standard transcription method

For more troubleshooting, see the Audio Troubleshooting Guide.

Comparison with Other STT Options​

FeatureMistral VoxtralOpenAI WhisperLocal Whisper
CostPer-minute pricingPer-minute pricingFree
PrivacyAudio sent to MistralAudio sent to OpenAIAudio stays local
Model Optionsvoxtral-mini-2602gpt-transcribe, whisper-1tiny → large
GPU RequiredNoNoRecommended

Cost Considerations​

Mistral charges per minute of audio for STT. Check Mistral's pricing page for current rates.

tip

For free STT, use Local Whisper (the default) or the browser's Web API for basic transcription.

This content is for informational purposes only and does not constitute a warranty, guarantee, or contractual commitment. Open WebUI is provided "as is." See your license for applicable terms.