DeepSeek API pricing (Nov 2026)

deepseek-flash peak prices are $0.30 cache-miss input, $0.006 cache-hit input, and $1.20 output per million tokens; deepseek-v4-pro peak prices are $1.32 cache-miss input, $0.044 cache-hit input, and $3.96 output per million tokens (off-peak is half for both). The full table is on the official pricing page. See the off-peak hours guide. For cross-vendor list prices see the cost-effective LLM API comparison, and for benchmarks, speed and usage against Claude, Gemini, GPT and Kimi see DeepSeek vs frontier models. See also the model name migration guide, Search & Fetch guide, and API error codes.

Checked on 15 Nov 2026 against DeepSeek API docs.

API list prices & model specs (official)

Peak and off-peak USD per 1M tokens. Off-peak is half of peak; peak hours are listed on the pricing page.

API model ID

deepseek-flash

DeepSeek-V4.1-Flash-1017

Context
1M
Max output
384K
Vision
Yes
Peak (in/out)
$0.30 / $1.20
Off-peak (in/out)
$0.15 / $0.60
Docs

API model ID

deepseek-v4-pro

DeepSeek-V4-Pro-0813

Context
1M
Max output
384K
Vision
No
Peak (in/out)
$1.32 / $3.96
Off-peak (in/out)
$0.66 / $1.98
Docs

Is the DeepSeek API free?

No. DeepSeek bills model usage per token at the published list prices, and Search/Fetch per successful request. The Models & Pricing page says fees are deducted from your topped-up balance or granted balance (granted balance is used first when both are available). This directory does not publish grant amounts or signup bonuses — check the DeepSeek Platform for your account. When balance runs out, the API returns HTTP 402 (Insufficient Balance) per the error codes page.

Price changes (sourced)

Only dated changes from the official API change log entries mirrored on /news. Current list prices are always on the live pricing page.

DateWhat changedSource
2026-10-17Search and Fetch APIs opened to all accounts; $0.75 per 1,000 successful requests each. NewsAPI change log
2026-09-10DeepSeek-V4.1-Flash release; API prices were reduced (V4 Pro billing unchanged until further notice). NewsAPI change log
2024-08-02Disk context caching launched; cache-hit input pricing reduced (see current Models & Pricing table). NewsAPI change log

Search & Fetch API

DeepSeek opened Search and Fetch to all API accounts on 17 October 2026 (per the API change log). Billing is per successful request, not by tokens or by how many results Search returns.

Search

POST /v1/tools/search

$0.75 per 1,000 successful requests

Fetch

POST /v1/tools/fetch

$0.75 per 1,000 successful requests

Each API is $0.75 per 1,000 successful requests. A request is billable only on HTTP 200 when Search returns a non-empty results array or Fetch returns page content; failed requests, empty search results, and timeouts are not billed. The count field only limits how many results Search returns and does not change the per-request price.

Checked on 18 Oct 2026 against Search & Fetch guide.

Apps, API Integration & Economics

Access official portals, OpenAI SDK compatibility configurations with dynamic reasoning effort parameters, sourced model identifiers, and interactive cost comparison models.

Base URL and headers

DeepSeek offers an OpenAI-compatible API gateway. Point your SDK to https://api.deepseek.com and pass your bearer token to immediately run V4.1-Flash with dynamic reasoning effort.

Base URL
https://api.deepseek.com
Header
Authorization: Bearer <KEY>
OpenAI SDK Compatibility Snippet with Dynamic Reasoning Effort
Standard OpenAI SDK drop-in configuration with baseURL, stream handling, and dynamic reasoning effort control.
import OpenAI from 'openai';

// Initialize OpenAI client pointing to DeepSeek API
const openai = new OpenAI({
  baseURL: 'https://api.deepseek.com',
  apiKey: process.env.DEEPSEEK_API_KEY || '<YOUR_KEY>',
});

async function main() {
  const stream = await openai.chat.completions.create({
    model: 'deepseek-flash',
    messages: [
      { role: 'system', content: 'You are an expert systems engineer.' },
      { role: 'user', content: 'Design a lock-free queue with zero-copy buffer in C++20.' },
    ],
    stream: true,
    reasoning_effort: 'high',
    extra_body: {
      thinking: { type: 'enabled' },
    },
  });

  for await (const chunk of stream) {
    const delta = chunk.choices[0]?.delta as any;
    // Inspect dynamic reasoning thoughts if available
    if (delta?.reasoning_content) {
      process.stdout.write(delta.reasoning_content);
    } else if (delta?.content) {
      process.stdout.write(delta.content);
    }
  }
}

main();

Interactive Pricing Calculator & Cache-Hit Economics

Peak list prices from the DeepSeek API docs.

Flash peak $14.51 · Pro peak $51.37
Input Tokens / Month50M
Represents codebase & prompt context
Prefix Cache Hit Rate85%
Cache-hit rate is an input you choose, not a published average
Output Tokens / Month10M
Generated code, responses & thoughts
Provider & ModelCache Miss / 1MCache Hit / 1MOutput / 1MEst. Monthly CostSource
DeepSeek-V4.1-Flash (peak)DeepSeek
$0.30$0.006$1.20$14.51 USDAPI pricing
DeepSeek-V4-Pro-0813 (peak)DeepSeek
$1.32$0.044$3.96$51.37 USDAPI pricing

Model Identifiers for Production API Calls

deepseek-flash
DeepSeek-V4.1-Flash (`deepseek-flash`)

Current flash API model. Legacy names deepseek-v4-flash and deepseek-v4-flash-vision-exp are still accepted and are served by V4.1-Flash at the flash price. 1M context, vision supported.

Target Use Cases:
General API callsTool callsVision inputs1M context
deepseek-v4-pro
DeepSeek-V4-Pro-0813 (`deepseek-v4-pro`)

API checkpoint DeepSeek-V4-Pro-0813. 1M context, max output 384K, vision not supported. Weights card: 1.6T total, 49B activated.

Target Use Cases:
Text and tool callsLong contextOff-peak batch jobs

HTTP REST API Endpoints

POST/v1/chat/completions
deepseek-flashdeepseek-v4-pro
Chat Completions & Dynamic Reasoning

OpenAI-compatible chat completions. Current model names on the pricing page are deepseek-flash and deepseek-v4-pro. Thinking mode uses thinking.type plus reasoning_effort (low, high, or max). The old extra_body.effort field is not the documented control.

Official API reference

GET/v1/models
All
List Models & Lineage Checkpoints

Lists active foundation models, reasoning checkpoints, and multimodal endpoints with context window permissions.

Official API reference

GET/v1/user/balance
All
Account Quota & Token Balance

Returns real-time account balances in USD and CNY, cached prefix savings metrics, and monthly grant status.

Official API reference