Skip to content

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預設標準模型

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 onboarding

    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 model: 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,
},
],
},
},
},
}
完整設定: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

` 來檢查或切換模型。

模型選擇

所有供應商、模型參照和故障轉移行為的概覽。

設定參考

供應商、模型和外掛程式的完整設定架構。

模型選擇

如何選擇和設定模型。

StepFun 平台

StepFun API 金鑰管理和文件。