Skip to main content

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.

Reasoning and multimodal models

  • step-3.7-flash: flagship multimodal reasoning model. Native image and video understanding, three reasoning effort levels (low/medium/high) — well-suited to agent, coding, and multimodal workloads.
  • step-3.5-flash: flagship language reasoning model. Top-tier reasoning quality with fast, reliable execution — suitable for logical reasoning, math, software engineering, and deep research.

Image generation

  • step-image-edit-2: unified text-to-image and image-editing model; a single edit completes in 1-2 seconds.

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:

SDK migration guide

OpenAI Python SDK

Replace api_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

Replace apiKey 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, update openai_api_key, openai_api_base, and model_name in ChatOpenAI to switch to Stepfun.
copy

LangChain.js

For LangChain.js, update modelName, openAIApiKey, and basePath when initializing ChatOpenAI.