How this workload behaves
Long-document Q&A workloads are input-heavy due to the need to ingest large chunks of text (e.g., legal contracts, research papers, or technical manuals) before generating concise answers or summaries. Costs are driven primarily by the volume of input tokens processed, as the model must analyze the entire context to ensure accuracy. Output costs are secondary but still significant, especially when answers require detailed reasoning or structured formatting. The 200K context window of Sonnet 4.6 is well-suited for this workload, as it allows for comprehensive document analysis without excessive truncation or fragmentation.
Compare against 5 alternatives
| Model | Vendor | Monthly cost | vs primary | Δ |
|---|---|---|---|---|
| Claude Opus 4.7 | Anthropic | $300.00 | 5.00× | +$240.00 |
| Claude Haiku 4.5 | Anthropic | $20.00 | 0.33× | $40.00 |
| Mistral Small | Mistral | $3.20 | 0.05× | $56.80 |
| GPT-4o mini | OpenAI | $2.70 | 0.04× | $57.30 |
| Gemini 1.5 Flash | $1.35 | 0.02× | $58.65 |
Recommendation
For long-document Q&A, **Gemini 1.5 Flash** is the optimal choice, offering the lowest total cost at $1.35/month (97.75% cheaper than Sonnet 4.6) while maintaining strong performance for retrieval-augmented tasks. Its 1M token context window and efficient architecture make it ideal for ingesting large documents, and the minimal output cost ($0.30) ensures affordability even for verbose responses. The trade-off in intelligence is negligible for this use case, as the workload prioritizes factual retrieval over complex reasoning.
Cost-saving tactics for this workload
- Use **context truncation** to feed only the most relevant sections of documents (e.g., via embeddings or keyword matching) to reduce input tokens by 50-80%.
- Implement **prompt caching** (if supported by the vendor) to store and reuse document embeddings or summaries across queries, cutting input costs by ~30%.
- Batch API calls** for bulk document processing to amortize fixed costs (e.g., 100 documents per request instead of 1).
- Switch to **Gemini 1.5 Flash** for a 97.75% cost reduction while preserving accuracy for most Q&A tasks.
- For hybrid workflows, use **Claude Haiku 4.5** as a lightweight router to classify queries and route only complex ones to Sonnet 4.6, saving ~$20/month.