top of page

DeepSeek context window 2026: 1M tokens and up to 384K output tokens

Aug 12, 2025
9 min read

Updated: Nov 10

DeepSeek context window 2026: 1M tokens and up to 384K output tokens, Data Studios original cover

Updated: November 10, 2026


DeepSeek's context window is 1 million tokens on both models it currently sells through the API, deepseek-flash (served by DeepSeek-V4.1-Flash-1017) and deepseek-v4-pro (DeepSeek-V4-Pro-0813). Inside that window a single reply can run to 384K tokens (393,216), and DeepSeek states that 1M context has been the default across all of its official services, the web chat at chat.deepseek.com included, since the V4 preview of April 24, 2026.


The limit is shared: input tokens and generated tokens together must fit in the model's context length, so a request that sends 900,000 tokens of documents leaves at most 100,000 tokens for the answer. The sections below give the per-model limits in a table, the default output caps that apply when max_tokens is left unset, how thinking mode and context caching change token use and cost, the errors to expect, a cost example for a 600,000-token document computed from the official price list, and what to do when the DeepSeek app shows the message "Length limit reached. Please start a new chat."


........


Limit

deepseek-flash

deepseek-v4-pro

Model version served

DeepSeek-V4.1-Flash-1017

DeepSeek-V4-Pro-0813

Context length

1M tokens

1M tokens

Maximum output (max_tokens)

384K (393,216)

384K (393,216)

Default output, non-thinking

8K

8K

Default output, thinking

64K (128K at max effort)

64K (128K at max effort)

Image input

Supported

Not supported

Concurrent requests per account

2,500

500


........


These figures come from DeepSeek's Models & Pricing page, the Chat Completions API reference and the Rate Limit & Isolation page as published on November 10, 2026.


··········


⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣

DEEPSEEK CONTEXT WINDOW BY MODEL IN NOVEMBER 2026.


The current lineup is short. deepseek-flash is the name DeepSeek asks developers to use for its fast, low-cost model, and since the change log entry of October 17, 2026 it is served by DeepSeek-V4.1-Flash-1017, an update of the V4.1-Flash model released on September 10. The second model, deepseek-v4-pro, is listed on the pricing page as DeepSeek-V4-Pro-0813, the version that reached general availability on August 13, 2026 on the app, the web and the API. Both have a 1M-token context length and the same 384K output ceiling, so the choice between them is about quality, speed, image support and price rather than how much text fits in a request.


The older names still work in a limited way. Requests sent as deepseek-v4-flash or deepseek-v4-flash-vision-exp are accepted, but DeepSeek says those models are retired, and the calls are served by DeepSeek-V4.1-Flash-1017 and billed at the Flash price. The original aliases deepseek-chat and deepseek-reasoner, which earlier versions of this page covered, were scheduled by DeepSeek to be fully retired and inaccessible after 15:59 UTC on July 24, 2026, and the current API reference lists only deepseek-flash and deepseek-v4-pro as valid model values. Code that still sends the old aliases should be moved to one of the two current names.


The consumer services follow the same models. DeepSeek's October 17 release note says DeepSeek-V4.1-Flash-1017 is live on its website, app and API, and that the open weights are available on Hugging Face and ModelScope, so teams that host the model themselves start from the same release the API serves. Our DeepSeek V4.1 Flash 1017 article covers that release and its benchmarks in more detail.


··········


DEEPSEEK OUTPUT LIMITS AND THE MAX_TOKENS DEFAULTS.


The context window and the reply length are two separate settings. The API reference says max_tokens must be between 1 and 384K (393,216), and that the total of input and generated tokens is limited by the model's context length. When max_tokens is left out, DeepSeek applies a default of 8K tokens in non-thinking mode and 64K tokens in thinking mode, rising to 128K when reasoning_effort is set to max.


These defaults are the most common cause of answers that stop in the middle. A long report, a full code file or a translated contract can easily exceed 8K tokens, and the model then ends the reply with finish_reason set to length rather than with an error. Setting max_tokens explicitly, for example to 32K or 64K for long documents, avoids the problem, as long as the prompt plus that budget stays under 1M tokens.


