Back to Models

DeepSeek R1

deepseekdeepseek/deepseek-r1

DeepSeek R1 (671B total, 37B active MoE) is a reasoning model that uses chain-of-thought with <think> tags to solve complex problems. Excels at math, coding, and scientific reasoning tasks with transparent step-by-step thinking.

DeepSeek-R1 is the first-generation reasoning model from DeepSeek, released January 20, 2025. It is a 671B-total / 37B-active MoE model trained from DeepSeek-V3-Base using large-scale reinforcement learning (RL) with Group Relative Policy Optimization (GRPO). Unlike conventional post-training that starts with supervised fine-tuning, R1-Zero was trained purely via RL without any SFT, allowing the model to discover its own chain-of-thought patterns. R1 refines this foundation with rejection sampling, additional RL stages, and SFT for human preference alignment.

For TheRouter operators, R1 is the canonical open-weight reasoning model. It delivers performance on par with OpenAI-o1 across math, coding, and complex reasoning benchmarks while remaining fully open-source under the MIT license. The model natively outputs <think>…</think> reasoning traces, enabling transparent step-by-step problem solving. A May 28, 2025 refresh (R1-0528) added JSON output, function calling, reduced hallucinations, and improved front-end capabilities. DeepSeek also released six distilled smaller models (1.5B–70B) that inherit R1 reasoning patterns.

The September 18, 2025 cover feature in Nature (Vol. 645, Issue 8081) marks the first time a mainstream large language model passed rigorous peer review at a top-tier scientific journal. The paper details how pure RL can incentivize emergent reasoning without human-annotated traces, a landmark result that challenges assumptions about training cost and transparency in frontier AI.

Best for
  • β€’ Complex math, coding, and scientific reasoning where transparent CoT traces are required or valued
  • β€’ Agentic workflows that benefit from explicit verification, reflection, and backtracking steps
  • β€’ Cost-sensitive reasoning workloads where OpenAI-o1-class performance is needed at a fraction of the price
  • β€’ Research and education scenarios that want to study or teach long chain-of-thought reasoning
Reach for something else if
  • β€’ High-frequency chat or simple Q&A β€” R1's thinking overhead adds latency and token cost unnecessary for routine queries
  • β€’ Vision or multimodal input β€” R1 is text-only; route image tasks to Claude Opus 4.7, Amazon Nova 2 Lite, or Gemini 2.5 Pro
  • β€’ Production paths where DeepSeek-V4 (1M context, native tool calling) is already available β€” V4 is the recommended default for new agent projects
Context Length
128K
Max Output
33K
Input Priceper 1M tokens
$1.46/ 1M tokens
Output Priceper 1M tokens
$5.83/ 1M tokens

Modalities

text→text

Pricing Breakdown

TypeRate
Input$1.46 / 1M tokens
Output$5.83 / 1M tokens

Supported Parameters

temperaturemax_tokenstop_presponse_formatreasoningstop

Specifications

Release date2025-01-20 (R1); 2025-05-28 (R1-0528 refresh)api-docs.deepseek.com β†—verified
Architecture671B-total / 37B-active MoE; trained from DeepSeek-V3-Base via GRPO RL (R1-Zero) then multi-stage SFT + RL (R1); supports <think> reasoning tracesgithub.com β†—verified
Context length128K tokensgithub.com β†—verified
License β€” weights & codeMITgithub.com β†—verified
Nature publicationCover article, Vol. 645, Issue 8081, 18 September 2025 β€” first mainstream LLM to pass rigorous peer review at Naturewww.nature.com β†—verified
Distilled modelsSix open-source distilled models (Qwen2.5 & Llama3.1/3.3 bases): 1.5B, 7B, 8B, 14B, 32B, 70B β€” R1-Distill-Qwen-32B exceeds o1-mini on multiple benchmarksgithub.com β†—verified

Benchmarks

BenchmarkDistributionScoreSource
MMLU (Pass@1)
90.8%github.com β†—
MATH-500 (Pass@1)
97.3%github.com β†—
AIME 2024 (Pass@1)
79.8%github.com β†—
GPQA Diamond (Pass@1)
71.5%github.com β†—
LiveCodeBench (Pass@1-CoT)
65.9%github.com β†—
Codeforces (Percentile)
96.3%github.com β†—
ArenaHard (GPT-4-1106)
92.3%github.com β†—

