Skip to navigation

Step 5 1M context window: what a million tokens buys you

In short: Step 5 (GA) and Step 5 Preview support a 1M token context with a 64K output ceiling. How to plan against the window, what it costs, and where it helps.

Published Updated 19 min read
On this page

The short answer

Step 5 (GA, released 30 November 2026) and Step 5 Preview both run a 1,000,000 token context window with a 64K token maximum output. Those two numbers together are the single most useful thing about the model for agent work, because they let one call hold an entire repository, a long document set, or a large video-derived frame sequence instead of forcing a retrieval pipeline.

The figures come from StepFun’s Step 5 model guide, and the Preview figures were first compiled by OrcaRouter. There is one caveat you must plan around: some StepFun documentation describes the 1M as input and output combined, not as 1M of pure input stacked on top of 64K of output. So the honest planning posture is to budget against the 64K output ceiling and treat the 1M as a combined budget until StepFun states it more precisely.

This post covers what a 1M window is actually good for, what it costs at StepFun’s listed prices, and how to keep it from becoming a billing problem. For the underlying parameter shape, read Step 5 600B 27B MoE architecture. For the video modality that fills that window, read Step 5 multimodal and video input.

Why a 1M window changes the shape of the work

Most context windows force a design decision before you write any code: what fits in one call, and what has to be split, summarized, or retrieved. At 128K you chunk. At 200K you summarize. At 1M, a large class of tasks stops being a pipeline and becomes a single call.

The concrete examples are the ones agents hit daily. A mid-size repository is often 200K to 600K tokens of source. A full product spec with appendices lands near 100K. A day of logs from a busy service can run past 300K. A video broken into frames at a reasonable sampling rate fills hundreds of thousands of tokens. At 1M, you can put the whole repo, the whole spec, the whole log file, or the whole frame sequence into context and ask one question across all of it.

That is a real capability change, not a marketing number, because it removes the retrieval step that both adds latency and loses information. A retrieval pipeline answers from fragments. A long-context model answers from the whole. The trade is cost and the risk that the model does not use the window well, which is the next section.

CodebaseA mid-size repo in one working setDocumentsSpecs and appendices without chunkingLogsA day of service output for one queryVideo framesA sampled sequence in one call

The confirmed context and output spec

These are the Step 5 figures from StepFun documentation: the Preview numbers as first reported by OrcaRouter, and the GA numbers from StepFun’s Step 5 model guide. They are the baseline to compare anything else against.

Spec Step 5 Preview Step 5 (GA)
Context window Up to 1,000,000 tokens 1,000,000 tokens
Maximum output 64K tokens (plan against 64K) 64K tokens
Window description Some docs: 1M as input plus output combined Plan the same way
Input modalities Text, image, video Text, image, video
Output modality Text only Text only
Structured output Tool calls and structured JSON Tool calling, JSON Mode, JSON Schema
Model ID step-5-preview step-5

The 64K output ceiling deserves as much attention as the 1M input, because it is the number people forget and then hit. A 1M input invites you to ask for a large artifact back, such as a full file rewrite or a long structured report. The model will stop at 64K output tokens. That is a generous ceiling for a single response, but it is a hard one, so plan long deliverables as multiple calls that each stay under 64K.

AGTP summary listing HungerG key numbers including a 1M context window, 65K output, top 3 by weekly call volume on OpenCode, Step 5 Preview launched 71 days prior, 185 days since Step 3.7 Flash, and Step 5 Preview described as a 600B parameter flagship for agent work.
The window as listed. The 1M context and 65K output that appeared in the stealth-week listing, compiled in the AGTP summary.

The AGTP summary lists the window as 1M context and 65K output for the HungerG alias, which matches the 1M and 64K figures in the confirmed Preview card closely enough to treat as the same shape. That summary also describes Step 5 Preview as a 600B parameter flagship for agent work, which is the capacity story behind the window.

What a 1M context costs at Preview prices

The prices are the input to every cost decision here, and Step 5 (GA) and Preview share them: $1.00 per 1M input tokens on a cache miss, $0.10 per 1M on a cache hit, and $2.70 per 1M output tokens. From those three numbers you can compute the cost of any context strategy with plain arithmetic.

