Save on document processing with batch inference
Run extraction, classification, and labeling as a single job: one line per document, one file, one submission. Request JSON output, collect results within 24 hours, and pay less than OpenRouter batch inference.
Request JSON on every line
Submit the job with HTTP or the OpenAI SDK. Include a JSON schema on each chat body so every document returns as structured data you can load without cleanup.
curl https://us.api.lararouter.com/v1/batches \
-H "Authorization: Bearer $LARAROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input_file_id": "file_9Hs4TnQ2",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}'One file in, one file out
Everything runs through the same jobs API: upload a JSONL file, create a batch, and download the results. There is no interactive tier with a premium price.
Structured JSON from every document
Each line is a chat request with a JSON schema, so results arrive ready to store—not free-form text you have to clean up later.
Retry only the failures
Failed lines land in the error file with the custom_id you assigned. Rebuild a file from those ids and resubmit without reprocessing the rest.
Stronger models at batch pricing
Long documents often need a larger model. Batch pricing makes high-quality extraction practical at volumes that do not justify interactive rates.
Models for document processing
Recommended models for extraction, classification, and labeling, with the batch rate each one bills.
BatchPer 1M tokens | ||||
|---|---|---|---|---|
| Recommended for | ||||
| Command R 35B | SummarizationDocument Processing | 0,25 $ 23% below OpenRouter batch | 0,75 $ 21% below OpenRouter batch | |
| DeepSeek-R1-Distill-Qwen 14B | SummarizationDocument Processing | 0,15 $ 21% below OpenRouter batch | 0,15 $ 21% below OpenRouter batch | |
| DeepSeek-R1-Distill-Llama 70B | SummarizationDocument Processing | 0,40 $ 20% below OpenRouter batch | 0,40 $ 20% below OpenRouter batch | |
| Llama 3.3 70B | SummarizationDocument Processing | 0,44 $ 20% below OpenRouter batch | 0,44 $ 20% below OpenRouter batch | |
| Llama 3.1 70B | SummarizationDocument Processing | 0,44 $ 20% below OpenRouter batch | 0,44 $ 20% below OpenRouter batch | |
| Mistral Small 3 24B | SummarizationDocument Processing | 0,30 $ 20% below OpenRouter batch | 0,30 $ 20% below OpenRouter batch | |
| Mixtral 8×7B | SummarizationDocument Processing | 0,30 $ 20% below OpenRouter batch | 0,30 $ 20% below OpenRouter batch | |
| Codestral 22B | Document Processing | 0,30 $ 20% below OpenRouter batch | 0,30 $ 20% below OpenRouter batch | |
| Qwen2.5 14B | SummarizationDocument Processing | 0,10 $ 26% below OpenRouter batch | 0,40 $ 20% below OpenRouter batch | |
| Qwen2.5-Coder 7B | Document Processing | 0,10 $ 20% below OpenRouter batch | 0,15 $ 25% below OpenRouter batch | |
| Qwen2.5-Coder 14B | Document Processing | 0,10 $ 26% below OpenRouter batch | 0,40 $ 20% below OpenRouter batch | |
| Qwen2.5 32B | SummarizationDocument Processing | 0,40 $ 20% below OpenRouter batch | 0,40 $ 20% below OpenRouter batch | |
| Qwen2.5 72B | SummarizationDocument Processing | 0,45 $ 22% below OpenRouter batch | 0,60 $ 20% below OpenRouter batch | |
| Qwen2.5-Coder 32B | Document Processing | 0,40 $ 20% below OpenRouter batch | 0,40 $ 20% below OpenRouter batch | |
Start processing documents
Upload a file, create a batch, and download structured results within 24 hours. Enterprise plans deliver in as little as 4 hours.