跳转到内容

StepFun

OpenClaw 包含一个捆绑的 StepFun 提供商插件,具有两个提供商 ID:

  • stepfun 用于标准端点
  • stepfun-plan 用于 Step Plan 端点

端点中国 (.com)全球 (.ai)
Standardhttps://api.stepfun.com/v1https://api.stepfun.ai/v1
Step Planhttps://api.stepfun.com/step_plan/v1https://api.stepfun.ai/step_plan/v1

认证环境变量: STEPFUN_API_KEY

Standard (stepfun):

模型引用上下文最大输出备注
stepfun/step-3.5-flash262,14465,536默认 Standard 模型

Step Plan (stepfun-plan):

模型引用上下文最大输出备注
stepfun-plan/step-3.5-flash262,14465,536默认 Step Plan 模型
stepfun-plan/step-3.5-flash-2603262,14465,536其他 Step Plan 模型

选择您的提供商界面并按照设置步骤操作。

最佳适用于: 通过标准 StepFun 端点进行通用。

  1. Choose your endpoint region

    Auth choiceEndpointRegion
    stepfun-standard-api-key-intlhttps://api.stepfun.ai/v1International
    stepfun-standard-api-key-cnhttps://api.stepfun.com/v1China
  2. Run 新手引导

    Terminal window
    openclaw onboard --auth-choice stepfun-standard-api-key-intl

    Or for the China endpoint:

    Terminal window
    openclaw onboard --auth-choice stepfun-standard-api-key-cn
  3. Non-interactive alternative

    Terminal window
    openclaw onboard --auth-choice stepfun-standard-api-key-intl \
    --stepfun-api-key "$STEPFUN_API_KEY"
  4. Verify models are available

    Terminal window
    openclaw models list --provider stepfun
  • Default 模型: stepfun/step-3.5-flash
完整配置:标准提供商
{
env: { STEPFUN_API_KEY: "your-key" },
agents: { defaults: { model: { primary: "stepfun/step-3.5-flash" } } },
models: {
mode: "merge",
providers: {
stepfun: {
baseUrl: "https://api.stepfun.ai/v1",
api: "openai-completions",
apiKey: "${STEPFUN_API_KEY}",
models: [
{
id: "step-3.5-flash",
name: "Step 3.5 Flash",
reasoning: true,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 262144,
maxTokens: 65536,
},
],
},
},
},
}
Full config: Step Plan 提供商
{
env: { STEPFUN_API_KEY: "your-key" },
agents: { defaults: { model: { primary: "stepfun-plan/step-3.5-flash" } } },
models: {
mode: "merge",
providers: {
"stepfun-plan": {
baseUrl: "https://api.stepfun.ai/step_plan/v1",
api: "openai-completions",
apiKey: "${STEPFUN_API_KEY}",
models: [
{
id: "step-3.5-flash",
name: "Step 3.5 Flash",
reasoning: true,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 262144,
maxTokens: 65536,
},
{
id: "step-3.5-flash-2603",
name: "Step 3.5 Flash 2603",
reasoning: true,
input: ["text"],
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
contextWindow: 262144,
maxTokens: 65536,
},
],
},
},
},
}
注意
  • 该提供商与 OpenClaw 捆绑在一起,因此无需单独安装插件。
  • step-3.5-flash-2603 目前仅在 stepfun-plan 上公开。
  • 单个身份验证流程会为 stepfunstepfun-plan 写入区域匹配的配置文件,因此可以一起发现这两个服务面。
  • 使用 openclaw models list 和 `openclaw models set

` 检查或切换模型。

模型选择

所有提供商、模型引用和故障转移行为的概述。

Configuration reference

Full config schema for providers, models, and plugins.

Model selection

How to choose and configure models.

StepFun Platform

StepFun API key management and documentation.