Skip to content
AI Dev Toolkit.
Esc
  • Loading…

Mistral · Model

Codestral 2508 API pricing, cost and context window

Codestral 2508 costs $0.30 per million input tokens and $0.90 per million output tokens. Cached input costs $0.03. It reads up to 128,000 tokens. Prices checked 2026-11-28. By blended price it is number 5 of Mistral’s 8 current models here, counting from the cheapest.

Input / 1M
$0.30
Output / 1M
$0.90
Cached / 1M
$0.03
Context
128,000
Max output
Not published
Released
2025-08-01

Estimate your cost with Codestral 2508Compare all Mistral modelsCount tokens for Codestral 2508

Pricing

How much does Codestral 2508 cost per million tokens?

Price per 1M tokensInputOutput
Standard$0.30$0.90
Cached input (read)$0.03–
Batch API$0.15$0.45

Output costs 3.0× the input price; a cache hit costs 10% of it.

Work out your monthly Codestral 2508 bill in the cost calculatorSee what prompt caching savesSee what the Batch API saves

Examples

How much does a typical Codestral 2508 request cost?

WorkloadTokens in / outRequests/dayPer requestPer month
Support chatbot50% cached1,500 / 4001,000$0.000608$18.48
RAG app20% cached6,000 / 500500$0.00193$29.29
Coding agent80% cached40,000 / 2,000200$0.00516$31.39
Document summariserbatch8,000 / 600300$0.00147$13.41

Change any number in the cost calculator.

Context

What is Codestral 2508’s context window and max output?

Codestral 2508 accepts up to 128,000 tokens per request, roughly 96,000 English words or 192 pages, prompt and reply together; no separate reply cap is published.

Filling the whole window with one prompt costs about $0.0384 at list price.

Check whether your text fits Codestral 2508’s window.

Features

What can Codestral 2508 do?

Image input
No
Tool / function calling
Yes
Reasoning mode
No
Prompt caching
Yes
Structured output
Yes
Open weights
No
Accepts
text, file
Knowledge cutoff
2025-03-31

As declared by the provider’s API. It shows a feature exists, not how well it works.

API

What is the Codestral 2508 API model ID?

OpenRouter
mistralai/codestral-2508

Use the OpenRouter ID when calling it through OpenRouter; Mistral’s own API may name it differently. See the model ID reference for the providers we document.

Mistral

Where does Codestral 2508 sit in Mistral’s line-up?

Ranked by blended price (three parts input to one part output, $0.45 per 1M for Codestral 2508), it is number 5 of Mistral’s 8 current models here, counting from the cheapest. One step down, Mistral Small 4 costs $0.2625 blended (42% less). Unlike Codestral 2508, it accepts images, doesn’t accept files and reads up to 262,144 tokens (128,000 here). One step up, Mistral Large 4 costs $1.05 (2.3× as much). Unlike Codestral 2508, it accepts images, doesn’t accept files and reads up to 1,048,576 tokens (128,000 here). See every Mistral model and price

Save

What are cheaper alternatives to Codestral 2508?

Keeping tool calling; by blended price.

Compare

Which models cost about the same?

FAQ

Codestral 2508 questions

How much does Codestral 2508 cost?

Codestral 2508 costs $0.30 per million input tokens and $0.90 per million output tokens, with cached input at $0.03. A typical chatbot reply (1,500 tokens in, 400 out) costs about $0.00081. Use the LLM cost calculator for your own workload.

What is Codestral 2508’s context window?

128,000 tokens, about 96,000 English words or 192 printed pages, shared between your prompt and the reply. No separate limit on the reply is published, so the window is the limit.

Does Codestral 2508 support prompt caching and batch requests?

Yes, cached input is billed at $0.03 per million tokens (10% of the normal input price). A batch API is available at $0.15 input and $0.45 output per million tokens.

What are cheaper alternatives to Codestral 2508?

With the same essentials (tool calling), the cheapest options are Nemotron 3.5 Lightning (81% cheaper), Qwen3.5-9B (79% cheaper), Ministral 3 3B 2512 (78% cheaper). Cheaper doesn’t mean equivalent, so test them on your own prompts.

What is the API model ID for Codestral 2508?

On OpenRouter it is mistralai/codestral-2508. Mistral’s own API may use a different name, so check its model list before you deploy. Pass the ID as the model value in each request.

When was Codestral 2508 released?

Codestral 2508 was first listed on 2025-08-01, with a knowledge cutoff of 2025-03-31. It is the first model in its line in our data. Release dates here are when our price source first listed each model.

Is Codestral 2508 open source?

No, Codestral 2508 is only available through Mistral’s API and partners; its weights aren’t published.

Prices checked · Page updated

Sources: OpenRouter models API and LiteLLM model prices and context windows, checked daily; open-weight prices are typical hosted prices. Confirm critical numbers on Mistral’s pricing page. Every price move is in the AI pricing changes log. See our methodology.

Keep exploring