PDF Summarizer & Long-Document LLM Cost Calculator
Estimate token counts (~500–700 tokens per dense PDF page) and compare exact per-document API cost across 128k and 1M-context LLMs.
| # | Model & Provider | Context / Speed | Input $/1M (edit) | Output $/1M (edit) | Cached $/1M | 1 Call | 1,000 Calls | 100,000 Calls | vs GPT-4o |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Llama 3.1 8B Instant (Groq) Meta (Groq)·Fast / Budget | 128K ctx 560 tok/s | N/A | $0.000037 | $0.04 | $3.68 | -99% | ||
| 2 | Gemini 2.0 Flash-LiteFocus Google·Fast / Budget | 1.0M ctx 210 tok/s | $0.019 | $0.0001 | $0.13 | $12.92 | -97% | ||
| 3 | Mistral Small 3.1 Mistral·Fast / Budget | 128K ctx 150 tok/s | N/A | $0.0001 | $0.14 | $13.83 | -97% | ||
| 4 | Llama 4 Scout 17B (Groq) Meta (Groq)·Fast / Budget | 131K ctx 460 tok/s | N/A | $0.0001 | $0.15 | $14.92 | -96% | ||
| 5 | GPT-4.1 nano OpenAI·Fast / Budget | 1.0M ctx 170 tok/s | $0.025 | $0.0002 | $0.17 | $16.73 | -96% | ||
| 6 | GPT-4o mini OpenAI·Fast / Budget | 128K ctx 135 tok/s | $0.075 | $0.0003 | $0.25 | $25.10 | -94% | ||
| 7 | Gemini 2.5 FlashFocus Google·Balanced | 1.0M ctx 165 tok/s | $0.037 | $0.0003 | $0.26 | $25.85 | -94% | ||
| 8 | Llama 3.3 70B (Groq) Meta (Groq)·Balanced | 128K ctx 280 tok/s | N/A | $0.0004 | $0.37 | $36.92 | -91% | ||
| 9 | Llama 4 Maverick (Together) Meta (Together)·Balanced | 1M ctx 140 tok/s | N/A | $0.0004 | $0.37 | $37.28 | -91% | ||
| 10 | Grok 3 Mini xAI·Reasoning | 131K ctx 155 tok/s | $0.075 | $0.0004 | $0.45 | $44.57 | -89% | ||
| 11 | DeepSeek V3 (Chat) DeepSeek·Balanced | 128K ctx 68 tok/s | $0.070 | $0.0005 | $0.47 | $46.90 | -89% | ||
| 12 | GPT-4.1 miniFocus OpenAI·Fast / Budget | 1.0M ctx 115 tok/s | $0.10 | $0.0007 | $0.67 | $66.94 | -84% | ||
| 13 | DeepSeek R1 DeepSeek·Reasoning | 128K ctx 54 tok/s | $0.14 | $0.0009 | $0.93 | $93.44 | -78% | ||
| 14 | Amazon Nova Pro (Bedrock) Amazon·Balanced | 300K ctx 98 tok/s | $0.20 | $0.0014 | $1.39 | $139.16 | -67% | ||
| 15 | Claude 3.5 Haiku Anthropic·Fast / Budget | 200K ctx 120 tok/s | $0.080 | $0.0018 | $1.80 | $179.64 | -57% | ||
| 16 | OpenAI o4-mini OpenAI·Reasoning | 200K ctx 95 tok/s | $0.28 | $0.0018 | $1.84 | $184.09 | -56% | ||
| 17 | Mistral Large 2 Mistral·Frontier | 128K ctx 65 tok/s | N/A | $0.0028 | $2.77 | $276.60 | -34% | ||
| 18 | GPT-4.1Focus OpenAI·Frontier | 1.0M ctx 78 tok/s | $0.50 | $0.0033 | $3.35 | $334.70 | -20% | ||
| 19 | OpenAI o3 OpenAI·Reasoning | 200K ctx 52 tok/s | $0.50 | $0.0033 | $3.35 | $334.70 | -20% | ||
| 20 | GPT-4o OpenAI·Frontier | 128K ctx 85 tok/s | $1.25 | $0.0042 | $4.18 | $418.38 | Baseline | ||
| 21 | Gemini 2.5 Pro Google·Reasoning | 1.0M ctx 88 tok/s | $0.31 | $0.0042 | $4.24 | $423.88 | +1% | ||
| 22 | Claude Sonnet 4Focus Anthropic·Frontier | 200K ctx 72 tok/s | $0.30 | $0.0067 | $6.74 | $673.65 | +61% | ||
| 23 | Claude 3.7 Sonnet Anthropic·Frontier | 200K ctx 75 tok/s | $0.30 | $0.0067 | $6.74 | $673.65 | +61% | ||
| 24 | Grok 3 xAI·Frontier | 131K ctx 74 tok/s | $0.75 | $0.01 | $12.72 | $1,271.70 | +204% | ||
| 25 | Claude Opus 4 Anthropic·Frontier | 200K ctx 42 tok/s | $1.50 | $0.03 | $33.68 | $3,368.25 | +705% |
Tip: Click any Input or Output $/1M cell to test custom enterprise discounts, Bedrock/Vertex tiers, or Gemini 2.5 Pro >200k long-context rates inline.
Key Cost Benchmarks & Pricing Dynamics
A 100-page dense legal/financial PDF typically extracts to 55,000–75,000 input tokens.
Gemini 2.5 Flash summarizes a 60k-token PDF for ~$0.01; Claude Sonnet 4 costs ~$0.20; Batch API cuts both in half.
Models like Gemini 2.5 Flash/Pro and GPT-4.1 ingest 500-page PDFs in one call without chunking artifacts.
Focused Models in This Calculator
High-margin SaaS agents, RAG synthesis, fast multimodal
Massive-scale batch classification, translation, ETL
High-volume agents, classification, extraction
Coding, 1M-context RAG, instruction following
Autonomous coding agents, editorial writing, tool use
Production FinOps Optimization Playbook
Use Batch API for Overnight Document Backfills
Processing 10,000 archived PDFs via OpenAI, Anthropic, or Gemini Batch API immediately slashes your bill by 50%.
Cache the PDF When Users Ask Follow-Up Questions
For 'Chat with PDF' apps, cache the entire extracted PDF text on turn 1 so turns 2–10 cost 75%–90% less.
Extract Text Locally Before Sending Vision Pages
Sending PDF pages as high-res images consumes 1,000–2,000+ vision tokens per page. Use text extraction for standard PDFs and reserve vision only for scanned tables/charts.
Frequently Asked Questions
How many tokens is a 100-page PDF?
Depending on layout density, a 100-page text PDF averages 50,000 to 75,000 tokens (roughly 375–550 words per page x 1.35 tokens/word).
What is the cheapest model to summarize long PDFs?
Gemini 2.0 Flash-Lite ($0.075/$0.30) and Gemini 2.5 Flash ($0.15/$0.60) both support 1M-token inputs, summarizing a 60k-token PDF for under one cent.
Does passing a PDF as images cost more than extracted text?
Yes—multimodal image tokenization often uses 2x–3x more input tokens per page than clean text extraction, though vision improves accuracy on complex financial charts.
Which model is best for complex legal PDF redlining?
Claude Sonnet 4, GPT-4.1, and Gemini 2.5 Pro lead on nuanced legal extraction; use Gemini 2.5 Flash to pre-screen documents and escalate flagged clauses.
Related LLM Cost Calculators
Google Gemini API Cost Calculator (2.5 Pro, 2.5 Flash & Flash-Lite)
Open calculator RAG Architecture CostingRAG Pipeline Token Cost Calculator (Chunking, Rerank & Generation)
Open calculator Async Batch API SavingsLLM Batch API 50% Discount Cost Calculator (OpenAI, Claude & Gemini)
Open calculator Live Multi-Tokenizer ToolLive AI Token Counter for OpenAI, Claude & Gemini Prompts
Open calculatorFree Forever Calculator. Upgrade When Spend Scales.
Model 25 LLMs with zero login today. Upgrade to Pro or Team for automated API price-drop alerts, saved CFO scenarios, and live usage overrun guards.
Free
No SignupEverything you need for architecture sizing, prompt tokenization, and SaaS margin checks.
- Unlimited comparisons across 25+ models
- Live client-side prompt token counter (EN/Code/CJK)
- Prompt caching (0–90%) & Batch API 50% toggles
- AI Agent & SaaS Gross Margin Simulator
- 80/20 Model Routing Optimizer + inline rate edits
- Unlimited CSV financial exports
Pro
Founders & PMsNever get blindsided by provider price changes or margin erosion across investor reviews.
- Everything in Free, plus cloud-saved scenarios
- Compare multiple multi-agent architecture versions
- Weekly API price-drop & new-model email alerts
- 1-click branded CFO / Board Deck PDF export
- Custom enterprise discount profiles (AWS/Vertex/OpenAI)
- Historical token price tracker & depreciation notices
Team
Live GuardrailsConnect real production token telemetry and catch runaway agent loops before the bill lands.
- Everything in Pro for up to 10 team seats
- Zero-latency live usage telemetry proxy endpoint
- Real-time Slack & webhook budget overrun alerts
- Per-customer / per-tenant gross margin leaderboard
- Automatic anomaly detection on infinite agent loops
- Scheduled weekly FinOps digest to #ai-infra