# Olmocr 7B API Pricing

As of October 10, 2026, Olmocr 7B costs $0.27 per 1M input tokens and $1.50 per 1M output tokens on DeepInfra. It has a 16,384-token context window and returns up to 16,384 tokens per response.

- Page: https://models.litellm.ai/models/olmocr-7b
- LiteLLM model name: `deepinfra/allenai/olmOCR-7B-0725-FP8`
- Context window: 16,384 tokens
- Max output: 16,384 tokens
- Added to LiteLLM: August 2025
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| DeepInfra (fp8, snapshot 0725) | `deepinfra/allenai/olmOCR-7B-0725-FP8` | $0.27 | $1.50 | – | – | – | 16K |

## Cost examples

1,000 requests with 2,000 input and 500 output tokens each:

- DeepInfra: $1.29

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="deepinfra/allenai/olmOCR-7B-0725-FP8",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## FAQ

### How much does Olmocr 7B cost?

Olmocr 7B costs $0.27 per 1M input tokens and $1.50 per 1M output tokens on DeepInfra.

### What is the context window of Olmocr 7B?

Olmocr 7B has a 16,384-token context window and returns up to 16,384 tokens per response.

### Which providers offer Olmocr 7B?

Olmocr 7B is available from DeepInfra through LiteLLM, using the model name deepinfra/allenai/olmOCR-7B-0725-FP8.

### How do I call Olmocr 7B with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="deepinfra/allenai/olmOCR-7B-0725-FP8", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

### When did LiteLLM add Olmocr 7B?

Olmocr 7B was added to LiteLLM's model price file in August 2025.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
