Step 5 API

Run agentic coding and knowledge work over text, image and video input with a 1M-token context

Modalities
Image, Text, VideoText
In / Out price
$1.058/$2.8566per 1M
Context window
1M tokens
Released
Nov 30, 2026

Step 5 overview

The pelican test: one prompt, every text model, unedited SVG output from Dec 1, 2026.

SVG of a pelican riding a bicycle, written by Step 5 through AI/ML API

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

Step 5 pricing in US dollars
UsagePriceUnit
Input$1.0581M tokens
Output$2.85661M tokens
Cached input$0.10581M 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.

AI/ML API model prices in USD per million tokens
ModelInputOutput
Step 5$1.058$2.8566
Step 3.7 Flash$0.2116$1.2167
Step 5 Preview$1.058$2.8566
LongCat 2.0$0.75$2.95
Gemini 3 Flash$0.5$3

How to use the Step 5 API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export 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."
    }
  ]
}'

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.

Start building with Step 5

Step 5 API

stepfun/step-5

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export 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."
    }
  ]
}'