# codestral-2405

Calls to the model codestral-2405 on Mistral stopped working on June 16, 2025.

## The error Mistral returns once codestral-2405 is gone

HTTP 400

```json
{"object":"error","message":"Invalid model: codestral-2405","type":"invalid_model","param":null,"code":"1500"}
```

## What to use instead

Mistral recommends migrating to Codestral.

- API: Mistral (api.mistral.ai)
- Model: codestral-2405
- Kind: Model retirement
- Announced: December 2, 2024
- Takes effect: June 16, 2025
- Calls after that day: fail
- Calls it hits: `model codestral-2405`
- Source: [Lifecycle page](https://docs.mistral.ai/getting-started/models/models_overview/)
- Verified: November 6, 2026, against Mistral's own pages
- Page: https://www.okapi.bot/models/mistral/codestral-2405/

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
