Skip to content

DeepSeek V4 Pricing Explained: V4 Flash vs V4 Pro

DeepSeek V4 pricing explained with current V4 Flash and V4 Pro API rates, cache-hit discounts, Anthropic/OpenAI base URLs, and how to estimate coding cost.

MGMCSA Guru Team August 13, 2026 3 min read
A breakdown of DeepSeek V4 Pro and V4 Flash API pricing

DeepSeek can keep AI coding costs low, but “DeepSeek pricing” is not one number. V4 Flash and V4 Pro have different rates, and cached input costs far less than fresh input. This guide explains the charges so you can estimate what you will pay.

DeepSeek charges by the token. It does not have a flat coding plan like GLM’s or Alibaba’s. This can suit light or occasional use because you pay only for the API traffic you generate.

The model tiers

DeepSeek direct API peak pricing snapshot (August 2026)

deepseek-v4-flash $0.01/M cached input, $0.44/M input, $1.32/M output
deepseek-v4-pro $0.04/M cached input, $1.32/M input, $3.96/M output

DeepSeek introduced peak and off-peak pricing on August 16, 2026. Off-peak input and output rates are half the peak rates. Check the live pricing page for the current UTC schedule before moving automated jobs.

The official page also lists two base URLs: https://api.deepseek.com for OpenAI-format tools and https://api.deepseek.com/anthropic for Anthropic-format tools like Claude Code.

Older guides and tools may still show deepseek-chat and deepseek-reasoner. DeepSeek discontinued those aliases on July 24, 2026 at 15:59 UTC. Use the current V4 model names in new configurations.

Cache-hit discounts

DeepSeek bills cached input tokens far cheaper than fresh ones. When your prompts reuse the same system prompt or files across an agent session, those repeated tokens can hit the cache and cost a fraction of the standard input rate.

This matters for coding agents like Claude Code and OpenCode, which repeatedly send the same context. Under the August peak schedule, V4 Flash cached input is $0.01 per million tokens compared with $0.44 for fresh input.

Base URLs and model names

Use the base URL that matches your tool:

# OpenAI-compatible tools such as Cline, OpenCode, Aider, Codex custom providers
https://api.deepseek.com

# Anthropic-compatible tools such as Claude Code
https://api.deepseek.com/anthropic

For new text-only setups, use deepseek-v4-flash as the default model where supported. Use deepseek-v4-pro for harder tasks where the extra capability is worth the higher output price. Use deepseek-v4-flash-vision-exp when a task requires image input and your client supports structured image blocks.

How to estimate your cost

A simple method:

  1. Estimate input and output tokens per task (an agent session might be hundreds of thousands of tokens with context).
  2. Multiply by the per-million rates for your chosen model from the pricing page.
  3. Discount the repeated input for cache hits.
  4. Multiply by tasks per day and days per month.

For most individual developers, real DeepSeek spend is low because agent sessions reuse context. The number to watch is output tokens; output is far more expensive than cache-hit input.

Pro vs Flash: which to use

Use deepseek-v4-flash for routine coding. Move to deepseek-v4-pro for difficult reasoning, debugging, or architecture work. Replace deepseek-chat and deepseek-reasoner in old tool configurations.

A good pattern is to default to the cheap tier and escalate only when a task genuinely needs more.

Before you budget

  • Check current per-million rates on the official pricing page
  • Use deepseek-v4-flash by default and deepseek-v4-pro for hard tasks
  • Account for cache-hit discounts on repeated context
  • Use the OpenAI base URL for OpenAI-compatible tools and /anthropic for Claude Code
  • Replace the discontinued deepseek-chat and deepseek-reasoner aliases

What to use

DeepSeek charges by the token for V4 Flash and V4 Pro. Cached agent context receives the lowest input rate. Start with V4 Flash, move to V4 Pro when a task needs it, and use the base URL that matches your tool. Check the official pricing page before relying on the figures in a budget.

To put it to work, see run DeepSeek with Claude Code. To compare against flat-rate options, see coding plans vs pay-per-token.

Frequently asked questions

Does DeepSeek have a coding plan or subscription?

No. DeepSeek charges by the token and does not offer a flat monthly coding plan like GLM or Alibaba. You pay for the input and output tokens you use.

What's the difference between V4 Pro and V4 Flash?

V4 Flash is the cheaper everyday model and V4 Pro is the stronger, pricier model for harder reasoning and complex coding. Pick Flash for routine agent work and Pro only when a task needs the extra capability.

How do cache-hit discounts work?

When parts of your prompt repeat (the same system prompt or context across calls), DeepSeek bills those cached input tokens at a steep discount. Agentic coding reuses a lot of context, so cache hits can cut real-world cost noticeably.

Which DeepSeek model should I use for coding?

Use deepseek-v4-flash as the default for everyday coding and deepseek-v4-pro for harder reasoning or complex debugging. Flash is much cheaper; Pro is the escalation path.

How do I estimate my monthly cost?

Multiply your expected input and output tokens by the per-million rates for V4 Flash or V4 Pro, then account for cache-hit input. Coding agents resend context constantly, so cache-hit pricing can be the difference between a tiny bill and a merely cheap one.

Sources & further reading

Official vendor documentation referenced while writing this guide.

MG

MCSA Guru Team

IT & Systems Administration

We are working IT pros and system administrators who spend our days in Windows Server, Microsoft 365, and the wider Microsoft stack. MCSA Guru is where we write down the fixes and walkthroughs we wish we had found the first time.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.