DeepSeek V4 on Cloudflare Workers AI: 1M Context Window Is Live On August 14, Cloudflare added DeepSeek V4 Pro and DeepSeek V4 Flash to Workers AI, both with a 1,048,576-token context window, the first models on the platform to cross the 1M mark. The Flash model (284B total parameters, 13B active) outputs at 103.2 tokens per second and scores 47 on the Artificial Analysis Intelligence Index, while Pro (1.6T total, 49B active) scores 52 and costs roughly 3.1x more per output token. Cloudflare recommends Flash as the production default, reserving Pro for complex agent workflows. On August 14, Cloudflare added DeepSeek V4 Pro and DeepSeek V4 Flash to Workers AI — both with a 1,048,576-token context window. That is the first time any model on Workers AI has shipped with a 1 million token context. If you have been routing long-context inference tasks out of your Workers to external APIs because the old ceiling broke your architecture, you no longer need to. What Shipped Two model IDs are live: @cf/deepseek-ai/deepseek-v4-pro-0813 and @cf/deepseek-ai/deepseek-v4-flash-0731 . Both run on Cloudflare’s managed GPU network and support the same three access paths: the Workers AI binding env.AI.run , the REST API, and the OpenAI-compatible chat completions endpoint https://developers.cloudflare.com/ai-gateway/usage/chat-completion/ . Both also support thinking mode and function calling. Workers AI’s previous context ceiling was 128K tokens on the best available models. V4 Flash and Pro represent an 8x jump minimum — and the official Cloudflare changelog https://developers.cloudflare.com/changelog/post/2026-08-14-deepseek-v4-workers-ai/ confirms these are the first models on the platform to cross the 1M mark. That is not an incremental upgrade. It changes what you can fit into a single inference call. Flash vs Pro: Pick Flash First The two models are not equals, but the gap is narrower than the naming implies. Flash 284B total parameters, 13B active outputs at 103.2 tokens per second and scores 47 on the Artificial Analysis Intelligence Index. Pro 1.6T total, 49B active scores 52 — a 5-point gap. Pro also costs roughly 3.1x more per output token. In most production workloads, that 5-point intelligence difference does not show up. Use Flash as your default. Reserve Pro for workflows with 10+ tool call chains, multi-agent planning where the coordinator needs to track complex state, or explicitly hallucination-sensitive pipelines where the quality gap actually matters. Paying 3x for the Pro label on a straightforward RAG pipeline is a waste. | Flash 0731 | Pro 0813 | | |---|---|---| | Active params | 13B | 49B | | Context | 1M tokens | 1M tokens | | Output speed | 103.2 tok/s | Slower | | Intelligence Index | 47 | 52 | | Relative cost | ~3.1x cheaper | Baseline | | Best for | Production default | Complex agents | How to Wire It Up The Workers binding requires two things: add ai binding = "AI" to your wrangler.toml , then call the model in your handler. The Workers Wrangler setup guide https://developers.cloudflare.com/workers-ai/get-started/workers-wrangler/ covers the full configuration. export default { async fetch request: Request, env: { AI: Ai } : Promise