# allenai/olmocr-2

Calls to the model allenai/olmocr-2 on DeepInfra stopped working on May 7, 2026.

DeepInfra retired the model allenai/olmocr-2 on May 7, 2026. Requests specifying model allenai/olmocr-2 fail since that date. The endpoint no longer serves responses for this model identifier.

## What to use instead

Move to google/gemma-4-31B-it, which DeepInfra recommends as the replacement.

- API: DeepInfra (api.deepinfra.com)
- Model: allenai/olmocr-2
- Kind: Model retirement
- Takes effect: May 7, 2026
- Calls after that day: fail
- Calls it hits: `model allenai/olmocr-2`
- Source: [Model list](https://api.deepinfra.com/models/list)
- Verified: November 6, 2026, against DeepInfra's own pages
- Page: https://www.okapi.bot/models/deepinfra/allenai/olmocr-2/

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