Skip to main content

DeepSeek API

DeepSeek's first-party API serves deepseek-flash (DeepSeek-V4.1-Flash-1017) and deepseek-v4-pro with a 1M-token context, in OpenAI- and Anthropic-compatible formats. It bills per million tokens from a prepaid balance, with cheap cache hits and half-price off-peak hours, and stores data in the People's Republic of China.

The 30-Second Take

Pick the DeepSeek API if you choose models on price per task and your data may be stored in China.

Practitioners praise it above all for cheap cache hits and half-price off-peak hours. Flash costs US$0.30 per million cache-miss input tokens at peak, half that off-peak.

Best fit
Developers and product teams whose data may leave their jurisdiction and who choose models on price per task.
Main constraint
Data stored in the People's Republic of China under PRC law, with no SSO or audit log documented.
First move
Clear the privacy policy and terms with legal, then run a week of real traffic off-peak and measure cache hits.

Why

Watch the data terms: DeepSeek stores personal data in the People's Republic of China and trains its models on it. US federal civilian agencies may not use it, and practitioners report empty answers and leaked tool-call markup.

Practitioner sentiment, all practitioners+57 Strong positive

37 practitioners, 48 sources reviewed, Updated Oct 31, 2026How this is measured

Read the GILD Review
Save a product your organization uses.Keep up with DeepSeek API without adding it to your stack.Visit Website
Operating stack
AI Application Platform

Models

Which models does DeepSeek API serve, and where is each strong?

Each model's page charts its public benchmark scores beside any other model you layer on it.

Comparisons

How does DeepSeek API compare with the alternatives?

  1. Buy from DeepSeek for its cache discounts and first-party quality when data may be stored in China. Route the open weights through OpenRouter when you need Zero Data Retention routing or hosts outside China, and test each host.

  2. Pick DeepSeek for price per task on long agent sessions when its data terms are acceptable. Pick the Claude API for zero data retention by request, US-only inference, and cloud routes.

Operator Insights

What are teams learning from building on DeepSeek API and running it in production?

Buying and deployment

What a team building on it should verify before production traffic grows.

Sourced from DeepSeek documentation

How you buy it

US$0.30 per 1M input

deepseek-flash cache-miss input at peak; output costs US$1.20 and cache hits US$0.006 per 1M.

Source 1, DeepSeek, Models and pricing: Models and pricing

Details

Pay-as-you-go per 1M tokens: you top up a prepaid balance and each call deducts its tokens times the listed price, granted balance first. Each request chooses the model by name, deepseek-flash or deepseek-v4-pro, with no default model. deepseek-flash costs US$0.30 per 1M cache-miss input tokens, US$0.006 per 1M cache-hit input tokens, and US$1.20 per 1M output tokens at peak. deepseek-v4-pro costs US$1.32, US$0.044, and US$3.96.

Cost drivers

Half price off-peak

Off-peak rates are half; server-side Search and Fetch per-request billing was set for November 1, 2026.

Source 1, DeepSeek, Models and pricing: Models and pricingSource 5, api-docs.deepseek.com, DeepSeek API Docs: Error Codes: DeepSeek API Docs: Error Codes

Details

Output and cache-miss input tokens drive the bill, and off-peak rates are half the peak rates. Peak hours are 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays. Search and Fetch cost US$0.75 per 1,000 successful requests each. DeepSeek set 00:00 Beijing time on November 1, 2026 as the start of per-request billing for Search and Fetch. When the balance runs out, the API returns error 402, Insufficient Balance.

Where it runs

Stored in China

DeepSeek's privacy policy stores personal data in the People's Republic of China.

Source 3, DeepSeek, Privacy policy: Privacy policySource 4, DeepSeek, Open Platform terms: Open Platform terms

Details

On DeepSeek's hosted cloud API. DeepSeek's privacy policy states that it collects, processes, and stores personal data in the People's Republic of China. DeepSeek retains personal data for as long as necessary to provide its services. The Open Platform terms are governed by the laws of the People's Republic of China in the mainland.

What to verify

No SSO or audit log

0 matches on 57 DeepSeek API docs pages (Nov 2, 2026).

