Skip to navigation
Step 5
StepFun · Text Generation
POST /v1/chat/completions

Flagship agentic reasoning with a 1M token context, image and video input, parallel tool calling, five reasoning levels, and strict JSON schema output.

See Step 5 pricing and specs or try it in the Playground.

At a glance

FieldValue
Model idstep-5
Model release date2026-11-29
Input modalitiesText, Image, Video
Output modalitiesText
Context window1M
Weight precision-
Max output tokens64,000
RegionInternational
Featuresreasoning, function_calling, structured_output, vision, video, prompt_cache, agentic_coding
Native inferenceNo
NewYes
Structured outputJSON Schema
Supported endpointsPOST /v1/chat/completions, POST /v1/responses, POST /v1/messages, POST /v1beta/models/step-5:generateContent
Alternate model idsstepfun/step-5

Pricing

ChargeSpecRate
Inputper 1M prompt tokens$1.00
Outputper 1M generated tokens$2.70
Implicit cache readper 1M cached input tokens$0.10
Web Search (Linkup)per call when invoked$0.013

Example request

curl https://api.empiriolabs.ai/v1/chat/completions \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H 'Content-Type: application/json' \
-d '{"model": "step-5", "messages": [{"role":"user","content":"Hello"}]}'

Parameters

ParameterTypeRequiredDefaultDescription
temperaturenumberno-Sampling temperature. When omitted, the model’s own default applies. · Range: 0 – 2
top_pnumberno-Nucleus sampling probability mass. When omitted, the model’s own default applies. · Range: 0.01 – 1
max_tokensintegerno-Maximum output tokens. Reasoning tokens count toward this limit. When omitted, the model’s own default applies. · Range: 1 – 64000
stoparrayno-Stop sequences.
frequency_penaltynumberno0Penalty for repeated tokens. · Range: -2 – 2
reasoning_effortenumno-Controls how much the model reasons before it answers. Higher effort spends more tokens on reasoning. When omitted, the model’s own default applies. · Allowed: low, medium, high, xhigh, max
nintegerno1Number of answers to return, on /v1/chat/completions. The output tokens of every answer are billed. · Range: 1 – 5
reasoning_formatenumno"general"Format of the reasoning trace returned alongside the answer. · Allowed: general, deepseek-style
toolsarrayno-OpenAI-compatible function tools.
tool_choicestringno-OpenAI-compatible tool choice control. This model supports auto and none.
response_formatobjectno-Constrain the output to valid JSON. Use JSON mode for any JSON object, or supply a JSON Schema to force an exact response shape.
web_search_linkupbooleannofalseOptional web search powered by Linkup. When enabled, recent web sources are retrieved using your latest user message as the query and provided to the model as additional context. Adds $0.013 per call when invoked on top of the model’s normal token cost. Disabled by default.
disable_formattingbooleannofalseReturn the answer without the Sources list that web search adds.

Notes

Supports text, image, and video input with a 1M token context, parallel function tools, strict JSON schema output, and reasoning_effort low, medium, high, xhigh, or max. Reasoning tokens count toward max_tokens and bill as output tokens. The model decides when to call a function tool: tool_choice takes auto or none. JSON mode (response_format json_object) needs the word JSON in the messages; a JSON Schema does not. Images are read at full detail unless an image part sets detail to low, which uses fewer input tokens. Prompt-cache hits are billed at the cache-read rate. Video input supports MP4 under 128 MB, with clips under 5 minutes recommended.


Machine-readable schema: GET https://api.empiriolabs.ai/v1/models/step-5.