Pricing intelligence

DeepSeek V4 API pricing: official rates and cost calculator

All prices per 1M tokens in USD, verified against the official pricing page. V4 Flash: $0.14 input, $0.028 cache-hit input, $0.28 output. V4 Pro: $1.74 input, $0.145 cache-hit, $3.48 output. One common mix-up to avoid: the $12/M output figure circulating in comparison tables belongs to Gemini 3.1 Pro Preview, not DeepSeek.

ModelInput / 1MCached inputOutput / 1MContextPositioning
DeepSeek V4 Flash
Cost baseline
$0.14$0.028$0.281M

The cheapest V4 route. Use it as your default for agent traffic, search, summarization, and batch code tasks.

DeepSeek API Docs

DeepSeek V4 Pro
Frontier
$1.74$0.145$3.481M

Official rate: $0.145 cache-hit, $1.74 cache-miss input, $3.48 output per 1M. Worth it for long reasoning and high-risk review, not routine traffic.

DeepSeek API Docs

OpenAI GPT-5.4
Frontier
$2.5$0.25$15Short / long tiers

Strong closed-model baseline. Pick it when you need broad ecosystem compatibility or a client asks for GPT output.

OpenAI Pricing

Anthropic Claude Opus 4.7 / 4.6
Enterprise
$5$0.5$251M

Enterprise-grade review, analysis, and code-agent reference. Reserve it for tasks where a quality failure is expensive.

Anthropic Pricing

Anthropic Claude Sonnet 4.6
Enterprise
$3$0.3$151M

The practical Anthropic default when you want Claude behavior without Opus-level spend.

Anthropic Pricing

Google Gemini 3.1 Pro Preview
Multimodal
$2$0.2$121M

Note: $12/M is Gemini's output price, not DeepSeek V4 Pro's. Strongest for image, video, and Google-ecosystem work.

Google AI Pricing

xAI Grok 4.20
Realtime
$2N/A$62M

Reference point for realtime and large-context agentic workflows. xAI pricing is dynamic; verify in the console before launch.

xAI Models and Pricing

Cost simulator

Monthly token budget simulator

Selected model

$16.24

V4 Flash route

$16.24

Flash saving

0%

Budget routes

Three practical monthly budget scenarios

These examples compare Flash and Pro with fixed token volumes. Real systems also need retry cost, tool-call cost, safety filters, and cache hit assumptions.

Search and summary workload

80M input / 12M output / 45% cache hit

V4 Flash

$10.53

V4 Pro

$123.54

Code-agent monthly traffic

300M input / 90M output / 25% cache hit

V4 Flash

$58.8

V4 Pro

$715.57

Enterprise long-context knowledge base

900M input / 160M output / 60% cache hit

V4 Flash

$110.32

V4 Pro

$1,261.5

Recommended routing policy

Use V4 Flash for 70% to 90% of routine traffic. Upgrade hard, high-value, low-frequency requests to V4 Pro. OpenClaw agent traffic should start on Flash, with GPT, Claude, Gemini, or Grok kept as explicit comparison or fallback routes.

Pricing pages are not contracts

Provider pricing can change. Before production launch, re-check official pricing, rate limits, region availability, and model aliases, then keep those values configurable.