Thinking mode adds a second consumer of output tokens. DeepSeek enables thinking by default with high effort, and the reasoning the model produces before its answer is generated text that counts toward the output budget. A request with a tight max_tokens in thinking mode can therefore spend most of its budget on reasoning and return a short or missing final answer. Disabling thinking (thinking type disabled, or reasoning_effort none) removes that overhead for tasks that do not need it, such as summarizing or reformatting.


··········


WHAT COUNTS AGAINST THE DEEPSEEK 1M-TOKEN WINDOW.


Every request is stateless. The API does not keep the earlier turns of a conversation, so a multi-turn chat works only if the client sends the previous messages again with each new request, and all of that history counts as input tokens. System prompts, tool definitions, JSON schemas, pasted files and images all count in the same way.


The reasoning text has its own rules. DeepSeek's thinking mode guide says that for requests without tools, reasoning_content from earlier turns does not need to be passed back and is ignored if it is sent, so past reasoning does not fill the window. For requests that use tools the rule is the opposite: the reasoning_content of all previous turns must be passed back in every later request, including turns where no tool was called, or the API returns a 400 error. Agent workloads with many tool calls therefore grow faster than plain chat and reach the 1M ceiling sooner.


DeepSeek publishes a rough conversion for planning: 1 English character is about 0.3 tokens and 1 Chinese character about 0.6 tokens, with the caveat that the ratio varies between models and that the usage object returned by the API is the actual count. On that estimate, a full 1M-token window holds roughly 3.3 million English characters. Images are counted from their dimensions, are resized automatically before inference and have a per-image token ceiling, and DeepSeek again treats the returned usage as the authoritative number.


··········


HOW DEEPSEEK CONTEXT CACHING CUTS THE COST OF LONG PROMPTS.


Context caching is enabled by default for all users and needs no code change. Each request builds a cache on disk, and a later request that repeats the same prefix, such as the same system prompt, the same long document or the same conversation history, is served partly from that cache. The usage object reports the split in prompt_cache_hit_tokens and prompt_cache_miss_tokens, and their sum equals prompt_tokens.


The rules are best-effort. A later request gets a hit only when its prefix fully matches a stored cache unit, cache construction takes seconds, and unused caches are cleared automatically, usually within a few hours to a few days, with no fixed lifetime published. DeepSeek does not promise a 100% hit rate, so cost estimates should allow for some misses.


The price gap is large. On the official price list, a cached input token costs 2% of an uncached one on deepseek-flash and about 3.3% on deepseek-v4-pro, which is why long-context workloads that ask several questions about the same material are far cheaper when the material stays at the start of the prompt and does not change between requests.


........


Price per 1M tokens

deepseek-flash peak

deepseek-flash off-peak

deepseek-v4-pro peak

deepseek-v4-pro off-peak

Input, cache hit

$0.006

$0.003

$0.044

$0.022

Input, cache miss

$0.30

$0.15

$1.32

$0.66

Output

$1.20

$0.60

$3.96

$1.98


........


Prices as listed on DeepSeek's official Models & Pricing page on November 10, 2026. Peak hours are 01:00 to 04:00 and 06:00 to 10:00 UTC, Monday to Friday, excluding Chinese public holidays; every other hour, weekends and Chinese public holidays are billed at the off-peak rate, which is half the peak rate. Our DeepSeek subscription and pricing guide explains what is free in the app and how API billing works.


··········


[[ADPLUS_300x250_1]]

DEEPSEEK LONG-CONTEXT COST EXAMPLE: A 600,000-TOKEN DOCUMENT.


The example assumes a developer sends a 600,000-token document set in one request and receives a 4,000-token answer, then asks 10 follow-up questions. Each follow-up repeats the same 600,000-token prefix (assumed to hit the cache), adds 500 new input tokens and receives a 2,000-token answer. The comparison also shows the same follow-ups with no cache hits at all.


........


Scenario

First request

10 follow-ups (cached)

Total with cache

Total without cache

deepseek-flash, peak

$0.18

$0.06

$0.25

$2.01

deepseek-flash, off-peak

$0.09

$0.03

$0.12

$1.01

deepseek-v4-pro, peak

$0.81

$0.35

$1.16

$8.81

deepseek-v4-pro, off-peak

$0.40

$0.17

$0.58

$4.41


........


