DeepSeek R1-Zero proved that complex reasoning emerges purely through reinforcement learning without prior supervised fine-tuning (SFT). While input tokens are priced aggressively at $0.14/1M (cached $0.014/1M) and outputs at $2.19/1M, R1-Zero generates long reflection tokens and language-mixing traces, causing token counts to average 30–50% higher than polished R1.
Official token unit economics, prompt caching discounts, latency benchmarks, and ROI simulator for DeepSeek R1 Zero by DeepSeek.
from openai import OpenAI
import os
client = OpenAI(
api_key=os.environ.get("DEEPSEEK_API_KEY"),
base_url="https://api.deepseek.com"
)
# DeepSeek R1 Zero: Pure reinforcement learning reasoning without SFT warm-up
response = client.chat.completions.create(
model="deepseek-reasoner",
messages=[
{"role": "user", "content": "Prove that the square root of 2 is irrational using contradiction."}
]
)
# Access internal chain-of-thought reflection reasoning tokens
print("Reasoning Process:\n", response.choices[0].message.reasoning_content)
print("\nFinal Response:\n", response.choices[0].message.content)
DeepSeek R1 Zero marks a historic breakthrough in artificial intelligence: it is the first frontier reasoning model trained directly via large-scale Pure Reinforcement Learning (RL) on the base DeepSeek-V3 architecture without an initial Supervised Fine-Tuning (SFT) warm-up stage. By rewarding the model strictly on rule-based verifiers for mathematical proofs and code execution correctness, DeepSeek R1 Zero autonomously discovered sophisticated reasoning strategies—including self-reflection, backtracking, alternative hypothesis testing, and the famous 'aha moment'—without human demonstration data.
From an API cost perspective, R1 Zero introduces a fundamental economic shift. Rather than charging high prices per input token, R1 Zero costs a modest $0.55/1M input tokens ($0.14 with prompt caching). However, because the model generates internal thinking tokens to verify logic before emitting the final answer, output token volumes expand by 3x to 8x compared to standard instruction models. Understanding this output expansion is crucial for predicting monthly inference spend.
| Model & Provider | Input Rate / 1M | Cached Input / 1M | Output Rate / 1M | Thinking Cost / 1k Tokens |
|---|---|---|---|---|
| DeepSeek R1 Zero | $0.55 / 1M | $0.14 / 1M | $2.19 / 1M | $0.00219 (Ultra-Low) |
| OpenAI o1-mini | $1.10 / 1M | $0.55 / 1M | $4.40 / 1M | $0.00440 |
| OpenAI o1 (Full) | $15.00 / 1M | $7.50 / 1M | $60.00 / 1M | $0.06000 (27x more expensive) |
| Claude 3.7 Sonnet (Thinking) | $3.00 / 1M | $0.30 / 1M | $15.00 / 1M | $0.01500 |
deepseek-reasoner (R1 Full).max_tokens=8192.DeepSeek-R1-Zero represents an unprecedented breakthrough in large language model training: it develops complex chain-of-thought (CoT) reasoning behaviors, internal self-correction, and reflective search entirely through pure reinforcement learning (RL) without prior supervised fine-tuning (SFT) data. Operating on the 671-billion parameter Mixture-of-Experts (MoE) architecture where 37 billion parameters are activated per token across 8 routed experts, R1-Zero demonstrates the natural emergence of anthropomorphic reasoning mechanisms such as "Wait, let me rethink that".
| Hardware Cluster | Parallelism Strategy | Total VRAM | Throughput (Tokens/s) | Hourly Hosting Cost |
|---|---|---|---|---|
| 8x NVIDIA H100 (80GB) | FP8 Quantized (EP=8, TP=1) | 640 GB | 42 tokens/s | $19.92 / hr |
| 16x NVIDIA H100 (80GB) | Native BF16 (EP=8, TP=2) | 1,280 GB | 78 tokens/s | $39.84 / hr |
| DeepSeek Official Cloud API | Managed Multi-Tenant Serverless | Dynamic Pool | 35 - 55 tokens/s | $0.55 in / $2.19 out per 1M |
Stream reasoning chunks asynchronously and monitor thinking token allocation in Python:
from openai import AsyncOpenAI
import os
client = AsyncOpenAI(api_key=os.environ["DEEPSEEK_API_KEY"], base_url="https://api.deepseek.com")
async def stream_reasoning_task(prompt: str):
response = await client.chat.completions.create(
model="deepseek-reasoner",
messages=[{"role": "user", "content": prompt}],
stream=True
)
reasoning_tokens = 0
answer_tokens = 0
async for chunk in response:
delta = chunk.choices[0].delta
if hasattr(delta, "reasoning_content") and delta.reasoning_content:
reasoning_tokens += 1
print(delta.reasoning_content, end="", flush=True)
elif delta.content:
answer_tokens += 1
print(delta.content, end="", flush=True)
return reasoning_tokens, answer_tokens
A notable artifact of pure RL training in R1-Zero is language mixing (code-switching between English, Chinese, and mathematical symbols) during internal thinking phases. While intermediate reasoning can appear unstructured, final output answers conform strictly to prompt instructions. In customer-facing deployments, buffering and isolating thinking blocks before rendering guarantees that end users receive clean, language-consistent responses.
When deploying DeepSeek-R1-Zero across multi-node GPU clusters (such as 2x 8x H100 nodes), configuring Expert Parallelism ($EP=8$) and Tensor Parallelism ($TP=2$) over 400 Gbps InfiniBand fabrics prevents all-to-all communication bottlenecks during expert dispatch. In high-concurrency environments, setting speculative decoding with a lightweight draft model (such as DeepSeek-R1-Distill-8B) increases effective tokens-per-second generation by up to 2.8x.
For production customer applications, parsing and logging internal thinking tokens into observability traces while streaming only sanitized output tokens guarantees clean end-user presentation without sacrificing auditability.
Operating DeepSeek-R1-Zero across distributed clusters requires low-latency RDMA over Converged Ethernet (RoCEv2) or InfiniBand fabrics. Sustaining inter-node network latencies below 3 microseconds prevents GPU all-to-all expert communication delays from stalling forward-pass execution pipelines.