Skip to main content

StepFun

Use this when your team already runs on StepFun and you want that vendor family to stay explicit in Loong config instead of disappearing behind a generic compatibility route.

At A Glance

FieldValue
Built-in kindstepfun
Provider groupDirect Hosted Providers
Protocol familyopenai_chat_completions
Feature familyopenai_compatible
Auth schemebearer
Credential envsSTEP_API_KEY
Aliasesstepfun_compatible
Default base URLhttps://api.stepfun.com
Request endpointhttps://api.stepfun.com/v1/chat/completions
Models endpointhttps://api.stepfun.com/v1/models

Minimal Config

active_provider = "stepfun"

[providers.stepfun]
kind = "stepfun"
api_key = { env = "STEP_API_KEY" }
model = "auto"

Verify It

loong doctor
loong list-models
loong ask --message "Say hello and name the active provider."
If list-models is unreliable for this account or region, pin an explicit provider.model or add preferred_models instead of leaving recovery implicit.

Auth And Routing Contract

ContractValue
Auth optionalno
Model probe auth optionalno
Default API key envSTEP_API_KEY
OAuth envnone
Primary request routehttps://api.stepfun.com/v1/chat/completions
Primary model-catalog routehttps://api.stepfun.com/v1/models

Region Endpoints

VariantBase URL
CNhttps://api.stepfun.com
Globalhttps://api.stepfun.ai
Stepfun region endpoint: CN default (https://api.stepfun.com); switch provider.base_url to https://api.stepfun.ai for Global accounts