Strategy Tokens Price applied Cost
Full 1M input, cache miss 1,000,000 in $1.00 per 1M input about $1.00
Same 1M re-sent, cached 1,000,000 in $0.10 per 1M cached about $0.10
Full 1M input plus 64K output 1M in + 64K out $1.00 in + $2.70 out about $1.17
Repeated agent turn, cached 1M in cached + 4K out $0.10 in + $2.70 out about $0.11 per turn

Two conclusions fall out of that table. First, a single full-window call is cheap in absolute terms. A dollar to put a million tokens in front of a 600B model is not the barrier. Second, and more important, caching is the whole game in agent loops. A cached re-read of the same million tokens costs a tenth of a fresh one, so an agent that re-sends a large working set every turn pays roughly a tenth of what it would without caching, as long as the prefix stays stable.

That is why prompt structure matters at this window size. Put the large, stable content, such as the repository, the system instructions, and the reference documents, at the front of the prompt where it caches. Put the small, changing content, such as the latest tool output and the current user turn, at the end. A prompt that interleaves stable and changing content defeats the cache and turns a $0.10 turn into a $1.00 turn. For the full pricing mechanics, see StepFun API pricing explained and Step 5 cost per task analysis, and for worked cache-hit arithmetic across whole sessions read Step 5 prompt caching cost math.

When to use the window and when not to

A 1M window is a tool, and like any tool it is the wrong answer for some tasks. The discipline is knowing which tasks actually need the whole working set and which are better served by a smaller, cheaper context.

Use the full window when the answer genuinely depends on relationships spread across the whole input. Cross-file refactors that need to see every call site. Questions over a long document set where the relevant facts are scattered. Log analysis where the signal is a pattern across hours, not a single line. Video review where you need the whole sequence to understand the event. In these cases, retrieval loses exactly the relationships you are paying to keep, and the full window is the correct choice.

Use a smaller context when the task is local. A single-function question does not need the whole repository. A single-file edit does not need every other file. Sending the full window for a local task costs more, runs slower, and can produce a worse answer because the model has more material to sift for a fact that was in one file. The instinct to “just send everything” is the most common long-context mistake, and it is a cost and quality mistake at once.

Task shape Window strategy Why
Cross-file refactor Full window Answer depends on relationships across files
Single-function question Targeted context Local task, full window adds cost and noise
Log pattern over hours Full window Signal is spread across the whole input
Known-location lookup Targeted context You already know where the answer is
Whole-repo architecture review Full window Needs the whole structure at once
Small bug in one module Targeted context Local fix, no cross-cutting relationships

The decision rule is simple and worth internalizing. Send the whole working set when the answer would change if you removed any part of it. Send a targeted slice when most of the input is irrelevant to the question. Most agent work is a mix, and the agents that control cost well are the ones that decide per turn rather than always defaulting to the full window.

There is a middle path worth naming, because it is where many real tasks land. Summarize the parts of the working set that are settled and keep only the live parts at full resolution. A long-running agent session that has already read and understood half the repository does not need to re-send all of it verbatim every turn; a durable summary of the settled half plus the full text of the active area is often enough, and it is far cheaper. The tradeoff is that a summary can drop a detail you later need, so this is a judgment call rather than a free win.

Artificial Analysis output token usage chart splitting answer and reasoning tokens, showing the Step 5 line using a comparatively low total output token count to complete the evaluation set, with larger models reaching far higher totals.
The output half of the budget. The token line the 64K ceiling caps and the output-efficiency story acts on.

Context and the agent loop, end to end

It helps to see the whole loop as a budget, because that is how it behaves. A coding agent over a large repository runs a predictable cycle: build or refresh the working set, ask the model for the next action, execute it, observe the result, repeat. Context is the input to every one of those turns, and the working set is the part that dominates the bill.

The Artificial Analysis measurements give a sense of the shape even though they are benchmark tasks rather than your workload. Artificial Analysis measured Step 5 Preview at $3.94 per index task and 22.9 minutes, and Step 5 (GA) at $2.53 per index task and 8.5 minutes, which tells you these are long, multi-step reasoning tasks with substantial context. The GA index of 40 (Preview 29, same rubric) is a mid-field score, so the model is not the strongest reasoner on the board, and that is a real tradeoff against its capacity. A model that holds more but reasons less strongly is a different tool from one that reasons more strongly but holds less, and which you prefer depends on whether your tasks are context-bound or reasoning-bound.

