Back to Models

DeepSeek R1

deepseekdeepseek/deepseek-r1

API guide

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"}]
  }'

Reasoning traces (<think>)

R1 always emits <think>…</think> blocks before the final answer. Parse reasoning_content (when available) or the raw assistant message to surface the chain-of-thought.

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":"Prove that sqrt(2) is irrational"}]
  }'
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