API Usage Examples

Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "deepseek/deepseek-r1",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'

Chat + reasoning traces

DeepSeek-R1 returns both the final answer and the full <think> reasoning trace in the response. Use the trace for debugging, auditing, or surfacing intermediate steps to users.

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek/deepseek-r1",
    "messages": [{"role":"user","content":"Solve: 2x+3=17"}]
  }'

More from deepseek

Similar models

Cross-provider sibling models

News & changes

2025-09-18

DeepSeek-R1 featured on Nature cover β€” first mainstream LLM to pass rigorous peer review

The R1 technical report appears as the cover article in Nature Vol. 645, Issue 8081. This marks the first time an open-weight frontier reasoning model has undergone independent academic peer review at the highest level, validating both the RL methodology and the transparency claims.

re-authored by TheRouternature.com β†—
2025-05-28

R1-0528 refresh: JSON output, function calling, reduced hallucinations

DeepSeek released an updated checkpoint that adds structured output and tool-use capabilities while improving front-end coherence and reducing hallucination rates. The API surface remains compatible; existing clients continue to work.

re-authored by TheRouterapi-docs.deepseek.com β†—
2025-01-20

DeepSeek-R1 and R1-Zero released β€” pure RL reasoning model open-sourced

DeepSeek open-sourced both R1-Zero (pure RL, no SFT) and R1 (multi-stage with human alignment), along with six distilled smaller models. The release demonstrated that large-scale RL alone can produce o1-class reasoning without human-annotated traces.

re-authored by TheRouterapi-docs.deepseek.com β†—

Frequently asked

How do I access the reasoning trace (<think> block)?

When calling via TheRouter, the assistant message may include a reasoning_content field (provider-dependent) or the full <think>…</think> block is embedded in the content. Parse accordingly for downstream use.

re-authored by TheRouterapi-docs.deepseek.com β†—
Is R1 still the recommended model after V4 launch?

R1 remains excellent for pure reasoning workloads where the 128K context and explicit CoT traces are sufficient. For new projects that need 1M context, native tool calling, or higher throughput, evaluate DeepSeek-V4 first.

re-authored by TheRouterapi-docs.deepseek.com β†—
Can I fine-tune on R1 outputs?

Yes. The MIT license explicitly permits using API outputs for distillation and fine-tuning. DeepSeek also released the full R1 reasoning traces as part of the open-source release to support community research.

re-authored by TheRoutergithub.com β†—
Fact ledger β€” every claim on this page traces here
sourceURLretrieved
Release dateapi-docs.deepseek.com β†—2026-05-25verified
Architecturegithub.com β†—2026-05-25verified
Context lengthgithub.com β†—2026-05-25verified
License β€” weights & codegithub.com β†—2026-05-25verified
Nature publicationwww.nature.com β†—2026-05-25verified
Distilled modelsgithub.com β†—2026-05-25verified
MMLU (Pass@1)github.com β†—2026-05-25verified
MATH-500 (Pass@1)github.com β†—2026-05-25verified
AIME 2024 (Pass@1)github.com β†—2026-05-25verified
GPQA Diamond (Pass@1)github.com β†—2026-05-25verified
LiveCodeBench (Pass@1-CoT)github.com β†—2026-05-25verified
Codeforces (Percentile)github.com β†—2026-05-25verified
ArenaHard (GPT-4-1106)github.com β†—2026-05-25verified
DeepSeek-R1 featured on Nature cover β€” first mainstream LLM to pass rigorous peer reviewnature.com β†—2026-05-25verified
R1-0528 refresh: JSON output, function calling, reduced hallucinationsapi-docs.deepseek.com β†—2026-05-25verified
DeepSeek-R1 and R1-Zero released β€” pure RL reasoning model open-sourcedapi-docs.deepseek.com β†—2026-05-25verified
How do I access the reasoning trace (<think> block)?api-docs.deepseek.com β†—2026-05-25to verify
Is R1 still the recommended model after V4 launch?api-docs.deepseek.com β†—2026-05-25to verify
Can I fine-tune on R1 outputs?github.com β†—2026-05-25to verify
Help & contact