Step 5 Preview

StepFun's open-weight Step 5 Preview for agents and coding: text and image input, a 262K-token context and function tools.

Step 5 Preview (StepFun) is StepFun's open-weight Step 5 Preview, a 600B mixture-of-experts model for agents and coding. Send a prompt, or a chat history in messages, and get a text answer; images go in messages as image_url parts. Through the OpenAI-compatible Chat Completions endpoint it also calls your function tools and takes their results back.

A request with function tools is served by a host that takes 262,144 tokens of context and answers up to 32,768 tokens; a request without tools may reach the model's own host, which takes a 1M-token context. Set reasoning_effort to low, medium or high (medium when you send none); system_prompt and max_tokens work as usual. Set private_mode to true to keep the prompt and the answer out of FlyMyAI storage and logs (synchronous calls only).

Price per 1M tokens: $1.00 input, $0.10 cached input, $2.70 output. Reasoning counts as output. It answers in text only: use the image, video and audio models to create media.

Price: $1.00 per 1M input tokens, $2.70 per 1M output tokens, cached input $0.10 per 1M.

Run Step 5 Preview via API

curl -X POST https://api.flymy.ai/api/v1/flymyai/step-5-preview/predict \
  -H "X-API-KEY: $FLYMYAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"Explain in two sentences why the sky is blue."}'

OpenAI-compatible API

Step 5 Preview also speaks the OpenAI Chat Completions protocol: use the official OpenAI SDK with base URL https://api.flymy.ai/api/v1/flymyai/step-5-preview/openai/v1 and your FlyMy.AI API key.

import os
from openai import OpenAI

client = OpenAI(base_url="https://api.flymy.ai/api/v1/flymyai/step-5-preview/openai/v1", api_key=os.environ["FLYMYAI_API_KEY"])
response = client.chat.completions.create(
    model="flymyai/step-5-preview",
    messages=[{"role": "user", "content": "What is a vector database?"}],
)
print(response.choices[0].message.content)

OpenAI-compatible API docs

API documentation · Create a free account · Pricing

Related models