Skip to navigation

How to access Step 5: API IDs, base URLs and SDK setup

In short: Call step-5 for Step 5 GA or step-5-preview for the older model. Covers three API styles, five reasoning efforts, Step Plan base URLs and aggregator ids.

Published Updated 20 min read
On this page

The short answer

You access Step 5 (GA, released 30 November 2026) by calling the model ID step-5 on StepFun’s API, or stepfun/step-5 on OpenRouter and Vercel AI Gateway, or by calling step-5:free on our gateway at no per-token cost. The older step-5-preview id still exists at the same StepFun price. StepFun’s model guide lists three API styles (Chat Completions, Messages and Responses), a 1M context, 64K maximum output and five reasoning efforts: low, medium, high, xhigh and max.

You have two funding paths and three endpoint shapes to choose between. The API path bills per token at $1.00 / $0.10 / $2.70 per 1M. The Step Plan path funds step-5-preview (and the other ids on its list) through a monthly Credit subscription documented on the Step Plan overview, with verified base URLs for Claude Code and Anthropic SDK clients at https://api.stepfun.ai/step_plan and for OpenAI SDK clients at https://api.stepfun.ai/step_plan/v1. The open weights path (Preview only, 14 and 15 October 2026, StepFun Model License 1.0) is for self-hosting; Step 5 (GA) is API only.

This post is the concrete setup: IDs, base URLs, SDK config, and a curl you can run. For the model you are calling, read Step 5 600B 27B MoE architecture and Step 5 1M context window.

Which model ID do I call: step-5 or step-5-preview?

Call step-5 for the GA model and step-5-preview only if you need the older Preview behavior. Before 30 November 2026, OrcaRouter reported from StepFun platform docs that the pricing table held only step-5-preview; the launch added step-5 at the same price, and StepFun has issued no retirement notice for the Preview.

Pin the id explicitly in your config rather than inheriting whatever a tool defaults to. The two ids have different token use (79.8M against 129M output tokens on the Artificial Analysis index) and different index scores (40 against 29), so a silent swap changes your bill and your results. For the sequence of events see the Step 5 release timeline from Preview to GA, and for the routing pattern see switching an OpenAI SDK app to a different base URL.

Metered APIstep-5 and step-5-preview, pay per tokenStep PlanMonthly Credits, verified base URLsOpen weightsPreview only, License 1.0Model IDstep-5 (GA), step-5-preview

What you get when you call it

It is worth being concrete about what the endpoint returns, because that is what you are actually configuring against. Call step-5 or step-5-preview and you get back a text completion, a tool call, or structured JSON. The reported architecture is 600 billion total parameters and 27 billion active per token in a sparse mixture-of-experts layout, per StepFun platform documentation as compiled by OrcaRouter; the Step 5 docs do not restate the parameter count, and it is shared with Preview per StepFun’s chairman.

The input and output contract is fixed and worth knowing before you wire anything up. Input is text, image and video. Output is text only, plus tool calls and structured JSON, so there is no image or audio generation on this endpoint. Context is up to 1M tokens with 64K maximum output, though some StepFun documentation describes the 1M as input and output combined, so plan against the 64K output ceiling. For the architecture detail, see Step 5 600B 27B MoE architecture, and for the modalities see Step 5 multimodal and video input.

Artificial Analysis scores Step 5 (GA) at 40 on the current Intelligence Index at $2.53 per index task, with about 8.5 minutes per task and 104 tokens per second; Step 5 Preview scores 29 at $3.94, about 22.9 minutes and near 83 tokens per second. Those are mid-field scores, and they are the honest baseline. You are accessing a capacity-forward, efficiency-oriented model, not the top of the reasoning board. For how the 40 got confirmed, see Step 5 intelligence index 40 explained.

What you call What you get back
step-5 or step-5-preview Text, tool calls, or structured JSON
Architecture 600B total, 27B active, sparse MoE (reported)
Input Text, image, video
Context Up to 1M tokens, 64K max output
AA Intelligence Index 40 at $2.53 per task (GA); 29 at $3.94 (Preview)

