Sulat.com
AI models
$10 off the fastest DeepSeek V4.1 Flash, Kimi K3 and GLM 5.3 from Synthetic
Vertex logo

Model details

Codestral 2

Codestral 2 is a Mistral-built code-generation model engineered around high-precision fill-in-the-middle completion, exposed through a shared instruction-and-completion endpoint so editors and agents can drive both interactive suggestions and longer generative tasks from a single interface. It is positioned inside Google's Vertex AI as a third-party partner model, where Mistral remains the original creator while the platform handles hosting, region availability, and quota management. Practically, the model is aimed at software developers and tooling builders who need reliable in-editor code writing, translation between languages, and conversational explanations of code without leaving their development environment.

Relative to the prior Codestral 25.01 generation, Vertex-documented figures describe a 30 percent lift in accepted completions, about 10 percent more code retained after each suggestion, and roughly 50 percent fewer runaway generations, which together translate into more trustworthy longer edits and fewer wasted keystrokes during interactive coding. The model is tuned for both short and long-context fill-in-the-middle scenarios, and supports code generation, summarization, documentation, refactoring, bug fixing, and test-case authoring on top of its core FIM strength. These characteristics make Codestral 2 a focused fit for IDE plugins, code review assistants, and developer-facing agents that depend on precise, contained edits rather than open-ended chat.

Vertexcodestral-2codestral

Quick Info

Powered by
Provider
Vertex
Model key
codestral-2
Release date
Jul 30, 2025
Last updated
Jul 30, 2025
AI SDK package
@ai-sdk/mistral
Input modalities
Output modalities
Capabilities

Cost

Input token cost
$0.30
Output token cost
$0.90

Limits

Output tokens
8,192 tokens
Context window
128,000 tokens

Latest news about Codestral 2

Vertex

Official sourceDocumentation

Codestral 2 is Mistral's code generation model available on Vertex AI under the model ID "codestral-2," released on October 16, 2025, and currently at GA launch stage. The official Google Cloud documentation describes it as specialized for high-precision fill-in-the-middle (FIM) completion, serving developers through a shared instruction and completion API endpoint for code generation, translation, summarization, refactoring, and test case generation. Inputs include text and code, with text as the supported output type. According to the Vertex documentation, Codestral 2 delivers measurable gains over the prior Codestral (25.01) release: 30% more accepted completions, 10% more retained code after suggestion, and 50% fewer runaway generations during longer edits. The model is offered with fixed-quota usage support, with availability in the us-central1 (United States) and europe-west4 (Europe) regions, plus ML processing in US regions. Provisioned Throughput is listed as not supported for the codestral-2 version.

Videos about Codestral 2

More models around Codestral 2