How this workload behaves
Document summarization workloads are input-heavy by design, as they ingest large volumes of text (e.g., legal contracts, research papers, or meeting transcripts) before generating concise summaries. The cost driver here is the input token volume, which scales linearly with document length, while output tokens remain relatively small unless verbose summaries are required. High-context models like Grok 2 excel at understanding nuanced language but incur significant input costs due to their large context windows. For this scenario, the primary cost comes from processing 10M input tokens monthly, where even small per-token price differences compound into substantial savings or overruns. Output costs are secondary but still material, especially if summaries are detailed.
Compare against 4 alternatives
| Model | Vendor | Monthly cost | vs primary | Δ |
|---|---|---|---|---|
| Mistral Small | Mistral | $3.20 | 0.08× | $36.80 |
| GPT-4o mini | OpenAI | $2.70 | 0.07× | $37.30 |
| Claude Haiku 4.5 | Anthropic | $20.00 | 0.50× | $20.00 |
| Gemini 1.5 Flash | $1.35 | 0.03× | $38.65 |
Recommendation
Use **Gemini 1.5 Flash** for this workload. It delivers the lowest total cost at $1.35/month (96.6% cheaper than Grok 2) while maintaining strong summarization performance for most document types. The model’s efficiency stems from its optimized architecture for long-context tasks, making it ideal for high-volume summarization where input token processing dominates. Even if Grok 2 offers marginal intelligence gains, the cost savings of $38.65/month justify the trade-off for this use case.
Cost-saving tactics for this workload
- Enable **prompt caching** for repeated document types (e.g., quarterly reports) to reuse pre-processed context, reducing input tokens by up to 80% for similar queries.
- Batch summarization requests to amortize API call overhead—process documents in chunks of 1,000+ at once to lower per-token costs via bulk discounts (if available).
- Use **Gemini 1.5 Flash’s 1M context window** to truncate or chunk documents aggressively, avoiding expensive over-contextualization while preserving summary quality.
- Implement a **two-stage routing system**: first classify documents by complexity (e.g., legal vs. email) and route simple ones to a smaller model like Mistral Small to cut costs further.
- Leverage **output token optimization** by enforcing strict summary length limits (e.g., 10% of input) to cap output costs without sacrificing utility.