DeepSeek just fired another shot in the long-context war. On Thursday, DeepSeek AI released DeepSeek-V4.1-Flash, a new long-context model that ships with a 1 million token context window, an FP4 KV cache, and a technique the team calls cross-layer attention reuse — three engineering choices aimed squarely at the workload that now dominates LLM serving: long-horizon agents that read far more than they write.
The release, first covered by MarkTechPost and picked up across the AI news ecosystem this morning, is less about topping a leaderboard and more about attacking the real bottleneck of agentic AI: memory bandwidth.
Why long-horizon agents changed the economics of inference
A year ago, LLM serving was roughly balanced between input and output tokens. Today, agent workloads are wildly input-heavy. A coding agent re-reads your entire repository every turn. A research agent ingests hundreds of pages before writing a paragraph. A browser agent re-encodes screenshots and page state on every step.
That shift breaks serving infrastructure in a specific place: the KV cache. Every token you process gets its key/value tensors stored so later tokens can attend to it. At a million tokens of context, those caches stop being a footnote — they become the dominant consumer of expensive HBM memory, and when they spill, they hammer SSDs and PCIe bandwidth. Repeated prefills of the same long documents multiply the pain.
DeepSeek's answer in V4.1-Flash attacks this from three angles:
- 1M token context window — enough to hold entire codebases, legal discovery sets, or hundreds of source documents in a single session without retrieval plumbing.
- FP4 KV cache — storing key/value tensors at 4-bit precision instead of 16-bit cuts KV memory footprint by roughly 4x, which means more concurrent long-context sessions per GPU and fewer cache evictions to slow storage.
- Cross-layer attention reuse — rather than recomputing attention state independently at every layer, the model reuses computation across layers, trimming both prefill time and memory traffic.
The pattern echoes what the broader industry has been converging on: as the Decoder's coverage of the Ramp AI Index noted this week, the price per million tokens has dropped 41% year-over-year, and the labs winning on cost are the ones winning on inference efficiency, not just raw benchmark scores.
What this means for developers
If you run agentic workloads, V4.1-Flash changes your architecture options:
- Less retrieval scaffolding. With 1M tokens of context, "stuff the whole codebase in" stops being a joke and starts being a baseline strategy for many repos. RAG still wins for very large corpora, but the gap where RAG is mandatory keeps shrinking.
- Cheaper long sessions. FP4 KV cache economics favor long, multi-turn agent sessions — exactly the profile of coding agents, deep-research pipelines, and always-on assistants.
- Faster repeated prefills. Cross-layer attention reuse compounds when the same giant context is re-sent across turns, which is the default behavior of most agent loops.
The one caveat: efficiency techniques like FP4 caching are only as good as their quality retention. Independent benchmark runs on long-context recall tasks will be the real test — keep an eye on needle-in-a-haystack style evaluations at the 500K–1M token range before betting a production pipeline on it.
How to try it
DeepSeek models are available across every major aggregator, and pricing for the DeepSeek V4 family remains among the most aggressive in the industry — you can compare live DeepSeek V4 Flash pricing on Qubax, where an open market of compute providers competes on price so you often pay well below retail list rates.
When routing long-context workloads, the practical advice is the same as always: benchmark against your traffic. A model that's 3x cheaper per token but 30% less accurate on your retrieval tasks is not cheaper. Set up an eval harness, run your real prompts, and let the numbers decide.
The long-context race isn't slowing down — with DeepSeek V4.1-Flash, Google's Gemini line, and OpenAI's newest releases all pushing million-token contexts, the question for 2027 is no longer whether models can read a million tokens, but who can serve them without setting your infrastructure budget on fire.
FAQ
What is DeepSeek-V4.1-Flash?
A new long-context LLM from DeepSeek AI featuring a 1 million token context window, an FP4 (4-bit) KV cache for memory efficiency, and cross-layer attention reuse to cut prefill computation.
Why does the KV cache matter so much for long context?
Every processed token stores key/value tensors for future attention. At a million tokens these tensors consume enormous GPU memory (HBM), so compressing them to FP4 roughly quarters the memory footprint and lets providers serve far more concurrent long-context sessions.
Do I still need RAG with a 1M token context?
Sometimes. For codebases and document sets that fit in a few hundred thousand tokens, full-context prompting is now viable. For corpora far beyond the window, or when cost per query matters, retrieval still wins.
Where can I use DeepSeek V4.1-Flash?
It's rolling out via the DeepSeek API and major inference aggregators. Compare providers and prices for the DeepSeek V4 family on Qubax models.