SunsetDiff

Replacement for Codestral (24.05): what changes when you switch

The official replacement is codestral-2405. Codestral (24.05) (codestral-2405) shut down on 2025-06-16 per Mistral's deprecation page (checked 2026-10-17). On the labeled example of 10 million input tokens and 2 million output tokens, codestral-2405 costs $4.8 a month, the same as $4.8 for codestral-2405.

Codestral (24.05) model page · Mistral

Official replacement. Full diff page

Codestral (24.05) to Codestral (24.05)

All values from official sources Checked 2026-10-17.

Price per 1M tokens

Price comparison. Example monthly cost for 10M input tokens and 2M output tokens. Labeled example, not a bill.
FieldOldNewChange
Input $0.3 $0.3 0% (same)
Output $0.9 $0.9 0% (same)
Cached input $0.03 $0.03 Not published
Example monthly cost $4.8 $4.8 Example only

Context and max output

Token limits
LimitOldNewChange
Context window 32,000 32,000 0% (same)
Max output Not published Not published Not published

Capabilities that differ

No differing capability values are published for both models.

API changes

No parameter change is listed on the official pages we checked. The sample below only swaps the model id.

Code

python before
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
    model="codestral-2405",
    messages=[{"role": "user", "content": "Hello"}],
)
python after
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
    model="codestral-2405",
    messages=[{"role": "user", "content": "Hello"}],
)
typescript before
import OpenAI from "openai";
const client = new OpenAI();
const response = await client.chat.completions.create({
  model: "codestral-2405",
  messages: [{ role: "user", content: "Hello" }],
});
typescript after
import OpenAI from "openai";
const client = new OpenAI();
const response = await client.chat.completions.create({
  model: "codestral-2405",
  messages: [{ role: "user", content: "Hello" }],
});
curl before
curl https://api.openai.com/v1/chat/completions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"codestral-2405","messages":[{"role":"user","content":"Hello"}]}'
curl after
curl https://api.openai.com/v1/chat/completions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"codestral-2405","messages":[{"role":"user","content":"Hello"}]}'

Checklist

  1. Read the shutdown date for codestral-2405 on the linked official page.
  2. Point your requests at codestral-2405.
  3. Re-check price, context, and parameters on the provider pages linked here.
  4. Ship the change before the published shutdown date.

Related models

Questions

What is the replacement for Codestral (24.05)?

The official replacement is codestral-2405. Codestral (24.05) (codestral-2405) shut down on 2025-06-16 per Mistral's deprecation page (checked 2026-10-17). On the labeled example of 10 million input tokens and 2 million output tokens, codestral-2405 costs $4.8 a month, the same as $4.8 for codestral-2405.

Is codestral-2405 cheaper than codestral-2405?

The labeled example monthly cost is the same: $4.8.

Does codestral-2405 have a bigger context window than codestral-2405?

The context window stays 32,000 tokens.

Sources

Deprecation alerts

We store your email for deprecation alerts. We do not send email.

Deprecation alert signup
Providers (optional)