Introduction
Unified Vision LLM & OCR API Gateway
Introduction
DocsRouter is a unified API gateway that simplifies integrating distinct Optical Character Recognition (OCR) and Vision LLM providers into your applications.
Instead of managing multiple API keys, distinct response formats, and separate billing for Google Gemini, OpenAI GPT-4o, Anthropic Claude, and others, DocsRouter provides a single standardized API.
OpenAI SDK Compatible
DocsRouter is fully compatible with OpenAI and OpenRouter SDKs. Just change the base URL:
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.docsrouter.com/v1',
apiKey: 'YOUR_DOCSROUTER_API_KEY',
});Why DocsRouter?
- Drop-in Replacement: Works with any OpenAI-compatible SDK. No code changes needed.
- Unified API: One standard request/response format for all providers. Switch models by changing just one string.
- Vision LLM Power: Leverage state-of-the-art multimodal LLMs like Gemini 2.0 Flash, GPT-4o, and Claude 3.5 Sonnet for superior document understanding.
- OCR Extensions: Get confidence scores, table extraction, and cost breakdown in every response.
- Failover & Routing: (Coming Soon) Automatically route to the cheapest or most accurate provider.
- Unified Billing: Manage a single credit balance for all your OCR needs.
Supported Providers
DocsRouter provides access to 100+ vision-capable models from all major providers, dynamically fetched from OpenRouter:
- Google: Gemini 2.0 Flash, Gemini 2.5 Flash/Pro, and more
- OpenAI: GPT-4o, GPT-4o Mini, GPT-4 Turbo
- Anthropic: Claude Sonnet 4, Claude 3.5 Sonnet, Claude 3 Haiku/Opus
- Mistral: Pixtral Large, Pixtral 12B
- Meta: Llama 3.2 Vision models
- And many more: Qwen, X.AI, Amazon Nova, etc.
View all available models on our Providers page.
Pricing
DocsRouter pricing is 5% above OpenRouter rates, covering our unified API, OCR extensions, and platform services. All prices are transparently shown in the /v1/models endpoint and on each API response.
PDF Processing:
pdf-textengine: Freemistral-ocrengine: $0.105/1,000 pages (5% markup on $0.10)