> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.empiriolabs.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.empiriolabs.ai/_mcp/server.

# Step 5

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

![Step 5](https://media.empiriolabs.ai/model-logos/step-5.png)

[StepFun](/providers/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](https://empiriolabs.ai/models/step-5) or [try it in the Playground](https://platform.empiriolabs.ai/dashboard/playground?model=step-5).

## At a glance

| Field               | Value                                                                                                                |
| ------------------- | -------------------------------------------------------------------------------------------------------------------- |
| Model id            | `step-5`                                                                                                             |
| Model release date  | 2026-11-29                                                                                                           |
| Input modalities    | Text, Image, Video                                                                                                   |
| Output modalities   | Text                                                                                                                 |
| Context window      | 1M                                                                                                                   |
| Weight precision    | -                                                                                                                    |
| Max output tokens   | 64,000                                                                                                               |
| Region              | International                                                                                                        |
| Features            | reasoning, function_calling, structured_output, vision, video, prompt_cache, agentic_coding                          |
| Native inference    | No                                                                                                                   |
| New                 | Yes                                                                                                                  |
| Structured output   | JSON Schema                                                                                                          |
| Supported endpoints | `POST /v1/chat/completions`, `POST /v1/responses`, `POST /v1/messages`, `POST /v1beta/models/step-5:generateContent` |
| Alternate model ids | `stepfun/step-5`                                                                                                     |

## Pricing

| Charge              | Spec                       | Rate    |
| ------------------- | -------------------------- | ------- |
| Input               | per 1M prompt tokens       | \$1.00  |
| Output              | per 1M generated tokens    | \$2.70  |
| Implicit cache read | per 1M cached input tokens | \$0.10  |
| Web Search (Linkup) | per call when invoked      | \$0.013 |

## Example request

```bash
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

| Parameter            | Type    | Required | Default     | Description                                                                                                                                                                                                                                                                         |
| -------------------- | ------- | -------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `temperature`        | number  | no       | -           | Sampling temperature. When omitted, the model's own default applies. · Range: 0 – 2                                                                                                                                                                                                 |
| `top_p`              | number  | no       | -           | Nucleus sampling probability mass. When omitted, the model's own default applies. · Range: 0.01 – 1                                                                                                                                                                                 |
| `max_tokens`         | integer | no       | -           | Maximum output tokens. Reasoning tokens count toward this limit. When omitted, the model's own default applies. · Range: 1 – 64000                                                                                                                                                  |
| `stop`               | array   | no       | -           | Stop sequences.                                                                                                                                                                                                                                                                     |
| `frequency_penalty`  | number  | no       | `0`         | Penalty for repeated tokens. · Range: -2 – 2                                                                                                                                                                                                                                        |
| `reasoning_effort`   | enum    | no       | -           | 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`                                                                             |
| `n`                  | integer | no       | `1`         | Number of answers to return, on /v1/chat/completions. The output tokens of every answer are billed. · Range: 1 – 5                                                                                                                                                                  |
| `reasoning_format`   | enum    | no       | `"general"` | Format of the reasoning trace returned alongside the answer. · Allowed: `general`, `deepseek-style`                                                                                                                                                                                 |
| `tools`              | array   | no       | -           | OpenAI-compatible function tools.                                                                                                                                                                                                                                                   |
| `tool_choice`        | string  | no       | -           | OpenAI-compatible tool choice control. This model supports auto and none.                                                                                                                                                                                                           |
| `response_format`    | object  | no       | -           | 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_linkup`  | boolean | no       | false       | Optional 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_formatting` | boolean | no       | false       | Return 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`.