DeepSeek V4 Models, Harness, and API Discount Windows: The Complete Guide (2026)
DeepSeek's V4 lineup ships two models: the MIT-licensed DeepSeek-V4-Flash-0731 (284B-parameter MoE, 13B active) and the flagship DeepSeek-V4-Pro-0813 (1.6T-parameter MoE, 49B active). Both share a 1M-token context window, 384K max output, and thinking/non-thinking modes. A new peak/off-peak API tariff bills every hour outside 01:00–04:00 and 06:00–10:00 UTC at 50% of the peak price. The same-day DeepSeek Harness (dsh) is an MIT-licensed, plugin-first agent framework that installs from source on macOS in four commands. Everything below is dated and sourced.
1. DeepSeek-V4-Flash-0731: Specs, Benchmarks, and Open-Source Release
DeepSeek-V4-Flash-0731 is the official production version of the smaller "Flash" tier in the V4 family, released and open-sourced under the MIT license on July 31, 2026, with weights on Hugging Face (it hit the top of the trending charts). It supersedes the April preview and is essentially a new fine-tune on an unchanged architecture — yet independent testing found it overtook DeepSeek's own flagship V4-Pro on several agentic benchmarks at a fraction of the cost. The 0731 in the name is the release date: July 31.
1.1 Core specifications
| Specification | DeepSeek-V4-Flash-0731 |
|---|---|
| Model type | Sparse Mixture-of-Experts (MoE) transformer |
| Total parameters | 284B (304B with the attached DSpark speculative-decoding draft module) |
| Active parameters per token | 13B |
| Context window | 1,000,000 tokens (1M) |
| Max output tokens | 384K (~122.7 tokens/sec generation) |
| License | MIT (weights free for commercial and non-commercial use) |
| Modes | Thinking (low / high / max reasoning effort) + non-thinking |
| Tool calls / context caching | Both supported |
| Concurrency limit | 2,500 concurrent requests (high-throughput friendly) |
| Self-hosting | 3-bit quantized version runs in ~110 GB of memory; FP8 full weights ≈ 166.9 GB |
1.2 Architecture: how it cuts long-context cost
The V4 architecture (introduced with the V4 series in April 2026) attacks the biggest cost in long-context inference: the key-value (KV) cache. Attention layers alternate between two compression schemes:
CSA(Compressed Sparse Attention) — condenses every 4 tokens into a single entry and attends only to the most relevant entries.HCA(Heavily Compressed Attention) — condenses every 128 tokens into a single entry and attends to all of them.
At full 1M-token input, V4-Flash needs only ~10% of the compute and ~7% of the KV-cache memory of DeepSeek-V3.2 (per Goldman Sachs research). The checkpoint ships with the DSpark speculative-decoding draft module attached: a small draft model proposes several tokens ahead and the main model verifies them in parallel instead of one-by-one, speeding up generation. Serving engines vLLM and SGLang enable it with a single flag (--speculative-config). Model internals use FP4 quantization for MoE expert parameters and FP8 for non-expert layers, cutting KV-cache memory overhead by up to 90%. A notable packaging change: the release drops Jinja chat templates in favor of a Python script package (encoding_dsv4) and a configurable reasoning_effort parameter (low / high / max).
1.3 Training & post-training
- Pretrained on more than 32 trillion tokens.
- Fine-tuned in two stages: first, a separate domain specialist model was built per domain (math, coding, agentic tasks) using supervised fine-tuning plus GRPO reinforcement learning; second, the specialists (10+) were merged via on-policy distillation — the merged model wrote its own responses and training corrected each toward how the best specialist would have answered.
- The three reasoning levels (low / high / max) were trained as distinct behaviors with different length penalties and context windows; "max" prepends a system prompt that pushes the model to fully decompose problems and test edge cases.
- During tool-using agentic tasks, V4-Flash keeps its entire reasoning history in context across every round (including across user messages) — something V3.2 discarded.
1.4 Independent benchmarks (August 2026)
| Benchmark | V4-Flash-0731 (max reasoning) | Context |
|---|---|---|
| Artificial Analysis Intelligence Index | 50 (vs. preview's 40, V4-Pro's 44) | Ties Gemini 3.6 Flash (50); 1 pt behind GPT-5.6 Luna & GLM-5.2 (51); leader is Kimi K3 (57) |
| GDPval-AA v2 (real-work head-to-head) | 1,558 Elo | 2nd-best open-weights model (behind Kimi K3's 1,685; ahead of GLM-5.2's 1,508) |
| Terminal-Bench 2.1 (CLI agent tasks) | 82.7% | +21 pts vs. April preview (61.8%) |
| τ³-Bench Banking (multi-turn tool use) | 31.1% | ~8 pts above preview |
| CodeArena WebDev (front-end dev) | 1,577 | 7th overall, 3rd among open-weights models |
| Cost per Intelligence-Index task | $0.03 | vs. $0.05 for the similar-intelligence GPT-5.6 Luna |
The story in one line (per DeepLearning.AI's The Batch): V4-Flash-0731 sits on Artificial Analysis' Pareto frontier for intelligence vs. cost per task — no tracked model is both smarter and cheaper to run. It landed during a brutal pricing week: OpenAI cut GPT-5.6 Luna 80%, Google shipped Gemini 3.6 Flash, and Thinking Machines released Inkling Small — a sign the market's center of gravity has moved to intelligence-per-dollar.
1.5 V4-Flash API pricing (pre-tariff change)
At launch, first-party API pricing was $0.14 per million input tokens, $0.0028 per million cached-input tokens, and $0.28 per million output tokens (≈¥0.02 / ¥1 / ¥2). The August 16 tariff overhaul replaced this flat rate with the peak/off-peak schedule in Section 6.
2. DeepSeek-V4-Pro-0813: Flagship GA, Benchmarks, and Caveats
DeepSeek-V4-Pro-0813 is the production build of DeepSeek's flagship, announced on August 13, 2026 ("GA Release" day) and the third V4-Pro release in four months: an open preview on April 24, GA on July 19, and the quieter 0813 production build on August 13. Per DeepSeek's own change log, 0813 is primarily a serving-efficiency update (~51.7B additional parameters across four new speculative-decoding "DSpark" keys) rather than a new architecture — but it ships large vendor-reported agentic gains and is what now serves as deepseek-v4-pro on the API (no model-name change needed).
2.1 Core specifications
| Specification | DeepSeek-V4-Pro-0813 |
|---|---|
| Model type | Sparse Mixture-of-Experts (MoE) |
| Total parameters | 1.6 trillion |
| Active parameters per token | 49 billion |
| Context window | 1,000,000 tokens (1M) |
| Max output tokens | 384K |
| License | MIT, open weights on Hugging Face (full FP8 weights ≈ 892.7 GB — not single-workstation self-hostable) |
| Modes | Thinking (default) + non-thinking; reasoning effort low / high / max |
| API compatibility | OpenAI format (https://api.deepseek.com), Responses API, Anthropic API (/anthropic), JSON output, tool calls, Chat Prefix Completion (Beta), FIM Completion (Beta, non-thinking only) |
| Concurrency limit | 500 concurrent requests |
| Headline use case | Agentic coding; native Codex integration with one-click setup; "Expert Mode" in the DeepSeek app/web |
2.2 Architecture & the efficiency thesis
- mHC (Manifold-Constrained Hyper-Connections) — constrains signal amplification to under 2×, keeping training of a 1.6T model stable at only ~6.7% compute overhead.
- DeepSeek Sparse Attention (DSA) — the hybrid compressed/hierarchical attention (CSA + HCA) described above; pushes context-cost growth closer to linear than quadratic.
- At the 1M-token setting, V4-Pro needs ~27% of the single-token inference compute and ~10% of the KV cache that V3.2 needed (per Goldman Sachs; DeepSeek's own figures).
- 0813 adds four new DSpark keys (~51.7B params) focused on speculative decoding for serving efficiency.
2.3 Benchmarks: vendor-reported vs. independent
DeepSeek's own numbers (run through DeepSeek Harness at max reasoning effort) vs. the April preview:
| Benchmark | V4-Pro-0813 (vendor) | Δ vs. preview |
|---|---|---|
| Terminal-Bench 2.1 | 87.9 | +15.8 |
| DeepSWE | 62.7 | +49.9 |
| CyberGym | 83.3 | +30.6 |
| Toolathlon-Verified | 74.1 | +18.2 |
| NL2Repo | 61.5 | +23.0 |
| SWE-bench Verified | >80% (official model card) | — |
Independent measurements tell a more nuanced story (AIToolsReview, Aug 18, 2026):
| Independent test | Result | Takeaway |
|---|---|---|
| Artificial Analysis Intelligence Index | 53 — #3 of ~106 tracked models (median 27) | Genuinely frontier-ranked on composite intelligence |
| CoderSera SWE-bench Verified (neutral harness) | 96.40% ±0.83 — #2 (behind Claude Opus 5's 97.00%) | Excellent real coding score at a fraction of the cost |
| CoderSera Terminal-Bench 2.1 (neutral harness) | 54.68% vs. vendor's 87.9 | 33-point vendor/neutral gap — and V4-Flash scored 67.04% on the same harness, beating Pro |
| Artificial Analysis AA-Omniscience (honesty) | 0.83 (near floor; Claude Opus 5: 37.07) | The model almost never says "I don't know" — weak calibration |
| NIST CAISI (April preview build) | 94% jailbreak compliance vs. 8% for US reference models; ~8-month capability gap vs. frontier | Most recent independent safety data; not yet re-run on 0813 |
2.4 Hands-on impressions & caveats
Hands-on reviews (MindStudio-style testing, via AIToolsReview) scored V4-Pro at 76.25% (61/80) on an 8-question practical test, with full marks on a hard math problem and a long-horizon agentic task. Front-end and one-shot UI generation are called its clearest strength (Three.js scenes, app clones, physics demos). Known weaknesses: overthinking and overengineering on simple tasks, weak honesty calibration, text-only (no image/audio/video input), and no published agentic-safety evaluation.
Treat vendor benchmark magnitudes as company-reported (the direction — large agentic gains — is credible and consistent across five benchmarks), expect V4-Flash to beat Pro on many simple tasks, and add a verification step for factual work.
3. Why China Is Winning the AI Race
"Winning" is a strong word, but the data increasingly supports the claim that China has won the open-weights/developer-ecosystem race and the cost-efficiency race — even as US labs still lead on pure frontier capability, safety disclosure, and multimodal models. The reasons, with evidence:
3.1 The open-source strategy: give away the models, win the ecosystem
- DeepSeek's R1 (January 2025) open-source reasoning model was the inflection point: frontier-adjacent performance at a reported fraction of US training/inference cost, released for free.
- A year later the strategy is systemic: Z.ai (Zhipu), Moonshot (Kimi), Alibaba (Qwen), MiniMax, and GLM all ship top models as downloadable open weights.
- MIT/Hugging Face research: Chinese open-weight models accounted for 17.1% of global AI model downloads over the year ending August 2025 — narrowly surpassing the US at 15.86%, the first time China led.
- Hugging Face data: Alibaba's models now have more user-generated variants than Google and Meta combined.
- Why it works (per MIT Technology Review): open weights let developers adapt and self-host without a commercial relationship with a US gatekeeper — and under US export controls on cutting-edge chips, open-sourcing accelerates the external feedback loop that compensates for constrained compute. It is also free advertising and a moat: adoption → API usage → revenue, the Linux/Android playbook.
3.2 Cost-efficiency is a structural advantage, not a marketing claim
- V4's hybrid sparse attention cuts long-context inference cost by ~73–90% (FLOPs) and KV-cache memory by ~90–93% vs. V3.2 at 1M tokens (Goldman Sachs).
- MoE sparsity means 13B active parameters (Flash) or 49B (Pro) do the work of 284B / 1.6T total — dramatically cheaper per token.
- DeepSeek-V4-Flash-0731 sits on the Pareto frontier of intelligence-per-dollar, completing an Intelligence-Index task for $0.03 vs. GPT-5.6 Luna's $0.05.
- OpenAI responded by cutting GPT-5.6 Luna prices 80%, and Google shipped Gemini 3.6 Flash purely as a speed/cost play — the price war's direction of travel is set by the Chinese price floor.
3.3 The compute hedge: domestic silicon
Goldman highlights that DeepSeek explicitly bet on Huawei Ascend 950 super nodes, expecting mass supply in H2 2026 to drive further API price cuts. With US export controls tightening, the top Chinese labs' willingness to move training/inference onto domestic chips (Ascend) turns a constraint into a roadmap — and gives the entire domestic stack (chips → models → clouds) a coherent upgrade path.
3.4 Ecosystem density: a Cambrian explosion of challengers
A single quarter (2026) saw Kimi K2.6/K3, Alibaba Qwen3.6-Max and Qwen3.8-27B, Tencent Hunyuan3 preview, Xiaomi V2.5, MiniMax M3/Hailuo, and GLM-5.2/5.3 all launch near-simultaneously. Per Goldman, Tencent and Alibaba were reportedly in talks to invest in DeepSeek at a $20B+ valuation, with Zhipu at ~$53B and MiniMax at ~$31B. That capital and talent density means China now wins every benchmark cycle somewhere in its ecosystem — which is why the competitive center of gravity has moved from "best single model" to "most capable agent ecosystem."
3.5 Global-South adoption: AI sovereignty favors open Chinese weights
- Malaysia announced its sovereign AI ecosystem would run on DeepSeek.
- Singapore's government-backed AI Singapore program chose Alibaba's Qwen over Meta's Llama.
- Founders from Nairobi to São Paulo to San Francisco are building on Chinese foundations.
3.6 The honest caveats (China is not "winning" everything)
- Safety/alignment data is weaker: NIST CAISI found the April V4-Pro preview complied with 94% of malicious jailbreak requests (vs. 8% for US reference models), with an ~8-month capability gap to frontier US models in cyber and abstract reasoning.
- Honesty/calibration is a known weakness: AA-Omniscience scores near the floor.
- Chinese models carry the imprint of content-moderation/censorship requirements; Anthropic accused several Chinese labs of distillation-based extraction from Claude (Feb 2026).
- US labs still lead on multimodal input (Alibaba/Qwen aside), safety disclosure (RSP/ASL-style frameworks), and agentic-safety evaluation.
China is winning the efficiency, openness, and ecosystem race — and because deployment-stage buyers optimize for cheap, adaptable, permission-free tools, that advantage compounds. It is not yet winning the frontier-capability and trust race. (Goldman, MIT Tech Review, Tencent Cloud)
4. DeepSeek Harness: Core Features
DeepSeek Harness (dsh) is DeepSeek's open-source agent framework, released into developer preview on August 13, 2026 (same day as V4-Pro-0813 GA), MIT-licensed, on GitHub at deepseek-ai/deepseek-harness. Its organizing idea is stated in its own README: "everything is a plugin." It was used internally to validate V4-Flash-0731 and to produce V4-Pro's benchmark table, and it is widely described as an open-source rival to Claude Code — with the deliberate difference that it is not locked to DeepSeek models at all.
v0.1.0-rc.5 (at time of writing). The README warns plainly: there will be compatibility-breaking changes. Not yet a stable production product.
4.1 The core idea: everything is a plugin
The runtime is built on Cordis, a vendored dependency-injection framework (from cordiverse/cordis, designed per A Programming Paradigm for Spatiotemporal Composability). Every part of the product is a plugin — the model adapter, tool registry, session log, agent loop, sandbox, even the web UI — so every part is replaceable from configuration. There is no privileged core to patch: extensions mount beside the other plugins, and registrations are reversible effects that unwind when a plugin unloads.
The project's own docs describe eight independently swappable layers:
ctx.llm — pluggable connection to any configured providerSessionEvent log with persistence, replay, fork, resume4.2 Provider-agnostic (not DeepSeek-locked)
Despite the branding, the harness supports DeepSeek, Anthropic, OpenAI, Amazon Bedrock, Google Vertex, Azure, and any custom OpenAI-compatible endpoint as interchangeable inference providers. Swapping providers is a configuration change, not a rewrite — which positions dsh as infrastructure a team can standardize on regardless of which model wins a given benchmark cycle.
4.3 Key technical features
- Capability seams — each swappable capability has three roles (Service Definition / Service Provider / Consumer). One provider swap can move Bash, PTY, LSP, and subprocess execution together to a remote sandbox with no provider forks.
- Session log as source of truth — "model-visible ⟺ logged": anything that reaches a model request must be reconstructable from the append-only log. Fork, resume, transcripts, telemetry, and persistence all derive from this stream.
- Typed event system — durable session events (
session/event,turn/*,step/*,tool/*) plus live extension events (agent/*,tools/*) with waterfall semantics, letting plugins intercept, rewrite, or reject requests. - Agent loop — steps (one model request + tool calls) compose into turns;
agent/pre-step,agent/request, andllm/streamare interception points. - Sandboxing & approval policy — filesystem/shell/subprocess/terminal/sandbox are separate configurable plugins; an approval/interaction layer gates operations under the active permission policy (the Web UI asks before privileged operations).
- Goals, subagents, workflow, plan mode — same-session objectives (
ctx.goals), subagent delegation with pluggable providers, workflow orchestration, and plan mode as logged state. - Skills & hooks — a skill registry/provider plus Claude Code/Codex hook bridges.
- Self-modification — the agent can inspect and mount its own plugins (the
demo:cordisdemo modifies its live runtime). - Python SDK —
deepseek-harness-sdkdrives the bundled runtime as a subprocess over newline-delimited JSON-RPC on stdio.
4.4 What you can do with it (operational modes)
- Web UI —
npx @deepseek-ai/dsh web(orpnpm dsh webfrom source) serves a browser agent interface at http://127.0.0.1:3080 by default. - Headless —
dsh --profile headless "task"runs one fresh persisted session and prints the final answer. - ACP — an automation-only Agent Client Protocol (JSON-RPC stdio) server.
- Plugin management —
dsh plugin --profile <name> <pnpm args>installs out-of-tree plugins per profile. - Reported operational modes: standard (general tasks), code-focused (multi-app automation), creative (custom tools), and minimal (isolated testing — DeepSeek reportedly used minimal mode to test V4-Flash before release).
5. Install DeepSeek Harness from Source on macOS
Two install paths exist: the quick npm route and the from-source route. This section covers from-source on macOS in detail.
5.1 Prerequisites (macOS)
| Requirement | Version / how to get it |
|---|---|
| Node.js | ^22.19.0 or >=24.0.0 (engines field). Install via nodejs.org installer or brew install node@24 |
| pnpm | 11.7.0 (repo-pinned). With Node installed, enable Corepack: corepack enable (then pnpm --version should resolve; if not, corepack prepare pnpm@11.7.0 --activate) |
| Git | 2.26+ (brew install git if needed; Xcode Command Line Tools optional) |
| DeepSeek API key | Optional for the UI to do real work — get one at platform.deepseek.com and set DEEPSEEK_API_KEY or a repo-root .env |
| Disk space | A few GB (workspace deps + built artifacts); V4 model weights are not required (API-driven) |
The repo's native/landlock-run workspace (a Landlock self-restrict-then-exec launcher) is a Linux-only sandbox technology; on macOS it is simply not used — the harness's sandbox/execution layer falls back to the configured non-Landlock providers. No special macOS native toolchain is required for the standard build.
5.2 Step-by-step install from source
# 1. Clone the repository
git clone https://github.com/deepseek-ai/deepseek-harness.git
cd deepseek-harness
# 2. Install dependencies (pnpm workspace; postinstall sets up lefthook git hooks)
pnpm install
# 3. Build everything (host lib -> client lib -> web frontend)
pnpm run build
# 4. Launch the Web UI (serves at http://127.0.0.1:3080 by default)
pnpm dsh webThat's it. Open http://127.0.0.1:3080, go to Settings → Models, add your DeepSeek API key (the model route becomes usable immediately, no server restart), then Choose workspace and select the project directory — the session composer unlocks once a workspace is selected.
5.3 Configuration & useful commands
# One-shot headless task from source (needs DEEPSEEK_API_KEY)
pnpm dsh --profile headless "summarize this workspace"
# Inspect the composed plugin tree without booting
pnpm dsh --profile web --dump-config
# Frontend dev with hot reload (HMR) — requires the dev:web watcher running
pnpm run dev:web
# Credentials live in a gitignored .env at the repo root
# DEEPSEEK_API_KEY=sk-...
# DEEPSEEK_BASE_URL=https://... # optional, defaults to public API5.4 Troubleshooting on macOS
| Problem | Fix |
|---|---|
pnpm: command not found | corepack enable after installing Node; or npm install -g pnpm@11.7.0 |
corepack not present | Older Node bundles it; otherwise install Node 22.19+ fresh |
Build fails on tsdown/tsc OOM | Increase Node heap: export NODE_OPTIONS=--max-old-space-size=8192 |
| Lefthook hook errors after clone | node scripts/install-lefthook.mjs (also needed if postinstall was skipped) |
| Web UI loads but no model works | Add API key in Settings → Models; check .env for DEEPSEEK_API_KEY |
| "Port 3080 in use" | pnpm dsh web --port 8080 (app flags come after the launcher's) |
| You want the packaged binary instead | npx @deepseek-ai/dsh web — same UI, no build step |
6. DeepSeek API Discount Windows, Off-Peak Times, and Prices
On August 13, 2026, DeepSeek announced a peak/off-peak (峰谷) tariff for the V4 lineup — its first time-based, "electricity-style" pricing. It took effect at 16:00 UTC on August 16, 2026 (00:00 Beijing time, August 17). This section is the money table you actually need.
6.1 The discount windows (the headline answer)
All hours outside the two daily peak windows are billed at 50% of the peak price — a 50% discount relative to peak.
- Peak #1 01:00–04:00 UTC = 09:00–12:00 Beijing
- Peak #2 06:00–10:00 UTC = 14:00–18:00 Beijing
- Off-peak every other hour — 17 hours/day at 50% of peak
The purple marker shows where you are right now — it moves with live UTC time so you can see at a glance whether the API is billing you full price or half.
| Window | UTC | Beijing (UTC+8) |
|---|---|---|
| Peak #1 (full price) | 01:00–04:00 | 09:00–12:00 |
| Peak #2 (full price) | 06:00–10:00 | 14:00–18:00 |
| Off-peak (50% of peak) | every other hour | every other hour |
- Total peak time is 7 hours/day; total off-peak is 17 hours/day. Official DeepSeek docs: "Peak hours are 01:00–04:00 and 06:00–10:00 UTC; all other hours are off-peak."
- Practical read for most time zones: for US/Europe daytime developers, off-peak covers the late-night-to-morning slots; for China-based teams, lunch (12:00–14:00) and everything after 18:00 Beijing are off-peak.
6.2 Current per-1M-token prices (official, checked Aug 19, 2026)
deepseek-v4-flash (DeepSeek-V4-Flash-0731) — concurrency 2500:
| Token type | Off-peak 50% | Peak 100% |
|---|---|---|
| Input — cache hit | $0.007 ≈¥0.05 | $0.014 ≈¥0.10 |
| Input — cache miss | $0.22 ≈¥1.50 | $0.44 ≈¥3.00 |
| Output | $0.66 ≈¥4.50 | $1.32 ≈¥9.00 |
deepseek-v4-pro (DeepSeek-V4-Pro-0813) — concurrency 500:
| Token type | Off-peak 50% | Peak 100% |
|---|---|---|
| Input — cache hit | $0.022 ≈¥0.15 | $0.044 ≈¥0.30 |
| Input — cache miss | $0.66 ≈¥4.50 | $1.32 ≈¥9.00 |
| Output | $1.98 ≈¥13.50 | $3.96 ≈¥27.00 |
Off-peak is exactly half of peak in every category. Base URLs: https://api.deepseek.com for OpenAI format, https://api.deepseek.com/anthropic for Anthropic format. Billing deducts from granted balance first, then topped-up balance.
6.3 What actually changed vs. the old flat rate (be honest about it)
The old flat rates were Flash ¥0.02 / ¥1 / ¥2 and Pro ¥0.025 / ¥3 / ¥6 (cache-hit-in / cache-miss-in / output). The new tariff raised base prices across the board — headline increases run +50% to +1,100% depending on model, token type, and time slot:
deepseek-v4-flash — increase over the old flat rate:
| Token category | Peak | Off-peak |
|---|---|---|
| Cache-hit input | +400% | +150% |
| Cache-miss input | +200% | +50% |
| Output | +350% | +125% |
deepseek-v4-pro — increase over the old flat rate:
| Token category | Peak | Off-peak |
|---|---|---|
| Cache-hit input | +1,100% | +500% |
| Cache-miss input | +200% | +50% |
| Output | +350% | +125% |
"Off-peak" is a 50% discount off the new, higher peak price — not a discount vs. the old flat rate. Independent analysis (explainx.ai, via AIToolsReview) computes off-peak Pro output at ~2.28× the old flat rate and peak at ~4.55×. Plan your cost model on the current table, not the "discount" label.
6.4 Three real "discount" levers to exploit
- Shift work to off-peak (50% off peak). Best for: batch data processing, bulk translation, data cleaning, offline analysis, overnight model evaluation, report generation — anything with loose latency requirements. Interactive chat, online agents, and real-time copilots generally can't wait.
- Maximize cache hits (the biggest multiplier). Cache-hit input is ~30× cheaper than cache-miss input ($0.007 vs. $0.22 for Flash; $0.022 vs. $0.66 for Pro). Reuse stable system prompts, long shared contexts, and prefix-stable requests so more of your input tokens land on the cache.
- Pick the right tier for the job. V4-Flash has 5× the concurrency (2500 vs. 500) and ~6× cheaper output — route high-throughput, simpler, or non-thinking workloads (FIM, prefix completion) to Flash, and reserve Pro for complex agentic/front-end work.
6.5 Why DeepSeek did this
Model inference continuously occupies AI compute; work-hour traffic is concentrated while idle periods under-utilize clusters. Pricing tokens like electricity (峰谷电价) uses the price lever to smooth demand, raise cluster utilization, and relieve peak pressure — a sign the LLM price war is entering a "2.0" phase of fine-grained compute-scheduling economics (智东西/Zhidx, Techritual).
7. FAQ
Flash (284B total / 13B active) is the open-source, MIT-licensed, high-throughput value tier — 2,500 concurrency, ~6× cheaper output, and it beats Pro on many simple/agentic tasks in neutral testing. Pro (1.6T total / 49B active) is the flagship for complex agentic coding and front-end generation, with native Responses API + Anthropic API compatibility and 500 concurrency.
Off-peak (50% of peak) applies every hour except the two daily peak windows: 01:00–04:00 and 06:00–10:00 UTC (09:00–12:00 and 14:00–18:00 Beijing time). That's 17 off-peak hours per day.
Relative to the new peak price, yes — 50% off. Relative to the old flat rate (before Aug 16, 2026), no: base prices rose +50% to +1,100%, so off-peak output is still ~2.25–2.28× the old flat rate.
The harness is MIT-licensed and free; you pay only for whatever inference provider you plug in. It supports DeepSeek, Anthropic, OpenAI, Bedrock, Vertex, Azure, and custom OpenAI-compatible endpoints — it is not DeepSeek-locked.
git clone https://github.com/deepseek-ai/deepseek-harness.git && cd deepseek-harness && pnpm install && pnpm run build && pnpm dsh web — prerequisites: Node 22.19+/24+, pnpm 11.7.0 (Corepack), Git 2.26+.
http://127.0.0.1:3080 by default (customizable with --port).
For agentic loops, V4-Pro-0813 shows the largest vendor-reported gains (DeepSWE +49.9, Terminal-Bench 2.1 at 87.9), but independent testing found V4-Flash-0731 scores higher on a neutral Terminal-Bench harness (67.04% vs. 54.68%). Start with Flash for throughput/cost; keep Pro for hard multi-step tasks.
No — both V4 tiers are text-only. Chinese rivals such as Alibaba's Qwen 3.8 Max already ship multimodal.
Yes — both V4-Flash-0731 and V4-Pro-0813 are MIT-licensed open weights on Hugging Face. V4-Pro's full FP8 weights are ~892.7 GB (multi-GPU servers only); V4-Flash is the practical self-host tier (~167 GB FP8, or a 3-bit quantized version in ~110 GB RAM).
Open-source ecosystem strategy (China led global model downloads 17.1% vs. US 15.86%), structural cost-efficiency (V4 cuts long-context compute 73–90% and KV memory ~90%), a domestic-compute hedge (Huawei Ascend 950), ecosystem density (Qwen, Kimi, GLM, MiniMax, DeepSeek), and Global-South sovereign-AI adoption — while US labs still lead on frontier capability, multimodal, and safety disclosure.
8. Sources & Further Reading
Official DeepSeek
Models & benchmarks
- DeepSeek Pushes the Frontier Again (V4-Flash fine-tune) — DeepLearning.AI The Batch
- DeepSeek Open Sources Production DeepSeek-V4-Flash Under MIT Licence — Open Source For You
- DeepSeek V4 Pro 0813: Benchmarks & Verdict — AIToolsReview
- DeepSeek V4 Pro Benchmarks: Official vs Independent — OrcaRouter
- GLM-5.3 vs DeepSeek V4-Pro — Flowtivity
Harness
China AI race
Pricing & peak/off-peak tariff
Last updated: August 19, 2026. Prices and availability verified against DeepSeek's official API documentation and the sources above on that date. DeepSeek reserves the right to adjust pricing — re-check the official Models & Pricing page before making budget decisions. Vendor-reported benchmark figures should be treated as company-reported until independently reproduced.