The first request is the expensive part because the whole document is billed at the cache-miss rate. Once it is cached, ten more questions over the same 600,000 tokens cost about six cents on deepseek-flash at peak hours, against roughly $1.83 if every follow-up missed the cache. The same pattern holds on deepseek-v4-pro at a higher level, and moving batch-style work to off-peak hours halves every line.


··········


DEEPSEEK CONTEXT LIMIT ERRORS, RATE LIMITS AND TIMEOUTS.


DeepSeek's error code page does not list a dedicated context-overflow error. A request whose parameters are invalid returns 422 (Invalid Parameters) with a hint in the message, a malformed body returns 400 (Invalid Format), and a tool-calling conversation that drops earlier reasoning_content also returns 400, as described above. Replies cut short by max_tokens are not errors and must be detected from the finish_reason field of the response.


Concurrency is limited per account rather than per API key: 2,500 concurrent requests for deepseek-flash and 500 for deepseek-v4-pro, with requests over the limit receiving HTTP 429. A request counts from the moment it is sent until the response is complete, so long-context calls with long outputs hold their slot for longer. DeepSeek offers higher limits through a capacity request at no extra cost, and if inference has not started within 10 minutes the server closes the connection. While a response is pending, the API sends empty lines on non-streaming requests and keep-alive comments on streaming ones, which clients that parse raw HTTP need to tolerate.


The 503 (Server Overloaded) and 500 (Server Error) codes cover traffic spikes and server problems, and DeepSeek's advice for both is to retry after a short wait.


··········


⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁤

DEEPSEEK "LENGTH LIMIT REACHED. PLEASE START A NEW CHAT" AND HOW TO KEEP LONG CONVERSATIONS INSIDE THE WINDOW.


In the DeepSeek web chat and app, a long conversation can end with the message "Length limit reached. Please start a new chat." DeepSeek has not published a help page that documents this message or the exact threshold behind it. The documented facts that explain it are the 1M-token context that DeepSeek says is the default across its official services, and the rule that every earlier turn of a conversation, together with any pasted text, uploaded file and the model's replies, counts toward that window. On our reading, the message means the chat has filled the context available to it, so further turns in the same thread cannot be processed.


Starting a new chat is the only fix the message itself offers, and the work does not have to be lost. Before leaving the old thread, asking the model for a compact summary of the decisions, facts and open questions so far, then pasting that summary as the first message of the new chat, carries the useful state across at a small fraction of the token cost. Very large files are better split by chapter or section across separate chats than pasted whole into one, and long code or document outputs are best requested in parts.


For API users the same habits apply in code. Putting stable material first, the system prompt and then the documents, and appending new questions at the end keeps the prefix identical between requests, which is what context caching needs. Summarizing older turns into a short recap instead of replaying the full history keeps multi-turn chats well below 1M tokens.


Setting max_tokens on purpose prevents most truncated answers, and checking the usage object after each call shows exactly how many tokens the prompt used and how many were served from cache. For agents that call tools, budgeting for the reasoning_content that must travel with every request avoids hitting the ceiling halfway through a task. Users who compare assistants can read our ChatGPT context window guide for the limits on OpenAI's plans.


··········


DEEPSEEK CONTEXT WINDOW: WHAT IS DOCUMENTED AND WHAT IS NOT.


DeepSeek documents a 1M-token context length for deepseek-flash and deepseek-v4-pro, a 384K maximum output, default output caps of 8K and 64K (128K at max effort), the character-to-token estimates, the caching rules and the concurrency limits, and it states that 1M context is the default in its official services as well. The smaller limits that applied to deepseek-chat and deepseek-reasoner in 2025 no longer describe any model DeepSeek sells, since those aliases were scheduled for retirement on July 24, 2026.


Several details stay unpublished. DeepSeek does not state a separate output cap for the web chat and apps, the threshold behind the "Length limit reached" message, a fixed lifetime for cached prefixes, or a dedicated error code for prompts that exceed 1M tokens, and its official documentation does not describe a cross-chat memory feature in the consumer app. For developers, the practical limits are the 1M shared window, an explicit max_tokens and a cacheable prompt structure; for app users, a summary carried into a new chat is the way past a full thread.


··········


FOLLOW US FOR MORE.


·····


DATA STUDIOS


·····


datastudios.org


bottom of page