Skip to content
API Rates Per-unit API pricing — verified, dated, and logged when it changes
LLM inference APIs
OPENAI, DEEPSEEK

GPT‑5‑nano vs DeepSeek Flash: output token cost showdown

Published Pricing verified

When you compare raw generation costs, DeepSeek’s deepseek‑v4‑flash charges $0.1336 per 1M output tokens while OpenAI’s gpt‑5‑nano asks $0.4 per 1M output tokens. That difference alone can swing the economics of any high‑volume content engine.

### Input pricing and cache discounts
Both models charge a modest fee for feeding prompts. OpenAI lists gpt‑5‑nano at $0.05 per 1M input tokens and a cached‑input rate of $0.005 per 1M tokens. DeepSeek’s deepseek‑v4‑flash costs $0.0668 per 1M input tokens with a cached‑input price of $0.0134 per 1M tokens. The cached‑input discount from OpenAI is deeper, meaning repeated system prompts shrink faster under OpenAI’s plan.

### Generation cost decides the winner
The bulk of the budget for most applications sits in output tokens. DeepSeek’s $0.1336 per 1M output tokens is more than three times cheaper than OpenAI’s $0.4 per 1M output tokens. For workloads that generate long responses—summarization pipelines, automated article creation, or large‑scale chat bots—the DeepSeek rate delivers a clear advantage. OpenAI’s pricing remains competitive for balanced workloads where input and output volumes are similar.

VendorModelInputCached inputOutput
OpenAIgpt‑5‑nano$0.05 per 1M tokens$0.005 per 1M tokens$0.4 per 1M tokens
DeepSeekdeepseek‑v4‑flash$0.0668 per 1M tokens$0.0134 per 1M tokens$0.1336 per 1M tokens

The table makes the trade‑off transparent. OpenAI offers a tighter input price and a stronger cache discount, which helps read‑heavy pipelines that reuse prompts extensively. DeepSeek flips the advantage on the output side, making it the obvious pick for write‑heavy scenarios. Both vendors bill strictly on token consumption, so there are no hidden seat fees or annual commitments.

If your product leans on rapid prototyping, frequent prompt reuse, and modest generation, gpt‑5‑nano provides the most economical mix of input and cache pricing. If you run high‑throughput generation—automated newsletters, bulk code scaffolding, or data‑driven report synthesis—deepseek‑v4‑flash will shave significant dollars off the bottom line. Pricing verified on 2026-09-12.

Common questions

Does either vendor charge a fixed monthly fee for API access?

Both OpenAI and DeepSeek bill strictly by token consumption, so you only pay for the input, cached input, and output tokens your application actually uses.

Which model offers the steeper discount for cached prompts?

OpenAI’s gpt-5-nano charges $0.005 per 1M tokens for cached input, which is lower than DeepSeek’s deepseek-v4-flash cached rate of $0.0134 per 1M tokens.

Are there different pricing tiers based on monthly volume?

The published rates apply to standard API usage, and the official pricing pages list only the per 1M token rates without volume brackets or tiered discounts.

Sources
  1. OpenAI — pricing
  2. DeepSeek — pricing