For context-bound work, where the bottleneck is how much you can look at at once, the 1M window is the reason to pick this model. For reasoning-bound work, where the bottleneck is the quality of a hard inference step, an index of 40 says a stronger reasoner may serve you better even with less context. The honest framing is that this is a capacity-forward model, and it earns its place on tasks that are limited by window size rather than by raw reasoning depth.

The cost shape of a real loop is worth estimating before you run it, because the numbers are simple and the differences are large. Take a working set of 400K tokens refreshed rarely, a per-turn tail of 4K tokens, and 30 turns. With a stable cached prefix the input cost is dominated by the one-time full-price read plus cheap re-reads, and the output cost is the per-turn tail at $2.70 per 1M. Without caching, the same loop re-reads 400K at full price every turn and costs roughly ten times as much. That gap is the entire economic argument for structuring the prompt around a stable prefix, and it is arithmetic from the confirmed prices rather than a vendor claim.

Artificial Analysis intelligence index versus cost per task scatter plot showing Step 5 Preview at a 29 index and a low cost per task, against frontier closed models that score higher at a much higher cost per task.
Cost per task. Step 5 Preview at a 29 index and low cost, the confirmed baseline behind the per-token prices used above.

Does the model use the window well

A large window is a ceiling, not a guarantee. The hard question with any long-context model is whether it actually attends to the middle of a very long prompt or quietly loses it. StepFun does not publish a needle-in-a-haystack curve or a long-context recall benchmark for Step 5, so the honest answer is that long-context recall quality is not confirmed by a vendor benchmark.

What you have instead is indirect evidence, and it is worth reading correctly. Artificial Analysis scores Step 5 (GA) at 40 and Step 5 Preview at 29 on the current Intelligence Index across nine evaluations, which include long-context-weighted tasks. That is a mid-field score, and it does not isolate long-context recall as a single number. The community blind test reported strong agent behavior, including five to six parallel tool calls and short reasoning chains, but that was one user on one project and did not test 1M-token recall specifically.

So the practical posture is to treat the 1M window as a capacity you can use, and to verify recall on your own data before you depend on it. Run a controlled probe: plant a known fact deep in a large context, ask for it, and check the answer. That is a five-minute test that tells you more about your workload than any vendor curve, because long-context recall degrades differently for code, prose, and logs.

How to structure a 1M prompt

Window size changes how you should lay out a prompt, because caching and attention both favor a specific structure. The pattern below works for a repository or document-set agent and it is the one that keeps the cached input price at $0.10 per turn instead of $1.00.

First, put the stable bulk at the front. System instructions, then the large reference material, then the repository or document set. This is the prefix that caches, so it should be the part that never changes between turns.

Second, put the changing part at the end. Current tool output, the latest user message, and any scratch state go last, after the cached prefix. These tokens are billed fresh each turn, but they are small compared to the prefix.

Third, keep the prefix byte-stable. Do not reformat, re-order, or prepend a timestamp to the large block, because any change invalidates the cache and re-bills the whole window at full price. Deterministic serialization is a cost feature, not just a cleanliness one.

bash
export STEPFUN_BASE_URL="base URL from the StepFun docs"
export STEPFUN_API_KEY="your key here"

# Stable prefix first (caches), changing content last
# Step 5 is called on StepFun's own API today; take the base URL from StepFun's docs
curl "$STEPFUN_BASE_URL/chat/completions" \
-H "Authorization: Bearer $STEPFUN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "model": "step-5",
  "messages": [
    {"role": "system", "content": "You are a codebase analyst. Answer only from the provided source."},
    {"role": "user", "content": "REPO SOURCE (stable, ~400k tokens): ...full tree and files...\n\nTASK (changes per turn): find every call site of the retry helper and list the file and line."}
  ]
}'

Three rules keep that call cheap and correct. Pin the model ID so a silent swap cannot change your results. Keep the large prefix byte-identical between turns so it caches. And keep each request under the 64K output ceiling if you expect a long answer back.

Context, caching, and the agent loop

The 1M window earns its keep in an agent loop, where the same working set is re-read many times. This is where the community forensics thread and the blind test both point: the model was used as a primary agent worker, re-reading a project across many tool calls, and the reported behavior was short reasoning chains with parallel tool calls rather than long re-derivation.

