Discover Mistral models here
Get an API key from the Mistral Dashboard

Configuration

config.yaml
models:
  - name: <MODEL_NAME>
    provider: mistral
    model: <MODEL_ID>
    apiKey: <YOUR_MISTRAL_API_KEY>
Check out a more advanced configuration here
The API key for codestral.mistral.ai is different from api.mistral.ai. If you are using a Codestral API key, you should set the apiBase to https://codestral.mistral.ai/v1. Otherwise, we will default to using https://api.mistral.ai/v1.