Codestral 2

Codestral 2 is Mistral's code generation specialized model built specifically for high-precision fill-in-the-middle (FIM) completion. It helps developers write and interact with code through a shared instruction and completion API endpoint. Because it masters code and can also converse in a variety of languages, it can be used to design advanced AI applications for software developers.

Codestral 2 is well-suited for tasks such as:

  • Code generation
  • Fill-in-the-middle completion
  • Software development applications

View model card in Model Garden

Model ID codestral-2
Launch stage GA
Supported inputs & outputs
  • Inputs:
    Text, Code
  • Outputs:
    Text
Usage types
Versions
  • codestral-2
    • Launch stage: GA
    • Release date: October 16, 2025
Supported regions

Model availability

  • United States
    • us-central1
  • Europe
    • europe-west4

ML processing

  • United States
    • Multi-region
  • Europe
    • Multi-region
Quota limits

us-central1:

  • QPM: 1,100
  • Input TPM: 1,100,000
  • Output TPM: 110,000
  • Context length: 128,000 tokens

europe-west4:

  • QPM: 1,100
  • Input TPM: 1,100,000
  • Output TPM: 110,000
  • Context length: 128,000 tokens

Pricing See Pricing.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月07日 UTC.