Mistral AI Plugin for LiveKit Agents
Support for Mistral AI STT, TTS, and LLM services.
Installation
pip install livekit-plugins-mistralai
For streaming STT (Voxtral Realtime), also install silero plugin.
pip install livekit-plugins-silero
Pre-requisites
You'll need an API key from Mistral AI. It can be set as an environment variable:
export MISTRAL_API_KEY=your_api_key_here
Usage
Speech-to-Text (STT)
Offline transcription
from livekit.plugins import mistralai
stt = mistralai.STT()
# With context biasing
stt = mistralai.STT(
model="voxtral-mini-latest",
context_bias=["LiveKit", "Voxtral", "Mistral"]
)
Realtime streaming transcription
Voxtral Realtime streams interim transcripts over a WebSocket connection. Since this model has no server-side endpointing, the plugin runs an internal Silero VAD to detect when the user stops speaking and flush the audio — producing final transcripts and driving the end-of-turn pipeline.
from livekit.plugins import mistralai
from livekit.plugins.silero import VAD
# Using Silero VAD with default settings (550ms silence threshold)
stt = mistralai.STT(model="voxtral-mini-transcribe-realtime-2602")
# Using custom VAD settings (e.g. shorter silence threshold for faster responses)
stt = mistralai.STT(
model="voxtral-mini-transcribe-realtime-2602",
vad=VAD.load(min_silence_duration=0.3),
)
Text-to-Speech (TTS)
from livekit.plugins import mistralai
# Using a built-in voice
tts = mistralai.TTS(voice="en_paul_neutral")
# Using zero-shot voice cloning
import base64
ref_audio_b64 = base64.b64encode(open("sample.mp3", "rb").read()).decode()
tts = mistralai.TTS(ref_audio=ref_audio_b64)
LLM
from livekit.plugins import mistralai
llm = mistralai.LLM()
# With all available options
llm = mistralai.LLM(
model="mistral-large-latest",
temperature=0.7,
top_p=0.9,
max_completion_tokens=150,
presence_penalty=0.1,
frequency_penalty=0.1,
random_seed=42,
tool_choice="auto",
)
# With provider tools
agent = Agent(
llm=llm,
tools=[
mistralai.tools.WebSearch(),
mistralai.tools.CodeInterpreter(),
mistralai.tools.DocumentLibrary(library_ids=["<your-library-id>"]),
mistralai.tools.Connector(connector_id="<your_connector_id>")
]
)
Metadata
Release files for livekit-plugins-mistralai 1.8.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| livekit_plugins_mistralai-1.8.9.tar.gz | 14.1 kB | With provenance | Details for livekit_plugins_mistralai-1.8.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| livekit_plugins_mistralai-1.8.9-py3-none-any.whl | Python 3 | none | any | Details for livekit_plugins_mistralai-1.8.9-py3-none-any.whl |
Total release size: 30.7 kB
Release files / livekit_plugins_mistralai-1.8.9.tar.gz
| Download URL | livekit_plugins_mistralai-1.8.9.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4af19066a4ecd93f4fb857cbf1194507a7b3c2c0cd84d07bc15277460f03a023
|
|
BLAKE2b-256 checksum How to use checksums |
517a37ee5dd3d6fb195257d3399758d8feb4fd2bd4588e2b3974b973243b9363
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logRelease files / livekit_plugins_mistralai-1.8.9-py3-none-any.whl
| Download URL | livekit_plugins_mistralai-1.8.9-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
834c6d545cb96404d89db568f3dceab4f9505a4883488b3bff8c2a8b32c0528e
|
|
BLAKE2b-256 checksum How to use checksums |
53ed6b616a1f62670faf70b8a03025c90582dc076e96310a9fb5509e52f74808
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logSecurity for livekit-plugins-mistralai 1.8.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for livekit_plugins_mistralai-1.8.9.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.