Mistral, released Aug 1, 2025

Codestral 2508

Codestral 2508 is Mistral's dedicated coding model from August 2025, sitting near the cheaper end of their lineup below Devstral 2 2512 and Mistral Large 4, though a bit pricier than Mistral Small 4 or Ministral 3 14B 2512. It's built for fast, high-volume coding work where you're hitting the API constantly and don't want to wait around or burn through your budget. Think fill-in-the-middle edits, fixing code, and writing tests.

Already paying for ChatGPT or Claude?

Codestral 2508 costs $0.90 per 1M output tokens. Use GPT-6 and Claude through your plan instead, $0 per token.

Get your API key Free plan, no card needed

Updated

Codestral 2508 pricing and specs

Input
$0.30per 1M tokens
Output
$0.90per 1M tokens
Cached input
$0.03per 1M tokens
Context window
256K256,000 tokens
Max output
205K204,800 tokens
Released
Aug 1, 2025
Knowledge cutoff
Mar 2025
Accepts
TextFiles
Features
Tool callingStructured outputs

What Codestral 2508 is good at

  • Fill-in-the-middle completions. It's tuned for fast, frequent calls and stays cheap at volume.
  • Writing tests and cleaning up broken code, even when you have to dump a massive chunk of a codebase into the prompt (the context window is huge, and it can return a ton of output in a single reply).
  • Tool-calling workflows and anything that needs structured JSON back, since it handles both natively.
  • Pulling context from PDFs alongside your text prompts - specs, docs, whatever you've got - without having to parse them into plain text yourself.

Good to know

  • The knowledge cutoff is March 2025, so anything that changed after that has to go into your prompt or come back from a tool call.
  • Text and PDFs only. If you need other file types, you'll need a different model.
  • It's not Mistral's newest option anymore. Devstral 2 2512 came out later in 2025 for a bit more money (mostly on output), and Mistral Small 4 arrived in 2026 for less, so you've got newer alternatives on both sides of it depending on what you care about.

Codestral 2508 vs similar models

API price per 1M tokens
ModelInputOutputPlan2APIContext
Codestral 2508$0.30$0.90Not available256K
Pixtral Large 2502$2$6Not available128K
Mistral Large 4$0.70$2.10Not available1M
Mistral Medium 3.5$1.50$7.50Not available262K
GPT-5.6 Luna$0.20$1.20$0 on ChatGPT1.1M
GLM 4.6V$0.30$0.90Not available131K

Codestral 2508 cost per month

Tokens a month at $0.30 input and $0.90 output per 1M
WorkloadAPI price
Side project2M in, 500K out$1.05
Production app25M in, 5M out$12.00
Agents at scale250M in, 50M out$120

FAQ

How much does the Codestral 2508 API cost?

Codestral 2508 costs $0.30 per 1M input tokens and $0.90 per 1M output tokens, and cached input costs $0.03 per 1M.

What is the Codestral 2508 context window?

Codestral 2508 takes 256,000 tokens of context, with up to 204,800 output tokens per request.

When was Codestral 2508 released?

Mistral released Codestral 2508 on Aug 1, 2025.

Can I use Codestral 2508 with my subscription?

Plan2API turns Claude, ChatGPT, Gemini and Kimi subscriptions into one OpenAI-compatible API. GPT-6 and Claude models run through your ChatGPT or Claude plan at $0 per token instead.

Should I use Codestral 2508 or Devstral 2 2512?

Codestral 2508 is the older, cheaper pick aimed at fast, repetitive work like fill-in-the-middle, fixing code, and generating tests. Devstral 2 2512 came out later in December 2025 and costs more, especially on output. So if you're running high-volume edits or quick code helpers and want to keep the bill low, Codestral 2508 still makes sense.

Does it support tool calling and structured JSON?

Yes, both. You can ask for structured JSON output and hook it up to tool calls, and you can attach PDFs alongside regular text prompts if you need to pass in documentation.

More Mistral models

All 19 Mistral models

Already paying for ChatGPT or Claude? Use GPT-6 and Claude through your plan, $0 per token.

  • Free: 1 subscription, no daily cap, no card
  • Pro: $12 a month

GPT-6 and Claude at $0 per tokenFree plan, no card needed

Get your API key

Guides

80