Installation
Environment Setup
Quick Start
Every DeepSeek model uses thedeepseek/ prefix:
Model Names
| Model | model_name | Best for |
|---|---|---|
| DeepSeek Chat | "deepseek/deepseek-chat" | General-purpose, very cheap |
| DeepSeek Reasoner (R1) | "deepseek/deepseek-reasoner" | Hard reasoning, math, code, planning |
DeepSeek Chat — The Cheap Workhorse
For day-to-day agents where cost matters:DeepSeek Reasoner (R1) — Hard Reasoning
R1 is purpose-built for chain-of-thought reasoning. It’s slower than DeepSeek Chat but punches well above its price class on math, code, and planning tasks:- Mathematical proofs and derivations
- Code refactoring and bug-finding across multiple files
- Multi-step planning where each step constrains the next
- Logic puzzles and constraint satisfaction
Autonomous Loops with R1
R1 excels in autonomous loops where each iteration builds on the last:Streaming
Multi-Model Pipelines
A common pattern: use cheap DeepSeek Chat for I/O and the expensive R1 only when reasoning is needed:Production Defaults
Next Steps
- Building Agents with Groq — R1 distillations at Groq speed
- Building Agents with OpenAI — o3 as an alternative reasoning model
- Model Providers Overview