Supported Models
| Model | ID | Context | Tools | Notes |
|---|---|---|---|---|
| Mistral Large | mistral-large-latest | 128K | Yes | Best capability |
| Mistral Medium | mistral-medium-latest | 32K | Yes | Balanced |
| Codestral | codestral-latest | 32K | Yes | Code-optimized |
| Mistral Small | mistral-small-latest | 32K | Yes | Cost-efficient |
Setup
Environment Variables
Your Mistral AI API key.
Configuration Example
- .env
- settings.yml
Model Aliases
| Alias | Model |
|---|---|
mistral | mistral-large-latest |
mistral-medium | mistral-medium-latest |
codestral | codestral-latest |
mistral-local | mistral:7b (via Ollama) |
Usage Examples
Notes
- API endpoint:
https://api.mistral.ai/v1(OpenAI-compatible) - Mistral offers EU data residency - useful for GDPR-sensitive workloads.
codestral-latestis optimized for code completion and generation.- The local
mistral-localalias runs via Ollama at no API cost.
Related
- AI Providers Overview - Compare all 37 supported providers
- Ollama - Run Mistral models locally at no API cost
- Cohere - Another European-headquartered provider option
- profclaw provider - Add and test providers from the CLI