Source 3, DeepSeek, Privacy policy: Privacy policySource 4, DeepSeek, Open Platform terms: Open Platform termsSource 2, DeepSeek, Rate limit: Rate limit

Details

Each account can run 2,500 concurrent deepseek-flash requests. DeepSeek documents no SSO, SAML or SCIM, audit log or security certification for its API: GILD found 0 matches across 61 pages, the 57 pages of its API documentation and 4 policy and home pages, checked Nov 2, 2026.

Pages GILD searched, by set, Nov 2, 2026
WherePages readMatches
DeepSeek API documentation in English, every page in its sitemap570
DeepSeek's privacy policy, terms of use, Open Platform terms and English home page40
GILD search record, Nov 2, 2026

Signals

What is the current evidence saying about DeepSeek API?

A current read of what developers and teams report publicly about building on DeepSeek's own API, with each finding linked to its sources.

Whose sources count

Practitioner sentiment, all practitioners

+57 Strong positive net

of 39 sources that take a side, each author counted once.

How this figure is made

Teams and leaders have 0 accounts; GILD prints their sentiment from 20.

Current sentiment

Positive, mixed and negative sources

The score counts them as 27 positive, 4 mixed and 6 negative votes, one per author.

Across 43 sources the read is positive. Of the 39 that state a view, 29 are positive, 4 mixed, and 6 negative. Price per task and cache hits draw praise in 25 sources, and output bugs, latency, and errors are raised in 5.

Run a pilot on your own prompts to measure output quality and cost per task.

Evidence field. All 48 sources, one mark each.

Arrange by

Each mark is one source: positive, mixed, negative, no opinion stated, or documentation (not counted).

By sentiment, All practitioners. Every source GILD read, grouped as the field draws it.
GroupSourcesPositiveMixedNegativeNo opinion stated and not counted in the scoreDocumentation, checked and not counted
Positive29290000
Mixed404000
Negative600600
Not counted400040
Documentation500005
Every source GILD read, by the quarter it was published, as the field's time axis counts it. Documentation is dated by the day it was checked.
QuarterSources
Q2 202612
Q3 202616
Q4 202615
Documentation, checked5

By sentiment

5 documentation pages check facts and are not counted.

Hover a mark for a quick look, click it or press Enter to open its source.Tap a mark to open its source, then step to its neighbors with Previous and Next.

What practitioners praise

Each mark is a source on it; filled marks praise it.

  1. Price per Task & Cache HitsAll 25 sources on it praise it

Most common concerns

Each mark is a source on it; filled marks raise it.

  1. Output Bugs, Latency & ErrorsAll 5 sources on it raise it as a concern
