# codestral-2501

Calls to the model codestral-2501 on Mistral stopped working on November 30, 2025.

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

HTTP 400

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

## What to use instead

Mistral recommends migrating to Codestral.

- API: Mistral (api.mistral.ai)
- Model: codestral-2501
- Released: January 1, 2025 (models.dev)
- Kind: Model retirement
- Announced: November 6, 2025
- Takes effect: November 30, 2025
- Calls after that day: fail
- Calls it hits: `model codestral-2501`
- 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-2501/

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