Using Mistral AI With Roo Code
Roo Code supports accessing models through the Mistral AI API, including both standard Mistral models and the code-specialized Codestral model.
Website: https://mistral.ai/
Getting an API Key
- Sign Up/Sign In: Go to the Mistral Platform. Create an account or sign in. You may need to go through a verification process.
- Create an API Key:
Supported Models
Roo Code supports the following Mistral models:
Model ID | Model Default Temperature | Function Calling | Vision / Image support |
---|---|---|---|
codestral-latest | 0.3 | ✅ | ❌ |
mistral-large-latest | 0.7 | ✅ | ❌ |
ministral-8b-latest | 0.3 | ✅ | ❌ |
ministral-3b-latest | 0.3 | ✅ | ❌ |
mistral-small-latest | 0.3 | ✅ | ❌ |
pixtral-large-latest | 0.7 | ✅ | ✅ |
The default model temperature in Roo Code is 0.0, so you should consider experimenting with temperature adjustments! |
Note: Model availability and specifications may change. Refer to the Mistral AI documentation and Mistral Model Overview for the latest information.
Configuration in Roo Code
- Open Roo Code Settings: Click the gear icon () in the Roo Code panel.
- Select Provider: Choose "Mistral" from the "API Provider" dropdown.
- Enter API Key: Paste your Mistral API key into the "Mistral API Key" field if you're using a
mistral
model. If you intend to usecodestral-latest
, see the "Codestral" section below. - Select Model: Choose your desired model from the "Model" dropdown.
Using Codestral
Codestral is a model specifically designed for code generation and interaction. Only for Codestral you could use different endpoints (Default: codestral.mistral.ai). For the La Platforme API Key change the Codestral Base Url to: https://api.mistral.ai
To use Codestral:
- Select "Mistral" as the API Provider.
- Select a Codestral Model
- Enter your Codestral (codestral.mistral.ai) or La Plateforme (api.mistral.ai) API Key.