All 48 sources behind these findings
  1. Models and pricingDeepSeek (Official), Product documentation, checked Oct 28, 2026
  2. Rate limitDeepSeek (Official), Product documentation, checked Oct 28, 2026
  3. Your first API callDeepSeek (Official), Product documentation, checked Oct 28, 2026
  4. Privacy policyDeepSeek (Official), Product documentation, checked Oct 28, 2026
  5. Open Platform terms of serviceDeepSeek (Official), Product documentation, checked Oct 28, 2026
  6. Intermittent EPROTO: The TLS handshake failed. Does the server speak TLS on this port?Joseph Cake, AI builder using Kilo Code (self-described: Kilo Code agent sessions against api.deepseek.com), GitHub issue, published Oct 24, 2026
  7. Comment on: Kimi K3.1 Pro and K3.1 Pro HighspeedSwellJoe, Hacker News commenter (self-described: Personal API use), Hacker News comment, published Oct 24, 2026
  8. A vibe-coded MITM test proxy built for about $0.30 of DeepSeek API spendaftbit, software developer in Ohio, at Atomic Canyon in 2025 (self-described: Building a test tool), Hacker News comment, published Oct 24, 2026
  9. Comment on: MiniMax M3.1 FlashTheArcane, Hacker News commenter (self-described: Pays for both the DeepSeek platform and a US$100 Claude plan), Hacker News comment, published Oct 20, 2026
  10. Comment on: DeepInfer: High-performance inference framework for DeepSeek modelsVonLuderitz, Hacker News commenter (self-described: Personal use after leaving a Claude Max plan), Hacker News comment, published Oct 20, 2026
  11. A platform.deepseek.com account beside a $100 a month Claude subscription, and DS Flash used mostTheArcane, autonomous driving perception research engineer (self-described: Holds both a DeepSeek platform account and a Claude subscription), Hacker News comment, published Oct 18, 2026
  12. Comment on: DeepSeek-v4.1-Flash-1017computerex, Hacker News commenter (self-described: Comparing a US$20 OpenAI plan with API spend), Hacker News comment, published Oct 17, 2026
  13. [Experimental Feature Feedback] Routing DeepSeek V4.1 Flash Requests to DeepSeek's Own APIDuskriver, maintainer of the dsh-opencode-go plugin (self-described: OpenCode Go requests for DeepSeek V4.1 Flash), GitHub issue, published Oct 16, 2026
  14. Comment on: The cost of getting a job today63stack, Hacker News commenter (self-described: Personal API use), Hacker News comment, published Oct 15, 2026
  15. Comment on: Why isn't the industry freaking out about DeepSeek 4.1 Flash?WiSaGaN, Hacker News commenter (self-described: Everyday personal tasks from the pi harness), Hacker News comment, published Oct 9, 2026
  16. A simple loop calls the DeepSeek API for JSON that invokes native Nokia functionsanupray, Software Engineer (self-described: A small loop that invokes native Nokia functions), Hacker News comment, published Oct 9, 2026
  17. Comment on: Why isn't the industry freaking out about DeepSeek 4.1 Flash?try-working, Hacker News commenter (self-described: Heavy agentic software work on V4.1 Flash), Hacker News comment, published Oct 8, 2026
  18. Add first-class DeepSeek provider (and track other major model providers)LaneBucher, GitHub user (self-described: Lumen's model adapters), GitHub issue, published Oct 3, 2026
  19. Comment on: One month coding with GLM 5.3 Flashbenjiro29, Hacker News commenter (self-described: Long coding tasks across hosts), Hacker News comment, published Oct 2, 2026
  20. Comment on: One month coding with GLM 5.3 Flasheli, Hacker News commenter (self-described: Choosing a host for DeepSeek models), Hacker News comment, published Oct 2, 2026
  21. [BUG] deepseek-flash emits internal DSML tool-call markup in content when tools array is omitted but history carries tool_callsDoll-sensei, operator of a QQ bot on the DeepSeek API (self-described: A production QQ bot on the API), GitHub issue, published Sep 30, 2026
  22. 1.8bn tokens in a week bought from DeepSeek, 99.2% of them cache hits, for US$18.13taylorfinley, serial builder of things (self-described: A week of tokens bought from DeepSeek itself), Hacker News comment, published Sep 29, 2026
  23. Weeks without topping up a DeepSeek balance, against weekly OpenAI top-upsdools, runs BenkoPhone (self-described: Planning and implementation on prepaid balances), Hacker News comment, published Sep 29, 2026
  24. [BUG] deepseek-v4-pro and v4.1-flash: finish_reason "stop" with the answer in reasoning_content and content emptyAmiyanshu-web, developer replaying production conversations (self-described: Streaming with thinking enabled on api.deepseek.com), GitHub issue, published Sep 24, 2026
  25. I built Codex Switcher - Open source Mac menu bar app to use Deepseek with CodexSystem_Independent (maskaravivek on GitHub), builder of Codex Switcher (self-described: Codex pointed at DeepSeek after a subscription ran out), Reddit post, published Sep 19, 2026
  26. Comment on: Ask HN: What default model do you use and why?tiluha, Hacker News commenter (self-described: V4.1 Flash agents with a frontier advisor model), Hacker News comment, published Sep 12, 2026
  27. DeepSeek as the default model on ChatGPT CodexEkky Armandi, full-stack Python developer (DEV profile) (self-described: Codex configured to use DeepSeek Flash through the official API), Developer blog post, DEV Community, published Sep 12, 2026
  28. Comment on: DeepSeek launching v4.1 flash cheaper and more capable than v4 promattmcal, Hacker News commenter (self-described: OpenCode on the DeepSeek API, OpenRouter, and Vercel AI Gateway), Hacker News comment, published Sep 9, 2026
  29. Comment on: DeepSeek V4 Pro 0813irthomasthomas, Hacker News commenter (self-described: Choosing between the DeepSeek API and OpenRouter), Hacker News comment, published Aug 13, 2026
  30. Comment on: DeepSeek V4 Pro 0813nchmy, Hacker News commenter (self-described: Long chats on the official API), Hacker News comment, published Aug 13, 2026
  31. deepseek-v4-flash terminates prematurely in agent tool-call loops via OpenAI-compatible APILady-Lin, developer running a coding agent on the API (self-described: A coding agent's execution model on api.deepseek.com), GitHub issue, published Aug 9, 2026
  32. Uses the DeepSeek API, pays peanuts, and is very satisfiedstavros, founder of Stochastic Technologies (self-described: Personal API use), Hacker News comment, published Aug 7, 2026
  33. Comment on: DeepSeek planning to significantly raise pricesshortformblog, Hacker News commenter (self-described: Personal use of the API), Hacker News comment, published Aug 6, 2026
  34. The email DeepSeek sent its API users about a planned, significant price risemittermayr, self-employed, formerly a Microsoft Product Planner (self-described: An email to DeepSeek API users), Hacker News comment, published Aug 6, 2026
  35. $5 a month going directly through DeepSeek's API all dayBayart, SRE (self-described: Light and medium tasks all day long), Hacker News comment, published Aug 3, 2026
  36. The DeepSeek API for all coding at home, through OpenCode or Pi, for $5 over six monthseulers_secret, works on embedded Linux for avionics, formerly at Intel for more than 10 years (self-described: All coding at home), Hacker News comment, published Jul 25, 2026
  37. 287 million tokens in a couple of days on DeepSeek's API, for US$5.77lionkor, software engineer in the electrical power industry (self-described: Calling DeepSeek's API directly), Hacker News comment, published Jun 25, 2026
  38. Happy buying tokens directly from DeepSeekmark_l_watson, author of 20 books and a practitioner specializing in artificial intelligence (self-described: Tokens bought directly from DeepSeek), Hacker News comment, published Jun 25, 2026
  39. Anyone else find managing separate API keys/billing across LLM providers annoying?NoMaterialMan, founder building a product on the Claude, GPT and DeepSeek APIs (self-described: A product calling Claude, GPT and DeepSeek through each provider's own API), Reddit post, published Jun 20, 2026
  40. DeepSeek's platform API with V4 Flash in OpenCode, more than acceptable for maybe $10 over a couple of weeksatreids, Software Engineer in Scotland (self-described: DeepSeek's platform API called directly from a harness), Hacker News comment, published Jun 13, 2026
  41. 15 cents this month on the DeepSeek API with a home-built coding agent, and three apps delivered to clientsKuyawa, programmer (self-described: Client app work with a home-built coding agent), Hacker News comment, published Jun 13, 2026
  42. DeepSeek's Anthropic endpoint for bigger reading jobs near the limitCJefferson (Christopher Jefferson), Professor in the School of Computer Science at the University of St Andrews (ANTHROPIC_BASE_URL pointed at DeepSeek near the limit), Hacker News comment, published Jun 8, 2026
  43. The DeepSeek API caches raw API calls well, so it is hard to spend a lot fastSwellJoe, works on Virtualmin (self-described: Raw API calls from a simple agent harness), Hacker News comment, published Jun 8, 2026
  44. The DeepSeek dashboard shows around 100 million tokens a day, almost all of it cacheKronisLV, software engineer from Latvia (self-described: DeepSeek token spend set against an Anthropic Max subscription), Hacker News comment, published Jun 8, 2026
  45. A custom terminal coding agent with file tools only, connected to the DeepSeek APIKuyawa, programmer (self-described: Building apps from a prompt with a home-built terminal agent), Hacker News comment, published May 30, 2026
  46. DeepSeek API credits never expire, and the prices are ridiculously low for the qualitysourcecodeplz, full-stack engineer (self-described: Prepaid DeepSeek API credits), Hacker News comment, published May 27, 2026
  47. US$1.15 used after two full weekends on a 2 USD DeepSeek API top-upvinhnx, iOS & Applied AI Engineer (self-described: A DeepSeek API key with a 2 USD top-up), Hacker News comment, published May 25, 2026
  48. 3.4 Billion Tokens for $27: A Real DeepSeek Cost Analysisxulingfeng, QA engineer of 15 years building an AI test framework (self-described: A month of DeepSeek bills), Developer blog post, DEV Community, published May 25, 2026

May 2026 to Oct 2026.

43 sources from practitioners, by month and sentiment.

The full readExplore all DeepSeek API Signals4 praise themes, 3 concerns, 0 points of agreement and 0 disagreements across all three groups, with all 48 sources open to inspect.

Where It Fits

Where does DeepSeek API belong in the stack?

DeepSeek API is Core across Model, supports Build and Data, and touches Evaluate and Operate.

Business area
Product & Engineering
Function
Software Development
Operating stack
AI Application Platform
Primary role
Low-Cost Model API
DeepSeek API beside the rest of its stackThe Stack Field, every product on every layer
FootprintDeepSeek API across the AI Application Platform stack. Bar height is its role on each layer.
  1. Model

    1. Model APIs: Core

      Model APIs, core. This is the API's primary role: deepseek-flash (DeepSeek-V4.1-Flash-1017) and deepseek-v4-pro (DeepSeek-V4-Pro-0813), each with a 1M-token context and up to 384K output, billed per 1M tokens with half-price off-peak hours.

    2. Model gateway: Touches

      Model gateway, touches. The API serves only DeepSeek's models from DeepSeek's own servers. Gateways such as OpenRouter and LiteLLM call it, or other hosts of the open weights, and handle routing and failover.

  2. Build

    1. Orchestration: Touches

      Orchestration, touches. Tool calls, JSON output, and the Responses and Anthropic Messages formats let agent frameworks and coding agents such as Claude Code, Codex, and OpenCode run on it. The framework controls the agent's steps.

    2. Tool use: Supports

      Tool use, supports. Tool calls are supported on both models, and the Search and Fetch APIs give agents web search and page fetches at US$0.75 per 1,000 successful requests each. The tools an agent calls otherwise run elsewhere.

  3. Data

    1. Retrieval: Supports

      Retrieval, supports. Search and Fetch ground answers in the web, and the 1M-token context holds long documents. Document stores and search over company data stay with a retrieval product.

  4. Evaluate

    1. Evaluation: Touches

      Evaluation, touches. The API offers no evaluation tooling, so a team scores outputs in an evaluation product.

  5. Operate

    1. Observability: Touches

      Observability, touches. The API returns token usage per call, while tracing and cost dashboards stay with an observability tool or gateway.

    2. Cloud deployment: Touches

      Cloud deployment, touches. Capacity is a per-account concurrency limit of 2,500 requests for deepseek-flash and 500 for deepseek-v4-pro, raised on request at no cost. DeepSeek's privacy policy places data storage in the People's Republic of China, and the open weights can be hosted elsewhere.

    3. Guardrails: Touches

      Guardrails, touches. Screening prompts and outputs for injection, jailbreaks and sensitive data runs in a guardrail product or gateway placed in front of the API.

Market mapThe layers DeepSeek API covers, and who else owns each one.

  1. Model APIs

    CoreModel

  2. Tool use & integrations

    SupportsBuild

  3. Retrieval & grounding

    SupportsData

  4. Model gateways & routing

    TouchesModel

  5. Orchestration & agent frameworks

    TouchesBuild

4 more layers on the full map. Core, Supports and Touches describe coverage. They say nothing about quality.

More on DeepSeek API

  1. GILD ReviewGILD's evaluation, with the buying facts
  2. Research1 piece
  3. Guides1 guide
  4. Operator Insights3 operator accounts
  5. Where It FitsOn the AI Application Platform stack
  6. Related Products5 products