Read that table as the baseline for both ids. It is the shape of the thing your key reaches, and it is the same regardless of which of the three access paths funds the call. What changes between the paths is the billing and the endpoint, not the model.

What does the Step 5 (GA) API support: three formats, five efforts, two aggregators?

The Step 5 API supports Chat Completions, Messages and Responses, per StepFun’s model guide. The table collects what a client needs.

Item Value
Model id step-5 (StepFun), stepfun/step-5 (OpenRouter, Vercel AI Gateway)
Chat Completions OpenAI-compatible; reasoning via reasoning_effort
Messages Anthropic-compatible; reasoning via output_config.effort
Responses reasoning via reasoning.effort
Effort levels low, medium, high, xhigh, max (Preview docs stop at high)
Output length if max_tokens is unset, the model decides
Features streaming, tool calling, JSON Mode and JSON Schema, prompt caching
Images and video up to 60 images per request; one MP4 under 128 MB, 5 minutes or shorter recommended

On aggregators, OpenRouter’s Step 5 listing shows the id stepfun/step-5 with one provider (StepFun) at $1 and $2.70 and a cache read of $0.10, and Vercel’s changelog says it is available on AI Gateway with provider pricing and no markup. The deep dives are in Step 5 on OpenRouter and Vercel AI Gateway, the three API formats and reasoning effort levels. Our own gateway serves Step 5 as step-5:free; the free model list shows it next to the other free ids, and free alternatives to Step 5 covers the rest.

Path one: the metered API

The metered API is the pay-as-you-go path, live for Preview since 20 September 2026 and for step-5 since 30 November 2026. You send requests to the StepFun API endpoint with step-5 (or step-5-preview) as the model ID and you are billed per token at the same prices for both ids:

Token class Price per 1M tokens
Input, cache miss $1.00
Input, cached $0.10
Output $2.70

Those are the prices you pay today for step-5 and step-5-preview alike. The cache is the lever worth knowing about before you send anything large: a cached re-read of the same input costs about a tenth of a fresh one, which matters enormously in agent loops that re-send a stable context every turn. For the worked arithmetic, see StepFun API pricing explained and Step 5 cost per task analysis.

bash
# Metered StepFun API, OpenAI-compatible shape
export STEPFUN_API_KEY="your StepFun API key"

curl "https://api.stepfun.ai/v1/chat/completions" \
-H "Authorization: Bearer $STEPFUN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "model": "step-5",
  "reasoning_effort": "medium",
  "messages": [
    {"role": "user", "content": "Summarize this repository structure in five bullets."}
  ]
}'

The metered path is the right default for evaluation, bursty use, and anything where you want a clean per-token bill you can attribute. For steady daily agent workloads, compare it against Step Plan before you commit, because the subscription can be materially cheaper per token.

Path two: StepFun Step Plan

Step Plan is the subscription. Per the Step Plan overview, it is a Credit-based monthly subscription that provides access to flagship models and MCP tools, with multi-device login and high-speed model performance across every tier, and no speed surcharge. Credits are issued for a full month at once, do not roll over, and are cleared at month end. You can pay via Stripe or redeem account balance, and you can cancel anytime with no refunds.

Two facts about the Credit system shape how you should use it. Credits are a use-it-or-lose-it monthly pool, not a balance that accumulates, so a subscription only pays off if you actually consume the allowance in the month you bought it. And Credit deductions are separate from standard API quota, so buying Step Plan does not top up a metered balance and vice versa. Treat them as two different wallets.

The confirmed base URLs are the concrete thing this post exists to give you:

Client Base URL
Claude Code / Anthropic SDK https://api.stepfun.ai/step_plan
OpenAI SDK https://api.stepfun.ai/step_plan/v1

The confirmed supported model IDs through Step Plan are:

  • step-5-preview
  • step-3.7-flash
  • step-3.5-flash
  • step-3.5-flash-2603
  • stepaudio-2.5-tts
  • stepaudio-2.5-asr

