Step 5 overview
Step 5 by StepFun
StepFun built Step 5 as a sparse Mixture-of-Experts model with 600B total and 27B active parameters. Its reasoning effort now reaches xhigh and max, beyond the low, medium and high of Step 5 Preview.
Step 5 specs
- Model ID
stepfun/step-5- Developer
- StepFun
- Context window
- 1,000,000 tokens
- Max output
- 64,000 tokens
- Input
- Image, Text, Video
- Output
- Text
- API
- OpenAI-compatible, base URL
https://api.aimlapi.com/v1
Where the strengths lie
StepFun names software engineering, professional knowledge work, web design, 3D scenes and interactive applications as the areas where Step 5 is strongest. Only 27 billion of the 600 billion parameters are active for each token.
The model always reasons, so there is no way to switch thinking off. Long tasks can use the full 1M-token window, and a single reply can reach 64,000 tokens.
Set the reasoning effort
Reasoning effort is the one request option this endpoint lists. It accepts low, medium, high, xhigh or max. Lower effort gives faster answers and spends fewer tokens on reasoning.
Start with medium for everyday agent steps and code edits. Move to high, xhigh or max only for tasks where medium gives wrong or shallow results. Check that the answer improves enough to justify the extra reasoning tokens.
Step 5, Step 5 Preview or Step 3.7 Flash
Step 5 Preview has the same architecture and context window but lists only low, medium and high effort. Step 3.7 Flash is a smaller StepFun model with a 256K window, built for fast inference. Run the same prompts on each and compare answer quality and latency before choosing.
Use cases
Fix bugs and write features across a large codebase placed in one 1M-token prompt.
Read a screenshot or a screen recording of a UI problem and propose a code change.
Build interactive web pages and 3D scenes from a written brief.
Run multi-step agent workflows that call tools and return structured output.
Capabilities
- Reasoning
- Streaming
- Structured outputs
- Function calling
- Vision
Step 5 API pricing
| Usage | Price | Unit |
|---|---|---|
| Input | $1.058 | 1M tokens |
| Output | $2.8566 | 1M tokens |
| Cached input | $0.1058 | 1M tokens |
Prices from the AI/ML API price list, checked on Dec 1, 2026.
Step 5 vs other models: token prices
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $1.058 | $2.8566 | |
| $0.2116 | $1.2167 | |
| $1.058 | $2.8566 | |
| $0.75 | $2.95 | |
| $0.5 | $3 |
How to use the Step 5 API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"2Make your first request
curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "stepfun/step-5",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "stepfun/step-5",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "stepfun/step-5",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Step 5 FAQ
How much does Step 5 cost?
Step 5 costs $1.058 / 1M tokens for input and $2.8566 / 1M tokens for output on AI/ML API. Cached input is billed at $0.1058 / 1M tokens.
What inputs does Step 5 accept?
Step 5 accepts text, image and video input and returns text. The catalog also lists tools, structured output and streaming as supported.
Can I turn reasoning off?
No. Step 5 always reasons. You can only change the reasoning effort with low, medium, high, xhigh or max.
How long can a response be?
A response can reach 64,000 tokens. The input side can use up to 1M tokens of context.
What changed against Step 5 Preview?
Step 5 offers xhigh and max effort on top of low, medium and high. Step 5 Preview lists only low, medium and high.
What is the Step 5 model ID?
Use stepfun/step-5 as the model parameter. Requests go to the OpenAI-compatible endpoint with your AI/ML API key.
What is the context window of Step 5?
Step 5 accepts up to 1,000,000 tokens of context and returns up to 64,000 output tokens.