models
DeepSeek Reasoner
DeepSeek Reasoner — open-source reasoning model with 671B parameters, excels at math and logic.
models
DeepSeek Reasoner — open-source reasoning model with 671B parameters, excels at math and logic.
DeepSeek Reasoner (R1) is a powerful open-source reasoning model with 671B parameters (37B active). It matches leading frontier models on mathematical reasoning, logical deduction, code generation, and complex multi-step problem solving, with transparent reasoning tokens.
| Property | Value |
|---|---|
| Model ID | deepseek/deepseek-reasoner |
| Context window | 128,000 tokens |
| Max output | 8,192 tokens |
| Streaming | ✓ |
| Function calling | ✓ |
| Structured output | ✓ |
| Batch API | ✓ |
| Type | Price |
|---|---|
| Input | $0.04 / 1M tokens / 1M tokens |
| Output | $0.06 / 1M tokens / 1M tokens |
| Scenario | Recommended |
|---|---|
| Complex math proofs | Reasoner |
| Logical reasoning chains | Reasoner |
| Multi-step problem solving | Reasoner |
| Quick chat responses | DeepSeek V4 Flash |
| General coding tasks | DeepSeek V4 Pro |
from openai import OpenAI
client = OpenAI(
base_url="https://api.atrouter.cn/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="deepseek/deepseek-reasoner",
messages=[
{"role": "user", "content": "Prove that the square root of 2 is irrational."}
],
temperature=0.1
)
print(response.choices[0].message.content)