Skip to main content
Mistral AI provides high-quality models with European data residency. Codestral is particularly well-suited for code generation tasks.

Supported Models

Setup

1

Get an API key

Sign up at console.mistral.ai.
2

Set the environment variable

3

Verify

Environment Variables

string
required
Your Mistral AI API key.

Configuration Example

Model Aliases

Usage Examples

Notes

  • API endpoint: https://api.mistral.ai/v1 (OpenAI-compatible)
  • Mistral offers EU data residency - useful for GDPR-sensitive workloads.
  • codestral-latest is optimized for code completion and generation.
  • The local mistral-local alias runs via Ollama at no API cost.