Atlas / Models / Mistral AI / Mistral: Codestral 2508

Mistral: Codestral 2508✓ Catalog verified

mistralai/codestral-2508

Mistral's cutting-edge language model for coding released end of July 2025. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation. Blog Post

Input price
$0.30 /1M
Output price
$0.90 /1M
Context
256K
Modalities
text
Released
Aug 1, 2025
Tool calling
✓ Yes
Atlas signal
85/100
01

Overview

Mistral's cutting-edge language model for coding released end of July 2025. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation. Blog Post

Access: available through the official Mistral AI API. Context window: 256K.

Pricing and metadata from the ModelsAtlas catalog.Last refreshed Aug 5, 2026
02

Specifications

API identifiermistralai/codestral-2508
ProviderMistral AI
Model typeText LLM
Context window256K catalog
Input modalitiestext
Output modalitiestext
ReleasedAug 1, 2025
TokenizerMistral
ModeratedNo
Architecture modalitytext->text
Supported parameters
frequency_penaltymax_tokenspresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_p
Source: provider documentation + catalog feedMethodology →

API defaults

Default parameters
{
  "temperature": 0.3
}
03

Pricing

Live pricing components for mistralai/codestral-2508 as published in the catalog.

$0.30
Input /1M
$0.90
Output /1M
Per request
Per image
Pricing componentRaw unit priceNormalizedUnit
Prompt tokens$3e-7$0.30 / 1MPer input token
Completion tokens$9e-7$0.90 / 1MPer output token
Request feeN/AN/APer request
Image feeN/AN/APer image unit
Web search feeN/AN/APer search request
Source: catalog pricing feedCompare all pricing →Cheapest models →
04

Cost calculator

Estimate monthly spend from your own token volumes.

Scale / Volume

Estimated Total Cost

$0.33Calculated from current list pricing in the ModelsAtlas catalog.
05

Capabilities

CapabilityStatusWhat it means
Visual UnderstandingNot advertisedImage and document analysis support
Audio ProcessingNot advertisedSpeech and voice aligned flows
Tool Calling✓ SupportedSupports tools / function calling
Self-Hosting✓ SupportedDeploy outside managed APIs
Derived from catalog capability tags and supported parameters
06

Capability signals

Directional signals derived from model metadata and capability tags — not official benchmark submissions.

Mistral: Codestral 2508
MMLU Signal (Reasoning)
79signal
Coding Signal (HumanEval proxy)
97signal
Math Signal (GSM8K proxy)
79signal
Science Signal (GPQA proxy)
83signal
Estimated from metadata — not an official benchmark runAll benchmarks →Methodology →
07

Quick start

Call Mistral: Codestral 2508 through an OpenAI-compatible client.

from openai import OpenAI

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="mistralai/codestral-2508",
    messages=[{"role": "user", "content": "Explain quantum physics."}]
)

print(response.choices[0].message.content)
08

Alternatives

Closest models by context window from a different provider.

09

Sources & attribution

Pricing and metadata are maintained in the ModelsAtlas catalog.

Capability bars use metadata tags — directional estimates onlyHow we source and verify data →
10

Frequently asked questions

How much does Mistral: Codestral 2508 cost?

$0.30 per 1M input tokens and $0.90 per 1M output tokens on the official Mistral AI API.

What is the context window of Mistral: Codestral 2508?

Mistral: Codestral 2508 supports up to 256K tokens of context.

Does Mistral: Codestral 2508 support tool / function calling?

Yes, Mistral: Codestral 2508 supports tool / function calling — you can register tools and the model will emit structured tool calls.

How do I access Mistral: Codestral 2508?

Use the official Mistral AI API with the model id `mistralai/codestral-2508`. See the Quick start section above for code examples.