How this workload behaves
Document summarization workloads are typically input-heavy, as they require processing large volumes of text to extract key points. The cost is primarily driven by the input token volume, with output tokens (summaries) contributing a smaller but still significant portion. Long context windows are advantageous here, as they allow for processing entire documents in a single pass without truncation or multiple API calls. Efficiency gains often come from optimizing input usage—such as reducing redundant text or leveraging structured prompts—rather than focusing solely on output token savings.
Compare against 5 alternatives
| Model | Vendor | Monthly cost | vs primary | Δ |
|---|---|---|---|---|
| Mistral Large | Mistral | $32.00 | 10.00× | +$28.80 |
| Codestral | Mistral | $3.20 | 1.00× | +$0.0000 |
| GPT-4o mini | OpenAI | $2.70 | 0.84× | $0.50 |
| Claude Haiku 4.5 | Anthropic | $20.00 | 6.25× | +$16.80 |
| Gemini 1.5 Flash | $1.35 | 0.42× | $1.85 |
Recommendation
For document summarization, **Gemini 1.5 Flash** is the best choice due to its 42% lower cost ($1.35 vs. $3.20) while maintaining competitive summarization quality. The model’s efficiency in handling long contexts and lower per-token pricing makes it ideal for high-volume, input-intensive workloads. Even Mistral Small, the primary model, is outperformed by Gemini 1.5 Flash in cost savings, making it the clear winner for budget-conscious deployments.
Cost-saving tactics for this workload
- Use **prompt caching** to store document context for repeated summarization tasks, reducing input token costs by up to 90% for subsequent requests.
- Batch multiple documents into a single API call where possible, as batch processing often reduces per-token costs compared to individual requests.
- Implement **context compression** by pre-filtering documents to remove boilerplate or irrelevant sections before sending to the LLM.
- For multi-stage workflows, use a **smaller model (e.g., Codestral or Mistral Small) for initial routing or filtering** before passing relevant content to a higher-cost model for final summarization.
- Leverage **structured output formats** (e.g., JSON) to minimize output token waste and ensure summaries are machine-readable without post-processing.