Add provider: Byesu (AI API gateway)#3213
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>
Action items
|
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Action items
|
|
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! |
- Add [cost] with byesu's actual per-1M-token pricing to all 8 model files. AGENTS.md marks cost as required and it is not inherited via base_model, so the entries previously resolved with no pricing at all. - Set reasoning_options = [] on every model. The gateway's forwarding of the upstream effort values is not documented, and per the audit guidance an option must not be declared merely because the upstream provider exposes it. This matches the comparable gateway provider `unorouter`. - Add structured_output to claude-opus-4-8 for consistency with claude-sonnet-5 (both pass through to the same upstream API). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Thanks for the detailed review — all three action items are addressed in 52ca4af. [high] [medium] required One thing I should be transparent about on sourcing: byesu computes per-model price as [low] |
Action items
|
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.