The economics of that pattern are the cached-input price. In a loop where a 400K-token working set is re-sent for 30 turns, a cache miss on every turn would bill 12M input tokens at $1.00 per 1M, about $12. With a stable prefix that caches, the same loop bills the bulk at $0.10 per 1M, about $1.20, plus the fresh tail tokens each turn. That is roughly a tenfold reduction on the dominant line item, and it is arithmetic from the confirmed prices, not a vendor claim.

Artificial Analysis Intelligence Index v5.0.2 header listing the nine incorporated evaluations, the benchmark context behind the per-task cost and token figures used to model a long-context loop.
Where the numbers come from. The nine evaluations behind the index that produce the per-task cost and token baselines.

Output tokens are the other half of the loop budget, and the 64K ceiling is the cap on them. Artificial Analysis reports that the Step 5 line is comparatively efficient on output tokens per task, which compounds with the cached-input strategy: cheap input re-reads plus modest output per turn is the combination that makes a long agent loop affordable. For the efficiency detail, see Step 5 output token efficiency and Step 5 tokens per second.

How to fund a 1M-context workload

Metered billing at $1.00 in and $2.70 out is the pay-as-you-go path, and for bursty or evaluation use it is the right one. For steady agent workloads that hold a large context across many turns, StepFun Step Plan is the subscription alternative, documented on the StepFun Step Plan overview. It funds API access to StepFun’s models, including step-5-preview and, per StepFun’s model guide, step-5, through a monthly Credit pool rather than a per-token invoice.

The Credit math matters at this window size because a large-context loop burns Credits fast. StepFun Step Plan credits math works through the per-Credit rate, and StepFun Step Plan Plus vs Pro and StepFun Step Plan Max deal compare the tiers. The short version is that bigger tiers buy a better per-Credit rate, and the top tier is the best value of the three. If you run a 1M-context agent daily, model that burn against the tiers before you pick one. StepFun Step Plan booster packs covers the top-up path when a month runs short.

Bursty or evalPay-as-you-go at $1.00 in, $2.70 outSteady agent workStep Plan Credit pool, better rateStable prefixCache re-reads at a tenth the costMonth runs shortBooster pack tops up the pool

For the concrete endpoint, SDK setup, and supported model IDs, see How to access Step 5. If you are weighing a cheaper fast model against a slower strong one for long-context work, choosing a model for coding agents covers the trade. To weigh the 1M window against reasoning depth and price in one place, return to the complete Step 5 guide.

What Step 5 (GA) changes for context

StepFun chairman Yin Qi said on 30 November 2026, as reported by BigGo News, that the HungerG stealth model was an early version of Step 5 on the same architecture as Step 5 Preview. The release followed the same day: StepFun’s launch post says Step 5 is “available today through the StepFun API, at the same pricing as Step 5 Preview”, and the Step 5 model guide documents the 1M context, the 64K maximum output and text, image and video input.

Item Step 5 Preview Step 5 (GA)
Released API 20 Sep 2026 30 Nov 2026
Context / max output 1M / 64K 1M / 64K
Price per 1M (miss / hit / output) $1.00 / $0.10 / $2.70 $1.00 / $0.10 / $2.70
Weights Public (Hugging Face) Not available, API only
Artificial Analysis index 29 40
Cost per index task $3.94 $2.53
Output tokens, whole index 129M 79.8M

The last row matters for long-context work because every output token is billed at $2.70 per 1M and counts toward the same window. Fewer output tokens per task means a smaller share of each turn goes to the expensive side of the bill. Where the GA model’s long outputs end is still the 64K ceiling, so the splitting advice above is unchanged. For how the two builds differ beyond context, read Step 5 Preview vs final Step 5; for the dated sequence from stealth week to GA, see the Step 5 release timeline from Preview to GA. If you want to self-host the open Preview with the same window, Step 5 Preview self-hosting with SGLang and vLLM lists the hardware. For placement against competitors that also offer large windows, see Step 5 vs Kimi K3.1 Pro and Step 5 vs Gemini 4 Carbon.

Run it on the free lane

On our gateway, step-5:free advertises a 1,024,000 token context window and up to 64K output, with image input, reasoning and streaming. It costs $0 per token inside the free allowance of 100 requests and 3,000,000 tokens a day per account, shared by all :free ids. Step 5 counts as 3 requests, so you get 33 Step 5 requests a day, and the 3,000,000 token cap is the number that matters for long prompts: one full 1M-token prompt uses a third of the day’s tokens.

