> ## Documentation Index
> Fetch the complete documentation index at: https://platform.stepfun.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Step 5

**Step 5 is StepFun's latest flagship model for agentic work.** It completes complex tasks with fewer tokens and at lower cost, and performs well in software engineering, knowledge work, web design, 3D scenes, and interactive apps. It also advances scientific reasoning, cybersecurity, and AI research tasks. Step 5 accepts text, image, and video input and has a **1M-token context window**.

## Model details

| Specification | Value |
| :- | :- |
| **Model ID** | `step-5` |
| **Context window** | **1M tokens** |
| Input types | Text, image, video |
| Output type | Text |
| Maximum output | **64K tokens** |

## Capabilities

> [card] Coding and software engineering
>
> Writes, debugs, and tests code across languages, using tools to make and verify changes.

> [card] Web design and interactive applications
>
> Builds landing pages, data visualizations, 3D scenes, and interactive prototypes in a requested visual style.

> [card] Agentic workflows
>
> Uses tools from your application to research, process documents, and carry long tasks such as reports through to completion.

> [card] Long-context and multimodal analysis
>
> Works across long documents, images, and video in one 1M-token context for cross-document Q\&A, chart analysis, and video summaries.

## Image and video input

| Item | Limit |
| :- | :- |
| Image sources | URL or Base64 |
| Image formats | JPG/JPEG, PNG, WebP, and static GIF |
| Images per request | Up to 60 |
| Detail levels | `low`, `high` |
| Video sources | URL, Base64, or a `stepfile://` reference from the Files API |
| Video formats | MP4, QuickTime, and Matroska |
| Video URL limit | One MP4 file under 128 MB; 5 minutes or shorter recommended |

See the [Quickstart](https://platform.stepfun.ai/docs/en/quickstart/overview.md) for image and video request examples. For complete limits, see [Image understanding best practices](https://platform.stepfun.ai/docs/en/guides/developer/image-chat.md) and [Video understanding best practices](https://platform.stepfun.ai/docs/en/guides/developer/video-chat.md).

## Supported features

| Feature | Details | Guide |
| :- | :- | :- |
| Streaming | Yes | [Streaming responses](https://platform.stepfun.ai/docs/en/guides/developer/stream.md) |
| Tool calling | Yes | [Tool calling](https://platform.stepfun.ai/docs/en/api-reference/tool-call.md) |
| Structured output | JSON Mode and JSON Schema | [JSON Mode](https://platform.stepfun.ai/docs/en/guides/developer/json-mode.md) |
| Reasoning effort | `low`, `medium`, `high`, `xhigh`, `max` | [Reasoning models](https://platform.stepfun.ai/docs/en/guides/developer/reasoning.md) |
| Prompt caching | Yes | [Prompt caching](https://platform.stepfun.ai/docs/en/guides/developer/prompt-cache.md) |
| Output length | If `max_tokens` is not set, the model determines output length | [Chat Completions API](https://platform.stepfun.ai/docs/en/api-reference/chat/chat-completion-create.md) |

Set reasoning effort with `reasoning_effort` (Chat Completions), `output_config.effort` (Messages), or `reasoning.effort` (Responses).

## Get started

Step 5 supports the Chat Completions, Messages, and Responses APIs.

> [card] [Quickstart](https://platform.stepfun.ai/docs/en/quickstart/overview.md)
>
> See text, image, and video request examples.

> [card] [Chat Completions API](https://platform.stepfun.ai/docs/en/api-reference/chat/chat-completion-create.md)
>
> OpenAI-compatible endpoint. Full request and response reference.

> [card] [Messages API](https://platform.stepfun.ai/docs/en/api-reference/chat/messages-create.md)
>
> Anthropic-compatible endpoint.

> [card] [Responses API](https://platform.stepfun.ai/docs/en/api-reference/responses/responses-create.md)
>
> OpenAI Responses-compatible endpoint.

## Pricing and rate limits

Step 5 is billed per input and output token. See [Pricing and Rate Limits](https://platform.stepfun.ai/docs/en/guides/pricing/details.md#pricing-for-multimodal-reasoning-models) for prices, cache billing, and rate limits.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.