mistral-large-latest for flagship capability, codestral for code, and pixtral for vision.
Agentium tries the native
@mistralai/mistralai SDK first; if not installed, it falls back to the openai SDK via Mistral’s OpenAI-compatible endpoint (https://api.mistral.ai/v1).Setup
- Install (Option A — Native)
- Install (Option B — OpenAI compat)
- Environment
Factory
string
required
Model ID (e.g.,
"mistral-large-latest", "codestral-latest", "pixtral-12b-2409").MistralConfig
Optional
{ apiKey?, baseURL? }.Supported Models
Basic Example
Code Generation
Vision (Pixtral)
Tool Calling
Reasoning
Native Mistral calls sendreasoningEffort: "high" when reasoning is on, and "none" when it is off or effort is "none".
Full Example
Environment Variables
Cross-References
- Azure AI Foundry — Run Mistral models on Azure
- AWS Bedrock — Mistral models on AWS
- Ollama — Run Mistral locally