Skip to content

阶跃星辰(StepFun)

OpenClaw 内置 StepFun Provider,包含两个独立 Provider ID:

  • stepfun:标准端点
  • stepfun-plan:Step Plan 端点

端点与地区

路径中国区端点国际区端点
标准https://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。中国区 Key 对应 .com 端点,国际区 Key 对应 .ai 端点。

快速开始

交互式:

bash
openclaw onboard

选择以下认证选项之一:

  • stepfun-standard-api-key-cn(国内标准版)
  • stepfun-standard-api-key-intl(国际标准版)
  • stepfun-plan-api-key-cn(国内 Step Plan)
  • stepfun-plan-api-key-intl(国际 Step Plan)

非交互式:

bash
openclaw onboard --auth-choice stepfun-standard-api-key-intl --stepfun-api-key "$STEPFUN_API_KEY"
openclaw onboard --auth-choice stepfun-plan-api-key-intl --stepfun-api-key "$STEPFUN_API_KEY"

一次认证会同时写入 stepfunstepfun-plan 两个 Provider 的配置档案。

内置模型目录

标准 stepfun

模型上下文窗口最大输出
stepfun/step-3.5-flash262,14465,536

Step Plan stepfun-plan

模型上下文窗口最大输出
stepfun-plan/step-3.5-flash262,14465,536
stepfun-plan/step-3.5-flash-2603262,14465,536

step-3.5-flash-2603 目前仅在 stepfun-plan 端点可用。

手动配置示例

标准版:

json5
{
  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,
          },
        ],
      },
    },
  },
}

Step Plan 版:

json5
{
  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,
          },
        ],
      },
    },
  },
}

延伸阅读