Skip to main content

Step Plan

Dedicated coding lanes that keep coding quota, pricing, or route ownership separate from the general assistant lane. This page covers the built-in step_plan provider kind directly.

At A Glance

FieldValue
Built-in kindstep_plan
Provider groupCoding-Specialized Providers
Protocol familyopenai_chat_completions
Feature familyopenai_compatible
Auth schemebearer
Credential envsSTEP_API_KEY
Aliasesstepfun_step_plan
Default base URLhttps://api.stepfun.com
Request endpointhttps://api.stepfun.com/step_plan/v1/chat/completions
Models endpointhttps://api.stepfun.com/step_plan/v1/models

Minimal Config

active_provider = "step_plan"

[providers.step_plan]
kind = "step_plan"
api_key = { env = "STEP_API_KEY" }
model = "your-reviewed-coding-model"

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/step_plan/v1/chat/completions
Primary model-catalog routehttps://api.stepfun.com/step_plan/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