Mistral
Use Mistral AI’s models for code generation, reasoning, vision, and general tasks. Mistral providesmistral-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
Full Example
Environment Variables
Cross-References
- Azure AI Foundry — Run Mistral models on Azure
- AWS Bedrock — Mistral models on AWS
- Ollama — Run Mistral locally