bash
# Long-context probe on the free lane
curl "https://api.oneaiapikey.com/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "model": "step-5:free",
  "max_tokens": 2000,
  "messages": [
    {"role": "user", "content": "<paste your document here>\n\nWhat is the secret code planted in the text above?"}
  ]
}'

Plant a fact in your own data, ask for it back, and check the answer. The Step 5 model page has the live stats and the chat page lets you paste a long file without code.

Honest limitations

Hold these limits before you build a long-context dependency.

  • Step 5 (GA) is API-only. StepFun has not published weights for it, so you cannot self-host the GA model; only Step 5 Preview has open weights, and StepFun has not said whether GA weights will follow.
  • The 1M may be input plus output combined. Some StepFun documentation describes it that way, so plan against the 64K output ceiling and the combined budget.
  • Long-context recall quality is not benchmarked by StepFun. There is no published needle-in-a-haystack curve, so verify recall on your own data.
  • The 40 index (Preview 29) is not a long-context score. It is a mid-field overall Intelligence Index across nine evaluations.
  • Prices can change. $1.00 in, $0.10 cached and $2.70 out are what StepFun lists for both models on 1 December 2026; check the pricing page before you budget.
  • Community window measurements were flagged unsourced. The stealth-week serving row reporting 1M context and 65,536 output was marked unsourced in the forensics thread itself.
  • Our hands-on use was informal. Our team tested HungerG from release and found it efficient and fast, but that is experience, not a controlled long-context benchmark.

Checklist

Long-context planning gate

0 of 6 ticked

Do not commit yet

Confirm the output ceiling and run a recall probe before you design around the window.

Test the 1M window on your own data

Point an OpenAI-compatible client at step-5:free, send your largest real working set, and measure tokens and elapsed time per turn before you commit. It is $0 per token inside the free allowance.

FAQ

How large is the Step 5 context window?
Step 5 (GA, id step-5) and Step 5 Preview both support up to 1,000,000 tokens of context with a 64K token maximum output, per StepFun platform documentation.
Is the 1M context input only or input plus output?
Some StepFun documentation describes the 1M as input plus output combined rather than 1M of input on top of 64K of output. The safe planning posture is to budget against the 64K output ceiling and treat 1M as the combined budget.
What does a full 1M context cost?
At the listed StepFun prices for Step 5 and Preview, 1M input tokens on a cache miss cost about $1.00. If the same context is re-sent with a stable prefix that caches, it costs about $0.10. Output is billed separately at $2.70 per 1M tokens.
Does Step 5 actually use the full window well?
StepFun does not publish a long-context recall benchmark for Step 5, so recall quality is unconfirmed by a vendor. The 40 Intelligence Index (Preview 29) is a mid-field overall score, not a recall score. Run a planted-fact probe on your own data before depending on the window.
What is the maximum output length?
64K tokens. That is a generous ceiling for a single response but a hard one, so plan any long deliverable, such as a full file rewrite or a long report, as multiple calls that each stay under 64K.
How do I keep long-context agent loops affordable?
Cache the stable prefix. Put system instructions, reference documents and the repository first and keep them byte-identical between turns so they bill at the $0.10 cached rate, and put the changing tool output and user turn last where they are small and fresh.
Can video fill the 1M window?
Yes. Step 5 accepts video input (one MP4 under 128 MB, five minutes or shorter recommended), and a sampled frame sequence can consume hundreds of thousands of tokens, which is exactly the kind of input the 1M window is sized for. See the multimodal and video input post for accepted formats.
Can I try the 1M window for free?
Yes. step-5:free on our gateway lists a 1,024,000 token context window and up to 64K output, at $0 per token inside the free allowance. Step 5 counts as 3 of your 100 daily requests (33 a day), and the 3,000,000 daily token cap is shared by all free ids.
Is the 1M window confirmed for the final Step 5?
Yes. Step 5 (GA) was released on 30 November 2026 and StepFun documents a 1M context and a 64K maximum output for the step-5 id, with the same $1.00, $0.10 and $2.70 prices as Preview. It is API-only, with no published weights.
More in Blog

Try it

One API key for GPT, Grok, DeepSeek, Kimi, GLM, MiniMax, Qwen, Step, Beam, Nemotron, ERNIE, Hunyuan, Gemma, Laguna, LFM, LongCat, Llama, Solar, Jais, Mistral, K2 and Roleplay.

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.

New accounts$10 credit on sign-up
Claim $10 credit →