Langsung ke konten utama

StepFun

OpenClaw menyertakan Plugin provider StepFun bawaan dengan dua id provider:
  • stepfun untuk endpoint standar
  • stepfun-plan untuk endpoint Step Plan
Standard dan Step Plan adalah provider yang terpisah dengan endpoint dan prefiks model ref yang berbeda (stepfun/... vs stepfun-plan/...). Gunakan key China dengan endpoint .com dan key global dengan endpoint .ai.

Ringkasan region dan endpoint

EndpointChina (.com)Global (.ai)
Standardhttps://api.stepfun.com/v1https://api.stepfun.ai/v1
Step Planhttps://api.stepfun.com/step_plan/v1https://api.stepfun.ai/step_plan/v1
Auth env var: STEPFUN_API_KEY

Katalog bawaan

Standard (stepfun):
Model refKonteksOutput maksCatatan
stepfun/step-3.5-flash262,14465,536Model standar default
Step Plan (stepfun-plan):
Model refKonteksOutput maksCatatan
stepfun-plan/step-3.5-flash262,14465,536Model Step Plan default
stepfun-plan/step-3.5-flash-2603262,14465,536Model Step Plan tambahan

Memulai

Pilih surface provider Anda dan ikuti langkah setup.
Paling cocok untuk: penggunaan umum melalui endpoint StepFun standar.
1

Pilih region endpoint Anda

Pilihan authEndpointRegion
stepfun-standard-api-key-intlhttps://api.stepfun.ai/v1Internasional
stepfun-standard-api-key-cnhttps://api.stepfun.com/v1China
2

Jalankan onboarding

openclaw onboard --auth-choice stepfun-standard-api-key-intl
Atau untuk endpoint China:
openclaw onboard --auth-choice stepfun-standard-api-key-cn
3

Alternatif non-interaktif

openclaw onboard --auth-choice stepfun-standard-api-key-intl \
  --stepfun-api-key "$STEPFUN_API_KEY"
4

Verifikasi bahwa model tersedia

openclaw models list --provider stepfun

Model ref

  • Model default: stepfun/step-3.5-flash

Lanjutan

{
  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,
          },
        ],
      },
    },
  },
}
{
  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,
          },
        ],
      },
    },
  },
}
  • Provider ini dibundel dengan OpenClaw, jadi tidak ada langkah instalasi Plugin terpisah.
  • step-3.5-flash-2603 saat ini hanya diekspos pada stepfun-plan.
  • Satu flow auth menulis profil yang cocok dengan region untuk stepfun dan stepfun-plan, sehingga kedua surface dapat ditemukan bersama.
  • Gunakan openclaw models list dan openclaw models set <provider/model> untuk memeriksa atau mengganti model.
Untuk ikhtisar provider yang lebih luas, lihat Provider model.

Terkait

Provider model

Ikhtisar semua provider, model ref, dan perilaku failover.

Referensi konfigurasi

Schema config lengkap untuk provider, model, dan Plugin.

Pemilihan model

Cara memilih dan mengonfigurasi model.

Platform StepFun

Pengelolaan API key dan dokumentasi StepFun.