Skip to content
One AI API Key
Blog

Hy4 flash 1M context guide: the window, the 64K output cap and the Engram memory

Hy4 flash lists a 1,048,576-token window with 960K max input and 64K max output. What the window costs to fill, and where the Engram 64B memory block fits.

One AI API Key TeamPublished 6 min read
On this page

One million tokens is the headline that makes every launch post look the same, so the discipline is in the footnotes. For Hy4 flash the footnotes are these: the window is exactly 1,048,576 tokens, provider docs list 960K max input and 64K max output, and the model carries a 64B Engram memory block inside its 224B total parameters. This post is what each number costs, where it bends, and what to do before you fill a window because the spec says you can.

The verdict up front. The window is real, published, and cheap to fill — a full 960K-token call bills about $0.067 fresh input at list. The ceiling that will bite first is not the window, it is the 64K output cap, which is one sixth of the frontier class’s published ceilings. And the one spec nobody publishes is the recall curve: how much of that million tokens the model actually uses. Budget under the window, chunk defensively, cache what repeats, and meter.

The window, in exact numbers

Spec Hy4 flash Source
Context window 1,048,576 tokens llm-stats, from provider docs
Max input 960K tokens provider docs via llm-stats
Max output 64K tokens provider docs via llm-stats
Input modalities Text, image (natively multimodal) llm-stats
Total / active params 224B / 12B, incl. 64B Engram Tencent launch material

The 960K-versus-1M gap is normal, not a trick: windows are marketed at 1,048,576 and served with headroom reserved for the response and the scheduler. The number to configure against is 960K input, and the number to watch is your own prompt budget under it — our Qwen4-Max 1M context guide makes the same point for the frontier class: the published window is a ceiling, not a target.

What a full-window call costs

At the list card — $0.070 input, $0.281 output, $0.003 cached per million:

  • 960K fresh input: 0.96 × $0.070 = $0.067
  • 64K output at the cap: 0.064 × $0.281 = $0.018
  • Full call, fresh: $0.085
  • Same call with half the input cached: 0.48 × $0.070 + 0.48 × $0.003 + $0.018 = $0.054

For scale, the same arithmetic on Qwen4-Max’s list card is $1.44 input plus $0.29 output at the same shape — about twenty times the bill, which is the entire economic case for the cheap lane on long-context volume. The cache spread inside flash’s own card is the bigger lever, though: $0.003 against $0.070 is 23x, and a repeated prefix is the only bug that bills you silently. The prompt caching guide explains the prefix discipline; it transfers to any model with a cache rate.

The 64K output cap is the number that bites

A 1M window with a 64K answer ceiling shapes your architecture before it shapes your bill. Patterns that fit: retrieval over a million tokens with a short answer, classification of a long document, extraction into a schema, summarisation with a structured outline. Patterns that do not: single-shot generation of a long report, a full-file rewrite, a book chapter in one call. For those, chunk on natural boundaries, generate per chunk, combine downstream — and note that Qwen4-Max publishes a 393,216-token max output for exactly this reason, which is why the two models are routing tiers, not rivals (full comparison).

Log input and output tokens per call. A call approaching 960K input should surface in metrics, not as a silently truncated answer; a call pinned at 64K output should surface as a generation that stopped mid-thought, not as a bad answer you pay for twice.

The Engram 64B, honestly

Flash’s 224B parameters include a 64B Engram memory block, per Pandaily — a memory component inside the mixture rather than routed experts. What it does for recall across the window is not published. Do not buy a million tokens on the theory that the memory block makes retrieval perfect; long-context models commonly degrade in the middle of very long prompts, and the recall curve for Engram is exactly the kind of number launch material omits. Test the depths you actually use: probe at 10K, 100K, 500K and 900K tokens of context, and compare the answer at each depth against the same document chunked.

The multimodal half of the window matters too: flash accepts image input natively, so a million tokens can be a million tokens of screenshots, tables and pages. Image tokens are not text tokens in your budget, and the per-image token cost is not published in the material we could verify. Measure it on your first batch, or you will learn it from a bill.

A chunking pattern that survives the cap

The pattern that works at any window size, from our long-context discipline: split on natural boundaries — sections, not sentence fragments — with each chunk well under your budget; process one chunk at a time, extracting findings rather than summaries; combine the findings downstream, where the answer is short and the cap is irrelevant. Then verify the window itself: ask the same question of the whole document and of the chunked pipeline, and diff the answers. Where they diverge, the model’s recall at that depth failed you, and the chunked answer is the one to ship. Log input tokens per call so a call drifting toward 960K surfaces in metrics instead of as a silently partial answer. None of this is Hy4-specific — it is the same protocol as the Qwen4-Max 1M guide, and it will outlive both models’ launch numbers.

More Hy4 flash coverage

The rest of this cluster, ten angles on one launch:

Plus the gateway pages every window eventually meets: model catalogue, comparison tool, cost calculator, free lane and the changelog.

The bottom line

Hy4 flash’s one solid published spec is a good one: a 1,048,576-token window, 960K max input, 64K max output, natively multimodal, fillable for about $0.085 a call at list. The output cap is the underrated half — it decides your architecture before the price does. The Engram memory block is a headline, not a spec, until a recall curve exists. Budget under the window, chunk on boundaries, cache the prefix that repeats, and probe the depths you actually use. Meanwhile the same window on the frontier class is metered at $1.50 / $4.50, and the gateway’s free lane remains the cheapest verifiable route for qualifying traffic today.

More in Blog

Try it

One API key for Claude, GPT, Grok, DeepSeek, Kimi, Qwen, GLM, MiniMax, Step, Crow, Dots, Beam, Nemotron, Jailbreak, MiMo, Gemini, Muse and Mistral.

One AI API Key speaks the OpenAI and Anthropic formats, so you change the base URL and the key, not your code. Credit packs start at $10, and every model has a published per-token rate.