How this workload behaves
Document summarization workloads are typically input-heavy, as they require ingesting large volumes of text (e.g., reports, articles, or legal documents) before generating concise summaries. The cost driver here is the input token volume, which scales linearly with the size of the documents being processed. Output tokens are secondary but still significant, especially for longer or more detailed summaries. Context window utilization is critical, as larger documents may require chunking or multiple API calls if the model's context limit is exceeded. Accuracy and coherence in summaries are paramount, so model intelligence plays a key role in reducing the need for post-processing or human review.
Compare against 5 alternatives
| Model | Vendor | Monthly cost | vs primary | Δ |
|---|---|---|---|---|
| Claude Opus 4.7 | Anthropic | $300.00 | 15.00× | +$280.00 |
| Claude Sonnet 4.6 | Anthropic | $60.00 | 3.00× | +$40.00 |
| Mistral Small | Mistral | $3.20 | 0.16× | $16.80 |
| GPT-4o mini | OpenAI | $2.70 | 0.14× | $17.30 |
| Gemini 1.5 Flash | $1.35 | 0.07× | $18.65 |
Recommendation
For document summarization, **Gemini 1.5 Flash** is the clear winner, offering the lowest total cost at $1.35/month while maintaining strong summarization capabilities. It delivers a 93% cost reduction compared to the primary model (Haiku 4.5) and outperforms even cheaper alternatives like Mistral Small and GPT-4o mini in output quality for this task. The 1.5M context window also reduces the need for chunking large documents, further lowering operational complexity. Given the input-heavy nature of summarization, the cost savings are substantial without sacrificing performance.
Cost-saving tactics for this workload
- Use **prompt caching** to store frequent document prefixes (e.g., boilerplate text or instructions) and reduce input token costs for repeated summarization tasks.
- Batch multiple documents into a single API call where possible to amortize the fixed cost of each request, especially for high-volume summarization pipelines.
- Implement **context compression** techniques (e.g., summarizing chunks first, then combining summaries) to reduce the input size for the final summarization step.
- Leverage **Gemini 1.5 Flash's long context window** to process entire documents in one pass, avoiding the overhead of chunking and multiple API calls.
- For non-critical summaries, use a **smaller model (e.g., Mistral Small)** as a first-pass filter to identify key sections, then route only the most relevant content to a higher-quality model like Gemini 1.5 Flash.