DeepSeek Reasoner

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

PropertyValue
Model IDdeepseek/deepseek-reasoner
Context window128,000 tokens
Max output8,192 tokens
Streaming
Function calling
Structured output
Batch API

Pricing

TypePrice
Input$0.04 / 1M tokens / 1M tokens
Output$0.06 / 1M tokens / 1M tokens

When to Use Reasoner

ScenarioRecommended
Complex math proofsReasoner
Logical reasoning chainsReasoner
Multi-step problem solvingReasoner
Quick chat responsesDeepSeek V4 Flash
General coding tasksDeepSeek V4 Pro

Example

from openai import OpenAI

client = 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)