The client tools StepFun documents Step Plan being used in are OpenClaw, Claude Code, Trae and Cursor. So the two base URLs above are what you point those tools at, depending on which SDK shape the tool speaks. The concrete client config for each shape is in the next section.

The Step Plan tiers are confirmed and fund the ids on that list, step-5-preview among them. The Hermes Agent integration page for the Step Plan endpoint (https://api.stepfun.ai/step_plan/v1) also lists step-5-preview as a verified id, and no page this post checked says a tier covers step-5:

Tier Monthly Credits Monthly Quarterly Yearly
Flash Plus (Daily Driver) 1,600M $9.99 $26.99 $95.99
Flash Pro (Pro Choice) 8,000M $29 $79 $289
Flash Max (Ultimate All-Access) 20,000M $59 $159 $589

Every tier includes all flagship models, multiple MCP tools, multi-device login and the same high-speed model performance. Flash Plus and above add priority API rates and priority technical support. Booster packs are available on their own 30-day cycle for active subscribers: Small at $6.99 for 400M Credits, Large at $9.99 for 1,600M Credits, deducted in the order of whichever expires first. Flash Mini is discontinued for new purchases, and legacy Flash Mini and Flash Max (40,000M) subscribers before 24 November 2026 keep their terms.

At $1 equal to about 7M Credits, the larger tiers buy a better per-Credit rate, with Flash Max the best value of the three. The full math is in StepFun Step Plan credits math, the tier comparison in StepFun Step Plan Plus vs Pro and StepFun Step Plan Max deal, and top-ups in StepFun Step Plan booster packs.

Configuring the two SDK shapes

Because Step Plan exposes two endpoint shapes, it helps to see what changes between them and what stays the same. The model ID is the same in both. The wire protocol and the message format differ, and pointing a client at the wrong shape is the most common setup failure.

The OpenAI SDK shape is what Cursor, Trae and OpenClaw speak, and it uses the /v1 path. Requests go to /chat/completions with an Authorization: Bearer header, messages are a list of role and content objects, and the model is selected by the model field. If you have used any OpenAI-compatible endpoint before, nothing about this is new, and that is the point: swapping your base URL and key is usually the whole change.

bash
# Step Plan, OpenAI SDK clients (Cursor, Trae, OpenClaw)
export OPENAI_BASE_URL="https://api.stepfun.ai/step_plan/v1"
export OPENAI_API_KEY="your Step Plan key"

# Step Plan request, OpenAI SDK shape
curl "https://api.stepfun.ai/step_plan/v1/chat/completions" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "model": "step-5-preview",
  "messages": [
    {"role": "user", "content": "Refactor this function and explain the change."}
  ]
}'

The Anthropic SDK shape is what Claude Code speaks, and it uses the bare /step_plan path without /v1. The header and base URL differ from the OpenAI shape, and the message structure is Anthropic’s rather than OpenAI’s. Getting these two confused is the failure mode to watch for: an Anthropic client pointed at the /v1 path, or an OpenAI client pointed at the bare path, will fail in ways that look like an auth or model problem rather than a URL problem.

bash
# Claude Code: point at the Anthropic-compatible root
export ANTHROPIC_BASE_URL="https://api.stepfun.ai/step_plan"
export ANTHROPIC_AUTH_TOKEN="your Step Plan key"

# Then in Claude Code, select model: step-5-preview

Three settings are worth pinning regardless of which shape you use. Pin the model ID to step-5-preview explicitly, because a tool that defaults to whatever is newest will not pick a Step 5 model on its own. Pin the base URL in the same config as the key, so the two travel together and a key rotation cannot silently point at a different endpoint. And set a timeout that accounts for long generation, because a 600B model producing up to 64K output tokens on a heavy task is slower than a small chat model and a default timeout can cut a legitimate run short. For the broader routing pattern, see switching an OpenAI SDK app to a different base URL.

StepFun researcher Yasmine post explaining task latency as a central Step 5 optimization goal, covering token spend, parallel sub-agents, handoff costs, and the efficiency goal behind the Preview model you access through these endpoints.
Why latency shaped the access trade. Task latency as a design goal, from the researcher who published the note.

