How to use this calculator
- Enter the batch document count and average pages.
- Estimate tokens produced per page.
- Add fixed prompt and expected output tokens per document.
- Include a retry allowance, then calculate.
Estimate the token allowance required for OCR-assisted extraction, classification, summarization, or structured data capture across a document batch. Enter the batch size, average page count, tokens contributed by each page, fixed prompt overhead, and expected output length. The result separates page-level input from document-level overhead so you can compare model context needs, API quotas, and cost scenarios without assuming a particular provider or token price.
Total = Documents × [(Pages × Tokens per page) + Prompt tokens + Output tokens] × (1 + Retry % ÷ 100)
Input and output are also reported separately because model providers may price them differently.
The main result is the combined token volume for the entire batch after the retry allowance. It is a planning quantity, not a guaranteed bill.
Tokenizer behavior varies by model and language. Measure representative documents with the tokenizer used by your chosen model before committing capacity.
For 1,000 documents averaging 8 pages, 700 page tokens, 500 prompt tokens, 300 output tokens, and 5% retries: 1,000 × [(8 × 700) + 500 + 300] × 1.05 = 6,720,000 tokens.
Yes. Enter the combined model input attributable to each page when both text and page images are sent.
It uses an average page count. For a mixed batch, calculate each document class separately and add the totals.
The formula assumes one fixed instruction block for each document. If you call the model once per page, include that repeated instruction in tokens per page instead.
Use observed reprocessing rates from OCR failures, validation failures, or transient API errors; use zero if no allowance is needed.
Apply the provider’s current input and output prices to the separate input and output results rather than multiplying the combined total by one rate.
| Variable | Applied at | Unit |
|---|---|---|
| Page tokens | Every page | tokens/page |
| Prompt tokens | Every document | tokens/document |
| Output tokens | Every document | tokens/document |
| Retry allowance | Whole workload | percent |