Skip to content

StepFun

OpenClaw 包含一個捆綁的 StepFun 提供者插件,具有兩個提供者 ID:

  • stepfun 用於標準端點
  • stepfun-plan 用於 Step Plan 端點

內建目錄目前因介面而異:

  • 標準:step-3.5-flash
  • Step Plan:step-3.5-flashstep-3.5-flash-2603
  • 中國標準端點:https://api.stepfun.com/v1
  • 全球標準端點:https://api.stepfun.ai/v1
  • 中國 Step Plan 端點:https://api.stepfun.com/step_plan/v1
  • 全球 Step Plan 端點:https://api.stepfun.ai/step_plan/v1
  • Auth 環境變數:STEPFUN_API_KEY

.com 端點使用中國金鑰,在 .ai 端點使用全球金鑰。

互動式設定:

Terminal window
openclaw onboard

選擇其中一個驗證選項:

  • stepfun-standard-api-key-cn
  • stepfun-standard-api-key-intl
  • stepfun-plan-api-key-cn
  • stepfun-plan-api-key-intl

非互動式範例:

Terminal window
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"
  • 標準預設模型:stepfun/step-3.5-flash
  • Step Plan 預設模型:stepfun-plan/step-3.5-flash
  • Step Plan 替代模型:stepfun-plan/step-3.5-flash-2603

標準 (stepfun):

模型參考上下文最大輸出備註
stepfun/step-3.5-flash262,14465,536預設標準模型

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 模型

標準提供者:

{
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 提供者:

{
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 listopenclaw models set <provider/model> 來檢查或切換模型。
  • 如需更廣泛的提供者概覽,請參閱 Model providers