feat(stepfun-ai): add international StepFun platform#1814
Merged
Conversation
StepFun runs two separate platforms with distinct accounts/keys: platform.stepfun.com (China, already covered by providers/stepfun) and platform.stepfun.ai (international). Keys are not interchangeable across the two — .ai keys are rejected by api.stepfun.com as invalid_api_key. Stepfun's own opencode integration guide instructs users to point at https://api.stepfun.ai/step_plan/v1. This adds providers/stepfun-ai for that endpoint, symlinking the shared chat models. Follows the moonshotai / moonshotai-cn pattern.
Collaborator
|
are we certain they are different? I only see 1 plan in those docs |
Contributor
Author
|
hey, thanks for taking a look. they are two different platforms, not two plans. step plan is just one subscription, but it only exists on the .ai side. stepfun's own opencode docs confirm the split : https://platform.stepfun.ai/docs/en/step-plan/integrations/open-code
so a key from platform.stepfun.ai cannot authenticate against api.stepfun.com, and that is what this PR is trying to address. let me know if you want me to change anything |
msullivan
added a commit
to vercel-labs/modelsdotdev-python
that referenced
this pull request
May 29, 2026
…#5) models.dev added a second provider named "StepFun": anomalyco/models.dev#1814 We could consider suggesting upstream that they disambiguate the names but this PR will fix us.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
StepFun runs two platforms with separate accounts:
platform.stepfun.com(already covered byproviders/stepfun) andplatform.stepfun.ai. Keys are not interchangeable —.aikeys get rejected byapi.stepfun.comasinvalid_api_key.Stepfun's Open Code integration guide tells users to point opencode at
https://api.stepfun.ai/step_plan/v1. This addsproviders/stepfun-aifor that endpoint and symlinks the shared chat models. Same shape asmoonshotai-cn.Verification
With a live
.aikey:End-to-end against opencode with
provider.stepfun.options.baseURL = "https://api.stepfun.ai/step_plan/v1":