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.
Quick Reference
Property
Value
Model ID
deepseek/deepseek-reasoner
Context window
128,000 tokens
Max output
8,192 tokens
Streaming
✓
Function calling
✓
Structured output
✓
Batch API
✓
Pricing
Type
Price
Input
$0.04 / 1M tokens / 1M tokens
Output
$0.06 / 1M tokens / 1M tokens
When to Use Reasoner
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
Example
from openai import OpenAIclient = OpenAI( base_url="https://openapi.linkwo.ai/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)