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.
Prerequisites
Stepfun models support both personal and enterprise use. Create an API key in the console and call with that key. For quick evaluation, you can also try models directly in the Experience Center.Model selection
Stepfun offers multiple model families. Choose the counterpart that best matches what you use today.Text models
- Step 2: trillion-parameter model, strong at reasoning, Chinese tasks, and creative generation.
- Step 1: hundred-billion-parameter model, strong at reasoning, multi-turn instruction following, and long context.
- Step 1 Flash: high-speed language model for general tasks with low latency and fast output.
Vision understanding models
- Step 1V: hundred-billion-parameter vision model with strong multi-turn instruction following and precise recognition.
Image generation
- Step 1X: text-to-image model for general scenarios with accurate rendering.
API compatibility
Stepfun models are compatible with the OpenAI API spec. You can call them directly via the OpenAI SDK. If your app already uses an OpenAI SDK, migration requires minimal changes. Supported OpenAI-compatible APIs:- Chat Completion
- Upload file
- List files
- Retrieve file info
- Retrieve file content
- Delete file
- List models
- Retrieve a model
- Generate images
SDK migration guide
OpenAI Python SDK
Replaceapi_key with your Stepfun API key and add base_url="https://api.stepfun.ai/v1". Set the model name to a Stepfun model.
copy
OpenAI TypeScript SDK
ReplaceapiKey with your Stepfun API key and add baseURL: "https://api.stepfun.ai/v1". Set the model name to a Stepfun model.
copy
LangChain
When using LangChain, updateopenai_api_key, openai_api_base, and model_name in ChatOpenAI to switch to Stepfun.
copy
LangChain.js
For LangChain.js, updatemodelName, openAIApiKey, and basePath when initializing ChatOpenAI.