Models
Live image-model catalog, routing policies, and pricing
Models
DocsRouter exposes OpenRouter models that currently declare image input, text output, and valid input/output pricing. The routing policies use a smaller recommended set, while explicit model selection can use any entry returned by the live catalog.
Early access
Model availability and provider pricing can change. Read GET /v1/models before persisting a model choice, and evaluate output on your own documents.
List models
GET https://api.docsrouter.com/v1/modelscurl https://api.docsrouter.com/v1/modelsThe response uses an OpenAI-style model list and adds a docsrouter object with OCR-oriented metadata. Availability, names, context limits, and prices refresh from OpenRouter. Models that are text-only, unavailable, or missing valid pricing are excluded.
Routing model reference
| Model ID | Intended use |
|---|---|
google/gemini-2.5-flash | General documents and the default balanced/speed policy |
google/gemini-2.5-pro | Complex layouts and the quality/accuracy policies |
openai/gpt-4o-mini | Clear printed text and the cost policy |
Other IDs from GET /v1/models | Explicit, user-evaluated model selection |
These descriptions are routing guidance, not measured rankings or accuracy guarantees. DocsRouter does not publish an OCR benchmark dataset or ELO leaderboard.
Select an explicit model
Pass a supported ID to /v1/ocr:
{
"url": "https://example.com/document.png",
"model": "openai/gpt-4o"
}An explicit model takes precedence over strategy. IDs that are absent from the current priced image catalog return a validation error.
Use a routing policy
If you omit model, DocsRouter uses strategy (default: balanced) to make a transparent, static selection:
| Strategy | Selected model |
|---|---|
quality | google/gemini-2.5-pro |
accuracy | google/gemini-2.5-pro |
speed | google/gemini-2.5-flash |
cost | openai/gpt-4o-mini |
balanced | google/gemini-2.5-flash |
{
"url": "https://example.com/document.png",
"strategy": "cost"
}The policy does not classify document difficulty, compare outputs, retry failed extractions with another model, or perform a confidence-based waterfall.
The equivalent aliases docsrouter/quality, docsrouter/accuracy, docsrouter/speed, docsrouter/cost, and docsrouter/balanced are accepted as model IDs.
Pricing
Model-list prices include DocsRouter's 5% platform fee over the provider rate. OCR responses break billing into:
provider_cost_centsplatform_fee_centstotal_cost_cents
The provider's upstream request cost is used when available. Otherwise DocsRouter calculates the cost from separate input and output token rates. Minimum charges and rounding apply.
Mistral OCR is a separate dedicated PDF-processing option. Its direct provider rate is $2 per 1,000 pages before the platform fee.
Other model endpoints
GET /v1/models/{model_id}returns one supported model.GET /v1/models/statsreturns aggregate data for the current live list.GET /v1/models/recommendedreturns models marked as recommended.GET /v1/models/categoriesgroups the current list by category.