Mistral AI
A hosted service with its own key and prices. This page lists the addresses it answers, the facts its documentation states, and the setup of each harness.
Addresses and facts
- OpenAI Chat Completions:
https://api.mistral.ai/v1provider documentation, read
- Authentication
- Authorization: Bearer, with the key in
MISTRAL_API_KEYprovider documentation, read - Structured output
- provider documentation, read
- Tool calling
- provider documentation, read
- Rate limits
- Read the page provider documentation, read
- Prices
- Read the page provider documentation, read
- Data retention
- Mistral documents which endpoints are eligible for zero data retention and how to request it. Read the page provider documentation, read
- Documentation
- Unknown
- Output limits Baltor recorded
- Baltor's own provider client declares an output limit for mistral-large-latest (16,384 tokens, 2026-09-01), mistral-medium-latest (8,192 tokens, 2026-09-01), mistral-small-latest (8,192 tokens, 2026-09-01). Baltor records, read
Harness setup
Replace codestral-latest with the model you want.
OpenCode
Put this in opencode.json in your project folder:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"mistral": {
"npm": "@ai-sdk/openai-compatible",
"name": "Mistral AI",
"options": {
"baseURL": "https://api.mistral.ai/v1",
"apiKey": "{env:MISTRAL_API_KEY}"
},
"models": {
"codestral-latest": {
"name": "codestral-latest"
}
}
}
}
}- OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.
From OpenCode documentation, read .
Pi
Put this in ~/.pi/agent/models.json:
{
"providers": {
"mistral": {
"baseUrl": "https://api.mistral.ai/v1",
"api": "openai-completions",
"apiKey": "$MISTRAL_API_KEY",
"models": [
{
"id": "codestral-latest"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Codex speaks only the Responses API, and Mistral AI documents no Responses address. A gateway that offers one can sit in between.
- Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.
From Codex documentation, read .
Claude Code
Claude Code sends Anthropic Messages requests, and Mistral AI documents no such address. A gateway that translates to that API can sit in between.
- Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.
From Claude Code documentation, read .
Models it lists
Prices in US dollars per million tokens, input and output, as models.dev, read records them.
| Model | Input | Output | Context | As of |
|---|---|---|---|---|
Codestral (latest) codestral-latest | 0.300 USD | 0.900 USD | 256,000 | older than 30 days |
Devstral 2 devstral-2512 | 0.400 USD | 2.00 USD | 262,144 | older than 30 days |
Devstral 2 devstral-latest | 0.400 USD | 2.00 USD | 262,144 | older than 30 days |
Devstral Medium devstral-medium-2507 | 0.400 USD | 2.00 USD | 128,000 | older than 30 days |
Devstral 2 (latest) devstral-medium-latest | 0.400 USD | 2.00 USD | 262,144 | older than 30 days |
Devstral Small 2505 devstral-small-2505 | 0.100 USD | 0.300 USD | 128,000 | older than 30 days |
Devstral Small devstral-small-2507 | 0.100 USD | 0.300 USD | 128,000 | older than 30 days |
Devstral Small 2 labs-devstral-small-2512 | 0 USD | 0 USD | 256,000 | older than 30 days |
Magistral Medium (latest) magistral-medium-latest | 2.00 USD | 5.00 USD | 128,000 | older than 30 days |
Magistral Small magistral-small | 0.500 USD | 1.50 USD | 128,000 | older than 30 days |
Ministral 3B (latest) ministral-3b-latest | 0.040 USD | 0.040 USD | 128,000 | older than 30 days |
Ministral 8B (latest) ministral-8b-latest | 0.100 USD | 0.100 USD | 128,000 | older than 30 days |
Mistral Embed mistral-embed | 0.100 USD | 0 USD | 8,000 | older than 30 days |
Mistral Large 2.1 mistral-large-2411 | 2.00 USD | 6.00 USD | 131,072 | older than 30 days |
Mistral Large 3 mistral-large-2512 | 0.500 USD | 1.50 USD | 262,144 | older than 30 days |
Mistral Large (latest) mistral-large-latest | 0.500 USD | 1.50 USD | 262,144 | older than 30 days |
Mistral Medium 3 mistral-medium-2505 | 0.400 USD | 2.00 USD | 131,072 | older than 30 days |
Mistral Medium 3.1 mistral-medium-2508 | 0.400 USD | 2.00 USD | 262,144 | older than 30 days |
Mistral Medium 3.5 mistral-medium-2604 | 1.50 USD | 7.50 USD | 262,144 | older than 30 days |
Mistral Medium (latest) mistral-medium-latest | 1.50 USD | 7.50 USD | 262,144 | older than 30 days |
Mistral Nemo mistral-nemo | 0.150 USD | 0.150 USD | 128,000 | older than 30 days |
Mistral Small 3.2 mistral-small-2506 | 0.100 USD | 0.300 USD | 128,000 | older than 30 days |
Mistral Small 4 mistral-small-2603 | 0.150 USD | 0.600 USD | 256,000 | older than 30 days |
Mistral Small (latest) mistral-small-latest | 0.150 USD | 0.600 USD | 256,000 | older than 30 days |
Mistral 7B open-mistral-7b | 0.250 USD | 0.250 USD | 8,000 | older than 30 days |
Open Mistral Nemo open-mistral-nemo | 0.150 USD | 0.150 USD | 128,000 | older than 30 days |
Mixtral 8x22B open-mixtral-8x22b | 2.00 USD | 6.00 USD | 64,000 | older than 30 days |
Mixtral 8x7B open-mixtral-8x7b | 0.700 USD | 0.700 USD | 32,000 | older than 30 days |
Pixtral 12B pixtral-12b | 0.150 USD | 0.150 USD | 128,000 | older than 30 days |
Pixtral Large (latest) pixtral-large-latest | 2.00 USD | 6.00 USD | 128,000 | older than 30 days |
Voxtral Mini (latest) voxtral-mini-latest | Unknown | Unknown | Unknown | |
Voxtral Mini TTS (latest) voxtral-mini-tts-latest | Unknown | Unknown | Unknown | |
Voxtral Small (latest) voxtral-small-latest | 0.100 USD | 0.300 USD | 32,000 | older than 30 days |
GLM-5.2 zai-glm-5-2 | 1.40 USD | 4.40 USD | 1,000,000 | older than 30 days |
GLM-5.3 zai-glm-5-3 | 1.40 USD | 4.40 USD | 1,000,000 | older than 30 days |
Sources of this page
- docs.mistral.ai/api, read
- docs.mistral.ai/studio/conversations/structured-output, read
- docs.mistral.ai/studio/conversations/function-calling, read
- docs.mistral.ai/admin/billing-usage/usage-limits, read
- mistral.ai/pricing, read
- docs.mistral.ai/admin/monitor-comply/zero-data-retention, read
- models.dev/api.json, read
- github.com/alisonjieli-png/loop-engine/blob/main/src/loop_engine/core/mistral_client.py, read
Paid links
No link in this directory is a paid link or an ad, and no listing is paid for. The order and the contents of every list come from the sources named on this page.