Add provider: Byesu (AI API gateway)#3213
Open
amdmsz wants to merge 2 commits into
Open
Conversation
Adds byesu.com as a provider with its on-sale text models, inheriting canonical metadata via base_model. Includes a currentColor logo and reasoning_options per AGENTS.md. Serves an OpenAI-compatible endpoint plus an Anthropic-native Messages API from the same host. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
Action items
|
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
Action items
|
Author
|
Friendly ping 🙂 CI is green (review + validate both pass) and the PR is mergeable — one provider.toml + logo + 8 model tomls (base_model inheritance). Happy to adjust anything that would help it land. Thanks for maintaining models.dev! |
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.
Add provider: Byesu (AI API gateway)
Summary
This PR adds Byesu (byesu.com) as a new provider, along with its currently available text models.
Byesu is an AI API gateway / aggregation platform that serves official models from multiple upstream vendors behind a single API key, with pay-as-you-go billing (no subscription required).
Endpoints
Byesu exposes two API surfaces from the same host, using the same
Authorization: Bearer <token>credential:https://byesu.com/v1(/v1/chat/completions,/v1/models, etc.). This is the endpoint declared inprovider.tomlvianpm = "@ai-sdk/openai-compatible"+api.https://byesu.com/v1/messages, for clients that speak the Anthropic wire format directly (noted as a comment inprovider.toml, since the schema supports a singlenpm/apipair).Documentation: https://docs.byesu.com/en/ (models, client setup, error codes).
What's included
providers/byesu/provider.tomlproviders/byesu/models/, all inheriting canonical metadata viabase_modelto avoid duplication:claude-opus-4-8,claude-sonnet-5gpt-5.6-sol,gpt-5.6-terra,gpt-5.6-luna,gpt-5.5grok-4.5gemini-3.1-pro(maps to the upstream catalog entrygoogle/gemini-3.1-pro-preview; Byesu serves it under the stable id)Each entry adds
reasoning_optionsmirroring the upstream provider's supported effort levels, since these pass through the gateway unchanged.Notes on
[cost]costis omitted (it is optional in the schema). Byesu's usage-based pricing is displayed in its console and docs and tracks the upstream vendors' official list rates; rather than hard-coding numbers that could drift, we prefer to leave the field unset. Happy to add cost tables if maintainers consider them required for listing — please let us know the preferred convention for gateways in that case.Verification
https://byesu.com/api/pricing, checked 2026-07-11).base_modeltarget was confirmed to exist in this repo'smodels/tree, so all entries inherit canonical metadata cleanly.AGENTS.md(provider needs acurrentColorsquare-viewBox logo — included; reasoning models declarereasoning_options— done).bun run validatewas not run locally — please flag anything CI catches and I'll fix it promptly. Likewise, happy to trim any model a maintainer finds unreachable from their own key.