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.
- Input
- $0.27 / 1M tokens
- Output
- $1.50 / 1M tokens
- Context window
- 16,384 tokens
- Max output
- 16,384 tokens
- Providers
- 1
- Added to LiteLLM
- August 2025
Olmocr 7B pricing by provider
1 listing across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Context |
|---|---|---|---|---|
| DeepInfrafp8, snapshot 0725 | deepinfra/allenai/olmOCR-7B-0725-FP8 | $0.27 | $1.50 | 16K |
What Olmocr 7B costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| DeepInfra | $1.29 |
Use Olmocr 7B with LiteLLM
Call Olmocr 7B through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.
from litellm import completion
response = completion(
model="deepinfra/allenai/olmOCR-7B-0725-FP8",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: olmocr-7b
litellm_params:
model: deepinfra/allenai/olmOCR-7B-0725-FP8
api_key: os.environ/DEEPINFRA_API_KEYcurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-1234" \
-d '{
"model": "olmocr-7b",
"messages": [{"role": "user", "content": "Hello!"}]
}'Olmocr 7B 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.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request.
LiteLLM docs: DeepInfra.
Provider pages: DeepInfra.