Path three: open weights

If you would rather run a Step 5 model yourself than call an endpoint, the open weights path covers Step 5 Preview only: the weights were published on Hugging Face on 14 and 15 October 2026 under the StepFun Model License 1.0. Step 5 (GA) is proprietary and API only, and StepFun has not said whether its weights will follow; see Step 5 API or Preview weights and self-hosting Preview with SGLang and vLLM. The license text governs what you can do commercially, so read it before you deploy rather than assuming.

Self-hosting trades the endpoint for an infrastructure bill, and a 600B sparse MoE is a substantial deployment. The offset is control: no per-token pricing, no rate limits from a shared endpoint, and the ability to pin the exact weights. For teams already running inference infrastructure, that trade can be worth it. For everyone else, the API and Step Plan paths are the lower-friction access routes.

One more thing the open-weights path buys you that the endpoint paths do not: insulation from change. A Preview model ID can be retired, a price can move, and a shared endpoint can be rate-limited under load. Weights you host do none of that. If your workload is sensitive to any of those, that independence is the reason to self-host rather than a preference. The cost is that you own the deployment, the scaling, and the uptime, which is a real operational commitment rather than a configuration change.

Choosing between the paths

The three paths are not interchangeable, and the right one depends on your usage shape rather than on any quality difference, because they fund or serve the same model family. Open weights exist for Preview only.

Path Best for Pricing shape Commitment
Metered API Evaluation, bursty use, attribution Per token, $1.00 in / $2.70 out None, pay as you go
Step Plan Steady daily agent work Monthly Credit pool Monthly or longer term
Open weights Self-hosters, control, volume Infrastructure cost Your own deployment

Read that table as a usage decision, not a quality ranking. The model is the same. The metered API wins when usage is spiky or you need a clean per-task bill. Step Plan wins when you run a steady agent workload, because the Credit pool is cheaper per token than the metered rate and the bigger tiers are cheaper still. Open weights win when you need control or already run inference.

The decision is easier if you think in terms of predictability. A metered bill is unpredictable in size and perfectly attributable to each call, which is what you want during evaluation and what finance wants for a one-off project. A Step Plan bill is fixed for the month and unattributable per call, which is what you want once a workload is steady and you would rather cap the spend than meter it. Neither is better. They answer different questions.

There is a sequencing that works for most teams and is worth naming. Start on the metered API while you are evaluating, because it gives you a real per-task cost you can compare against alternatives. Once you know your steady monthly burn and you have committed to the model, move the steady workload onto Step Plan and keep the metered path for bursty or experimental use. That way the subscription is sized from measured usage rather than guessed, and you are not paying for Credits you do not consume. If the burn runs hot mid-month, StepFun Step Plan booster packs is the top-up path rather than an emergency plan change.

If you want the deeper value comparison, StepFun Step Plan Plus vs Pro and StepFun Step Plan Max deal work through the tiers. For the per-task framing, Step 5 cost per task analysis breaks down what a task actually costs at the confirmed Preview prices.

Verifying your setup before you depend on it

Artificial Analysis Intelligence Index v5.0.2 header listing the nine incorporated evaluations and showing Step 5 Preview in the compact ranking view, the confirmed baseline model you access through the API, Step Plan or open weights.
The model you are calling. Step 5 Preview at 29 on the current index, the confirmed baseline behind all three access paths.

Because the GA id is new and the Step Plan list still names the Preview, verify three things before you build anything load-bearing.

First, confirm the model ID is accepted. A request with an unsupported ID fails cleanly, so send one small call and confirm it returns before you wire up a client. On the metered API try step-5; the verified supported list through Step Plan is the six IDs above, and step-5-preview is the one on it that gives you Step 5.

Second, confirm the base URL matches your SDK. An Anthropic-shaped client pointed at the OpenAI path, or the reverse, fails in confusing ways. Claude Code and Anthropic SDK clients use https://api.stepfun.ai/step_plan; OpenAI SDK clients use https://api.stepfun.ai/step_plan/v1. Match the shape to the client.

