Add AIgateway provider (84 text & vision models)#1569
Open
Rakesh1002 wants to merge 1 commit intoanomalyco:devfrom
Open
Add AIgateway provider (84 text & vision models)#1569Rakesh1002 wants to merge 1 commit intoanomalyco:devfrom
Rakesh1002 wants to merge 1 commit intoanomalyco:devfrom
Conversation
AIgateway (https://aigateway.sh) is a universal inference API that aggregates 100+ AI models across every modality behind a single OpenAI-compatible endpoint. Users reach it at api.aigateway.sh/v1. This PR adds: - providers/aigateway/provider.toml (OpenAI-compatible, @ai-sdk/openai-compatible) - providers/aigateway/logo.svg (currentColor, theme-safe SVG) - 84 model TOMLs across text + vision modalities (chat + attachment) covering Anthropic, OpenAI, Google, Meta, Mistral, xAI, Moonshot, DeepSeek, Microsoft, Alibaba Qwen, IBM Granite, Perplexity, NVIDIA, MiniMax, and more. Notes for reviewers: - A subset of community HuggingFace models default release_date to 2024-01-01 where the upstream catalog does not track it. Happy to amend via a follow-up if the project prefers to omit them. - Audio (STT/TTS), image, video, embedding, translation, and rerank models from the aigateway catalog are deliberately NOT included because the current models.dev schema targets chat models. If/when the schema grows to cover them I'll send a follow-up PR. Source of truth: web/src/lib/catalog.generated.json in the aigateway repo. Regeneration is one command (`node scripts/build-modelsdev-pr.mjs`) so we can keep this entry fresh as we update pricing and add models.
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.
Summary
Adds AIgateway (aigateway.sh) as a provider. AIgateway is a universal, OpenAI-compatible inference API that aggregates 100+ AI models across every modality, reached at
api.aigateway.sh/v1.This PR contributes:
providers/aigateway/provider.toml— OpenAI-compatible (@ai-sdk/openai-compatible),env = ["AIGATEWAY_API_KEY"], doc:https://aigateway.sh/modelsproviders/aigateway/logo.svg— theme-safe SVG usingcurrentColorTesting
tomlliblocally.name,family,release_date,last_updated,attachment,reasoning,tool_call,structured_output,temperature,open_weights,[cost](input/output in USD/Mtok),[limit](context/input/output),[modalities].Notes for reviewers
release_dateto2024-01-01where the upstream catalog does not track a specific date. Happy to tighten those in a follow-up if you'd prefer strict dates only.aigatewaycatalog also includes audio (STT/TTS), image, video, embedding, translation, rerank, classification and OCR models. Those are not included here because the currentmodels.devschema targets chat models. If/when the schema grows to cover other modalities, I'll send a follow-up.providers/openrouter,providers/helicone,providers/requesty,providers/llmgateway,providers/fastrouter. We register as a provider rather than duplicating canonical entries. Happy to convert everything to[extends]in a follow-up if that's preferred.Thanks for maintaining this — AIgateway relies on the models.dev JSON feed for our own catalog page and we want to contribute back. 🙏