# mistral-ocr-4-0

Calls to the model mistral-ocr-4-0 stopped working on September 30, 2026.

Mistral retired the mistral-ocr-4-0 model on September 30, 2026. Calls to this model fail since that date. The change affects all requests directed to model mistral-ocr-4-0.

## The error Mistral returns once mistral-ocr-4-0 is gone

HTTP 400

```json
{"object":"error","message":"Invalid model: mistral-ocr-4-0","type":"invalid_model","param":null,"code":"1500"}
```

## What to use instead

Switch to OCR 4.1, which is recommended by Mistral.

- API: Mistral (api.mistral.ai)
- Model: mistral-ocr-4-0
- Kind: Model retirement
- Announced: September 29, 2026
- Takes effect: September 30, 2026
- Calls after that day: fail
- Calls it hits: `model mistral-ocr-4-0`
- 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/mistral-ocr-4-0/

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