Third, record tokens and elapsed time on your first real task. That is the only way to see what a task actually costs and how long it takes, and it is the baseline you compare against when prices or ids change.

AGTP summary listing HungerG key numbers including a 1M context window, 65K output, top 3 by weekly call volume on OpenCode, and Step 5 Preview described as a 600B parameter flagship for agent work.
What you are calling. The context, output and flagship-for-agent-work figures compiled in the AGTP summary.

Our One AI API Key team has personally tested HungerG from the day it released and are impressed by its efficiency and speed. That hands-on use went through these same access paths, and it is informal experience rather than a controlled benchmark, so we report it as experience.

What the free-event path was, and why it ended

During the HungerG stealth week in late November 2026 there was a fourth, temporary way in: the model was free on Qoder and OpenCode. That window is closed. On 30 November 2026 StepFun revealed HungerG as an early test of Step 5, as reported by BigGo News and announced on StepFun on X, and the anonymous free alias stopped being the access route.

News summary titled StepFun reveals HungerG as Step 5 Preview after stealth tests, describing the chairman explaining the Hunger Games naming inspiration and a more efficient 1M-context architecture for debugging and agentic tasks.
Why the free window closed. The 30 November reveal that turned the anonymous alias into a named Step 5 test.

The lesson from that window is worth keeping. A free, unbranded alias can appear and disappear with no SLA and no notice, which is fine for evaluation and bad for dependency. The durable access routes are the three above: the metered API, Step Plan, and (for Preview) open weights, all of which serve a named Step 5 id. If you built anything on hungerg-free during the stealth week, move it onto a named path. For the identity story, see HungerG stealth model and Step 5 benchmarks.

What did the Step 5 launch change for access?

StepFun confirmed through chairman Yin Qi on 30 November 2026 that HungerG was an early version of Step 5, built on the same architecture as Step 5 Preview and described as smarter and more efficient; the launch post then published numbers. For access, three things changed on 30 November: step-5 exists as a model id at the same price, the Responses and Messages styles and the xhigh and max efforts are documented, and OpenRouter and Vercel AI Gateway list it.

What is still not published for Step 5 (GA) as of 1 December 2026:

  • No weights and no Hugging Face repository named Step-5.
  • No statement on a page this post checked that Step Plan covers step-5.
  • No restated parameter count in the Step 5 docs; 600B total and 27B active is reported by OpenRouter and Artificial Analysis.
  • Prices can change; the $1.00 / $0.10 / $2.70 table is today’s price list.

For a direct Preview-versus-GA comparison, see Step 5 Preview vs final Step 5. For how the model places against competitors you might otherwise route to, see Step 5 vs Sonnet 5.5, Step 5 vs Kimi K3.1 Pro and the November 2026 frontier model roundup. If you are routing through a gateway, the free model catalog lists step-5:free and the other ids you can call without a paid plan.

Honest limitations

Hold these limits before you build on any of these access paths.

  • Step 5 (GA) has no published weights. step-5 is API only; the weights belong to Preview.
  • Prices can change. $1.00 in, $0.10 cached and $2.70 out are listed for both step-5 and step-5-preview on StepFun’s pricing page today.
  • The Step Plan id list is the one verified earlier. It names step-5-preview; Step Plan coverage of step-5 is unconfirmed.
  • Step Plan Credits are separate from standard API quota and do not roll over, so a subscription is a use-it-or-lose-it monthly pool.
  • Step Code pricing and model binding are not confirmed. The Step Code overview is only a section index, and Step Plan is the confirmed subscription.
  • The free HungerG alias is gone. The stealth-week free path ended on 30 November 2026 and should not be a dependency.
  • Keep the index figures apart. Step 5 (GA) is 40 and Step 5 Preview is 29; the 44 in October coverage was the pre-v5 rubric.
  • Open-weight self-hosting carries license terms. Read the StepFun Model License 1.0 before commercial deployment.
  • Our hands-on use was informal. Our team tested HungerG from release, but that is experience, not a controlled access or benchmark test.

