Skip to main content
Cline 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

  1. Sign Up/Sign In: Go to the Mistral Platform. Create an account or sign in. You may need to go through a verification process.
  2. Create an API Key:

Supported Models

Cline supports the following Mistral models:

Devstral (Code-Specialized)

  • devstral-2512 (Default) - Latest Devstral with 256K context window, free tier
  • labs-devstral-small-2512 - Small Devstral variant with 256K context, free tier
  • devstral-small-2505 - Previous Devstral small release (131K context)
  • devstral-medium-latest - Medium Devstral for more complex tasks (131K context)

Mistral Large & Medium

  • mistral-large-2512 - Latest large model with 256K context (0.50/0.50/1.50 per 1M tokens)
  • mistral-large-2411 - Previous large model (128K context)
  • mistral-medium-latest - Medium model balancing performance and cost (128K context)

Mistral Small & Ministral

  • mistral-small-latest - Small model with image support (128K context)
  • mistral-small-2501 - Dated small model release (32K context)
  • ministral-14b-2512 - 14B parameter model with 256K context
  • ministral-3b-2410 - Ultra-compact 3B model (128K context)
  • ministral-8b-2410 - Compact 8B model (128K context)

Pixtral (Vision)

  • pixtral-large-2411 - Large vision model with image support (131K context)
  • pixtral-12b-2409 - Compact vision model (128K context)

Codestral & Open Models

  • codestral-2501 - Code-specialized model with 256K context
  • open-codestral-mamba - Open-source Mamba architecture (256K context)
  • open-mistral-nemo-2407 - Open-source Nemo model (128K context)
Note: Model availability and specifications may change. Refer to the Mistral AI documentation and Mistral Model Overview for the most current information.

Configuration in Cline

  1. Open Cline Settings: Click the settings icon (⚙️) in the Cline panel.
  2. Select Provider: Choose “Mistral” from the “API Provider” dropdown.
  3. Enter API Key: Paste your Mistral API key into the “Mistral API Key” field if you’re using a standard mistral model. If you intend to use codestral-latest, see the “Using Codestral” section below.
  4. Select Model: Choose your desired model from the “Model” dropdown.

Using Codestral

Codestral is a model specifically designed for code generation and interaction. For Codestral, you can use different endpoints (Default: codestral.mistral.ai). If using the La Plateforme API Key for Codestral, change the Codestral Base Url to: https://api.mistral.ai To use Codestral with Cline:
  1. Select “Mistral” as the API Provider in Cline Settings.
  2. Select a Codestral Model (e.g., codestral-latest) from the “Model” dropdown.
  3. Enter your Codestral API Key (from codestral.mistral.ai) or your La Plateforme API Key (from api.mistral.ai) into the appropriate API key field in Cline.