Add WRouter provider - #3897
Open
Jaykebc1 wants to merge 3 commits into
Open
Conversation
WRouter (https://wrouter.ai) is an OpenAI-compatible AI gateway. Adds the provider plus 12 headline models referencing canonical base models, with WRouter's per-model pricing.
Contributor
Action items
|
Contributor
Action items
|
…icing - logo.svg: use currentColor only (no hardcoded brand colors), square viewBox. - reasoning_options: GPT-5/mini/nano expose OpenAI reasoning_effort; Claude/ Gemini via the OpenAI-compatible gateway left as [] (control not verified). - Pricing is WRouter's own list price (see PR body).
Contributor
Action items
|
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.
Adds WRouter, an OpenAI-compatible AI gateway.
Provider
https://wrouter.ai/v1(OpenAI-compatible), envWROUTER_API_KEY,@ai-sdk/openai-compatible.currentColoronly.Models
12 headline models referencing canonical
base_models (Anthropic Claude, OpenAI GPT, Google Gemini).Pricing
Prices are WRouter's own list prices, taken from WRouter's public pricing API (https://wrouter.ai/api/pricing) and shown on https://wrouter.ai/pricing . As a gateway, WRouter sets its own USD rates, so some differ from the upstream providers' list prices (e.g.
gemini-2.5-prooutput is $5/M on WRouter). Values verified:claude-sonnet-5$3/$15,claude-opus-4-8$5/$25,gpt-4o$2.5/$10,gpt-4o-mini$0.15/$0.60, matching the underlying models.Reasoning controls
reasoning_effort(minimal|low|medium|high), passed through the OpenAI-compatible endpoint.reasoning_options = []— reasoning-control mapping through the OpenAI-compatible gateway is not yet documented per-model; will add once verified against WRouter's API docs.