Run it on the free lane

The fourth way in needs no StepFun account. Our gateway exposes Step 5 as step-5:free on the OpenAI-compatible Chat Completions route. It has a 1M-token context window (1,024,000), up to 64K output, image input, reasoning and streaming. The per-token price is $0 inside the free allowance, which is 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, one key per person and one request at a time. The StepFun list price of $1.00 / $0.10 / $2.70 applies only on StepFun’s own API.

bash
# Step 5 on our free lane, OpenAI-compatible
curl "https://api.oneaiapikey.com/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "model": "step-5:free",
  "messages": [
    {"role": "user", "content": "Summarize this repository structure in five bullets."}
  ]
}'

Use it to confirm your client config, then read the live numbers on the Step 5 model page or try the same prompt in chat. Messages and Responses routes, tool calling and video input are StepFun’s API features; this post does not claim them for the free id.

Checklist

Access setup gate

0 of 6 ticked

Do not ship yet

Confirm the model ID and matching base URL before you depend on the endpoint.

One key for Step 5 and every other model

Point an OpenAI-compatible client at the gateway, call step-5:free and the other free-lane ids with a single key, and keep the routing portable if you later move to StepFun's own API.

FAQ

What model ID do I use to access Step 5?
step-5 for Step 5 (GA, released 30 November 2026) on the StepFun API, or stepfun/step-5 on OpenRouter and Vercel AI Gateway. step-5-preview still works at the same price, and it is the id on the Step Plan list this post verified.
What is the base URL for Step Plan?
For Claude Code and Anthropic SDK clients, https://api.stepfun.ai/step_plan. For OpenAI SDK clients, https://api.stepfun.ai/step_plan/v1. Match the URL shape to the SDK your client speaks.
Which models are supported through Step Plan?
The confirmed supported IDs are step-5-preview, step-3.7-flash, step-3.5-flash, step-3.5-flash-2603, stepaudio-2.5-tts and stepaudio-2.5-asr, per the Step Plan overview.
Can I use Step 5 in Claude Code or Cursor?
Yes. StepFun documents Step Plan being used in OpenClaw, Claude Code, Trae and Cursor. Point Claude Code at the Anthropic-compatible base URL and OpenAI SDK tools such as Cursor and Trae at the /v1 path, then select step-5-preview.
How much does Step 5 cost to call?
StepFun lists $1.00 per 1M input tokens on a cache miss, $0.10 per 1M cached, and $2.70 per 1M output for both step-5 and step-5-preview. Step Plan offers Step Plan ids through a monthly Credit subscription, which can be cheaper per token for steady workloads.
Which APIs and reasoning efforts does Step 5 support?
Chat Completions (OpenAI-compatible), Messages (Anthropic-compatible) and Responses. Reasoning effort is low, medium, high, xhigh or max, set through reasoning_effort, output_config.effort or reasoning.effort depending on the API.
Can I self-host Step 5?
Not Step 5 (GA), which is API only. Open weights for Step 5 Preview have been available since 14 and 15 October 2026 under the StepFun Model License 1.0. Read the license for commercial terms before deploying, and note that a 600B sparse MoE is a substantial deployment.
Is HungerG still a free way to access Step 5?
No. HungerG was free on OpenCode and Qoder during the stealth week, and Qoder documented a free event, but the alias was revealed as Step 5 on 30 November 2026 and the free path ended. Use the named step-5-preview ID instead.
Is the final Step 5 available yet?
Yes. Step 5 (GA) was released on 30 November 2026 as the id step-5 at the same price as Step 5 Preview, with an Artificial Analysis index of 40. It has no published weights. You can call it on StepFun, OpenRouter or Vercel AI Gateway, or free on our gateway as step-5:free.
Can I use Step 5 on your gateway?
Yes. Use the model id step-5:free on https://api.oneaiapikey.com/v1/chat/completions. It is on the free lane at $0 per token, no card, and counts as 3 of your 100 daily requests, so 33 Step 5 requests a day.
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 →