Recommended models
Single-document summary
Structured summary with key points
Long documents with DeepSeek V4.1 Flash
For documents exceeding 160K tokens: full research papers, legal contracts: use DeepSeek V4.1 Flash with its 1M-token context window:Batch summarization
Tips
- Lower temperature (0.2–0.3) produces more faithful summaries.
- DeepSeek V3.2 is the best cost-to-quality ratio for most summarization tasks.
- DeepSeek V4.1 Flash is the choice when the source document exceeds 160K tokens.
Next steps
- Structured output with Vercel AI SDK
- Chat completions reference
- AI Sentiment Analysis: pair summarization with sentiment scoring