---
title: Step 5 API – Pricing & Playground | ModelsLab
description: Step 5 API by StepFun, 1M context. $1.25/1M input, $3.375/1M output tokens. API & playground on ModelsLab.
url: https://modelslab.com/models/stepfun/stepfun-step-5.md
canonical: https://modelslab.com/models/stepfun/stepfun-step-5
type: product
component: Playground/LLM/Index
generated_at: 2026-11-30T21:32:17.332751Z
---

StepFun: Step 5
---

 [LLMs.txt](https://modelslab.com/models/stepfun/stepfun-step-5/llms.txt) [.md](https://modelslab.com/models/stepfun/stepfun-step-5.md)

StepFun: Step 5
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

images and text files

Send

### StepFun: Step 5

stepfun stepfun-step-5

Copy model ID

PricingInput $1.25 / 1M tokens

Output $3.375 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens4000

Top P0.9

Frequency Penalty0

Presence Penalty0

Thinkinglow

lowmediumhigh

Deeper thinking spends more of the Max Tokens budget before the answer starts.

Model Info

Support

Looking for something different?
---

Models that trade off differently against the one you are viewing

### Better quality

Newer flagship models that generally produce stronger results.

![GPT 5.1 API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/fad83520-47a8-4059-b4b9-b32adf4d0be7.png)

[OpenAI](/models/openai)

 [GPT 5.1](/models/openai/gpt5.1)

![GPT-5.1-Codex-Max API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/06356c4c-df09-4ccb-a5c0-629da670f75b.png)

[OpenAI](/models/openai)

 [GPT-5.1-Codex-Max](/models/openai/gpt-5.1-codex-max)

### Lower cost per run

Open-source models we host, unlimited on the $149/month plan.

![Gemini 2.5 Flash API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/4fc6b09e-c7ae-4301-aed1-0b180b88157b.png)

[Google](/models/google)

 [Gemini 2.5 Flash](/models/google/gemini-2.5-flash)

![gpt-oss-20b API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/8b2f0440-52cc-4f41-93eb-d31006ad71e2.webp)

[OpenAI](/models/openai)

 [gpt-oss-20b](/models/openai/gpt-oss-20b)

![Gemini 2.5 Flash Image Preview  API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/97c6f065-57f9-45b0-a190-08e5f97f70a8.png)

[Google](/models/google)

 [Gemini 2.5 Flash Image Preview](/models/google/gemini-2.5-flash-image-preview)

![OpenAI: GPT-5 Mini API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/0bda788d-705d-4cbd-9c9d-dcdaa12b9493.webp)

[OpenAI](/models/open_router)

 [OpenAI: GPT-5 Mini](/models/openai/openai-gpt-5-mini)

![Gemma 3N E4B Instruct API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/b5ad4a07-e4eb-4d39-85d1-58ec000a8a4f.png)

[Google](/models?feature=llmaster&provider=google)

 [Gemma 3N E4B Instruct](/models/google/google-gemma-3n-e4b-it)

![Qwen: Qwen3.5-35B-A3B API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/423cde91-8e31-4daf-952c-3fcb8a2c8256.png)

[Alibaba Cloud](/models/alibaba_cloud)

 [Qwen: Qwen3.5-35B-A3B](/models/alibaba_cloud/qwen-qwen3.5-35b-a3b)

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[#### Mistral AI/Mistral Small (24B) Instruct 25.01

mistralai-Mistral-Small-24B-Instruct-2501

From $0.25/M tokens](/models/mistralai/mistralai-mistral-small-24b-instruct-2501)

[#### inclusionAI/inclusionAI: Ling 3.2 Air

inclusionai-ling-3.2-air

From $0.9375/M tokens](/models/inclusionai/inclusionai-ling-3.2-air)

[#### Qwen/Qwen: Qwen3 Coder Flash

qwen-qwen3-coder-flash

From $0.73125/M tokens](/models/qwen/qwen-qwen3-coder-flash)

[#### Qwen/Qwen: Qwen3 VL 235B A22B Instruct

qwen-qwen3-vl-235b-a22b-instruct

From $1.31875/M tokens](/models/qwen/qwen-qwen3-vl-235b-a22b-instruct)

[#### Anthropic/Anthropic: Claude Sonnet 4.5

anthropic-claude-sonnet-4.5

From $11.25/M tokens](/models/anthropic/anthropic-claude-sonnet-4.5)

[#### DeepSeek/DeepSeek V3-0324

deepseek-ai-DeepSeek-V3

From $0.60625/M tokens](/models/deepseek/deepseek-ai-deepseek-v3)

[#### MiniMax/MiniMax: MiniMax M2.5

minimax-minimax-m2.5

From $0.9375/M tokens](/models/minimax/minimax-minimax-m2.5)

[#### Arcee AI/Arcee AI Spotlight

arcee\_ai-arcee-spotlight

From $0.27/M tokens](/models/arcee-ai/arcee_ai-arcee-spotlight)

[#### Marin/Marin 8B Instruct

marin-community-marin-8b-instruct

From $0.27/M tokens](/models/marin/marin-community-marin-8b-instruct)

[#### NVIDIA/NVIDIA: Nemotron 3 Nano 30B A3B

nvidia-nemotron-3-nano-30b-a3b

From $0.1875/M tokens](/models/nvidia/nvidia-nemotron-3-nano-30b-a3b)

[#### Meta/Meta Llama 3 70B Instruct Turbo

meta-llama-Meta-Llama-3-70B-Instruct-Turbo

From $1.10/M tokens](/models/meta/meta-llama-meta-llama-3-70b-instruct-turbo)

[#### Mistral AI/Mistral (7B) Instruct

mistralai-Mistral-7B-Instruct-v0.1

From $0.25/M tokens](/models/mistralai/mistralai-mistral-7b-instruct-v0.1)

[#### Anthropic/Anthropic: Claude Opus 4.1

anthropic-claude-opus-4.1

From $56.25/M tokens](/models/anthropic/anthropic-claude-opus-4.1)

[#### DeepSeek/DeepSeek R1 Distill Qwen 1.5B

deepseek-ai-DeepSeek-R1-Distill-Qwen-1.5B

From $0.225/M tokens](/models/deepseek/deepseek-ai-deepseek-r1-distill-qwen-1.5b)

[#### OpenAI/OpenAI: GPT-5.4

openai-gpt-5.4

From $10.9375/M tokens](/models/openai/openai-gpt-5.4)

[#### Google/Gemma-2 Instruct (27B)

google-gemma-2-27b-it

From $0.8125/M tokens](/models/google/google-gemma-2-27b-it)

[#### Refuel AI/Refuel LLM V2

togethercomputer-Refuel-Llm-V2

From $0.90/M tokens](/models/refuel_ai/togethercomputer-refuel-llm-v2)

[#### Meta/Meta Llama 3.2 90B Vision Instruct Turbo

meta-llama-Llama-3.2-90B-Vision-Instruct-Turbo

From $1.80/M tokens](/models/meta/meta-llama-llama-3.2-90b-vision-instruct-turbo)

About StepFun: Step 5
---

Step 5 is StepFun’s latest flagship model for agentic work, built on a sparse Mixture-of-Experts (MoE) architecture with 27B active and 600B total parameters. Compared with Step 5 Preview, it...

### StepFun: Step 5 facts

ProviderStepFun

Input price$1.25 per 1M tokens

Output price$3.375 per 1M tokens

Context length1,000,000 tokens

Max output64,000 tokens

Input / outputtext, image, video → text

Added to ModelsLabNovember 30, 2026

Model IDstepfun-step-5

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate StepFun: Step 5 into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<div>import requests</div>
<div>import json</div>
<div>
</div>
<div>url = "https://modelslab.com/api/v7/llm/chat/completions"</div>
<div>
</div>
<div>headers = {</div>
<div>    "Content-Type": "application/json"</div>
<div>}</div>
<div>
</div>
<div>data = {</div>
<div>        "model_id": "stepfun-step-5",</div>
<div>        "messages": [</div>
<div>            {</div>
<div>                "role": "user",</div>
<div>                "content": "Hello!"</div>
<div>            }</div>
<div>        ],</div>
<div>        "max_tokens": 1000,</div>
<div>        "key": "YOUR_API_KEY"</div>
<div>    }</div>
<div>
</div>
<div>try:</div>
<div>    response = requests.post(url, headers=headers, json=data)</div>
<div>    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)</div>
<div>    result = response.json()</div>
<div>    print("API Response:")</div>
<div>    print(json.dumps(result, indent=2))</div>
<div>except requests.exceptions.HTTPError as http_err:</div>
<div>    print(f"HTTP error occurred: {http_err} - {response.text}")</div>
<div>except Exception as err:</div>
<div>    print(f"Other error occurred: {err}")</div>
```

const requestBody = {

 "model_id": "stepfun-step-5",

 "messages": [

 {

 "role": "user",

 "content": "Hello!"

 }

 ],

 "max_tokens": 1000,

 "key": "YOUR_API_KEY"

 };

async function makeApiRequest() {

 try {

 const response = await fetch(endpointUrl, {

 method: 'POST',

 headers: {

 'Content-Type': 'application/json',

 },

 body: JSON.stringify(requestBody)

 });

 if (!response.ok) {

 let errorResult;

 try {

 errorResult = await response.json();

 } catch (e) {

 errorResult = { error: { message: await response.text() } };

 }

 throw new Error(`API Error (${response.status}): ${errorResult.error?.message || response.statusText || 'Unknown error'}`);

 }

 const result = await response.json();

 console.log('API Response:', result);

 return result;

 } catch (error) {

 console.error('Error making API request:', error.message);

 throw error;

 }

}

makeApiRequest();

 -H "Content-Type: application/json" \

 -d '{

 "model_id": "stepfun-step-5",

 "messages": [

 {

 "role": "user",

 "content": "Hello!"

 }

 ],

 "max_tokens": 1000,

 "key": "YOUR_API_KEY"

}'

$url = 'https://modelslab.com/api/v7/llm/chat/completions';

$headers = [

 'Content-Type: application/json'

];

$data = [

 'model_id' => 'stepfun-step-5',

 'messages' => [{"role":"user","content":"Hello!"}],

 'max_tokens' => 1000,

 'key' => 'YOUR_API_KEY',

];

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);

curl_setopt($ch, CURLOPT_POST, true);

curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));

curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

curl_setopt($ch, CURLOPT_TIMEOUT, 30);

$response = curl_exec($ch);

$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);

$curlError = curl_error($ch);

if ($curlError) {

 echo 'Curl error: ' . $curlError;

} else {

 echo "HTTP Status Code: " . $httpCode . "\n";

 $result = json_decode($response, true);

 if (json_last_error() !== JSON_ERROR_NONE) {

 echo "Error decoding JSON: " . json_last_error_msg() . "\n";

 echo "Raw response: " . $response . "\n";

 } else {

 echo "API Response:\n";

 print_r($result);

 }

}

?>

### Pricing

StepFun: Step 5 API costs $1.85 per million tokens. Open Source Unlimited is $149/month, and open-source models are unlimited on the $149/month plan. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

### More from StepFun

[All StepFun models](/models?feature=llmaster&provider=stepfun)

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [View Pricing](https://modelslab.com/pricing)

StepFun: Step 5 FAQ
---

### What is StepFun: Step 5?

Step 5 is StepFun’s latest flagship model for agentic work, built on a sparse Mixture-of-Experts (MoE) architecture with 27B active and 600B total parameters. Compared with Step 5 Preview, it...

### How do I use the StepFun: Step 5 API?

You can integrate StepFun: Step 5 into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "stepfun-step-5" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does StepFun: Step 5 cost?

StepFun: Step 5 costs $1.25/1M input, $3.375/1M output tokens. The Open Source Unlimited plan is $149/month and includes unlimited generation on open-source models.

### What is the StepFun: Step 5 model ID?

The model ID for StepFun: Step 5 is "stepfun-step-5". Use this ID in your API requests to specify this model.

### Do I need a paid plan to use StepFun: Step 5?

Yes. ModelsLab is subscription-based with no free tier. The $149/month Open Source Unlimited plan includes unlimited generation across open-source models; premium third-party models are billed per call from your wallet.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-12-01*