Add RodiumAi provider to Models.dev with 18 coding models #1856
Open
rodiumai wants to merge 6 commits into
Open
Add RodiumAi provider to Models.dev with 18 coding models #1856rodiumai wants to merge 6 commits into
rodiumai wants to merge 6 commits into
Conversation
RodiumAi exposes an **OpenAI-compatible** API at `https://api.rodiumai.io/v1`. Model IDs in this PR match the slugs returned by `GET /v1/models` on the live gateway.
Add RodiumAi as an OpenAI-compatible gateway (api.rodiumai.io) with smart routing tiers (auto, fast, basic, pro, max) and proxied upstream models. Register the rodium-smart model family and add required release_date and last_updated fields so bun validate passes in CI.
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.
This PR adds the RodiumAi provider to models.dev so OpenCode users can select RodiumAi models with correct metadata (costs, context limits, tool calling, reasoning flags).
RodiumAi exposes an OpenAI-compatible API at
https://api.rodiumai.io/v1. Model IDs in this PR match the slugs returned byGET /v1/modelson the live gateway.What's included
providers/rodiumai/provider.tomlRODIUMAI_API_KEY,@ai-sdk/openai-compatible, API + docs URLs)providers/rodiumai/logo.svgproviders/rodiumai/models/**/*.tomltool_call = true, text in/out)No monolithic
api.jsonedit — follows the current one TOML per model layout (same pattern as Groq, OpenRouter, etc.).Models (18)
Smart routing (RodiumAi profiles)
autobasicfastpromaxVendor slugs (passthrough to upstream)
anthropic/claude-opus-4-7,anthropic/claude-sonnet-4-6,anthropic/claude-haiku-4-5-20251001openai/gpt-5.5,openai/gpt-5.4,openai/gpt-5.4-mini,openai/o3google/gemini-3.5-flash,google/gemini-3.1-pro-preview,google/gemini-2.5-flash,google/gemini-2.5-prodeepseek/deepseek-v4-pro,deepseek/deepseek-v4-flashScope: coding assistants only — no image/video/embedding models. Smart-profile pricing is documented in TOML; vendor pricing is sourced from RodiumAi's public catalog scrapes (USD per 1M tokens, optional cache read/write where applicable).
Provider configuration
How users enable it (after merge)
export RODIUMAI_API_KEY=sk-... opencode auth login opencode --model rodiumai/pro opencode --model rodiumai/google/gemini-2.5-flashMaintenance
Manifest and generator live in the RodiumAi monorepo (not required for this PR to merge):
rodiumai_docs/opencode/rodiumai-curated-models.jsoncd rodiumai_nestjs && npm run models-dev:generateFuture model additions should keep slug parity with
GET https://api.rodiumai.io/v1/models.Test plan
bun run validate(or project-equivalent) passes forproviders/rodiumai/**packages/weband confirmrodiumaiappears in_api.jsonopencode --model rodiumai/autocompletes a tool-capable chat turnrodiumai/anthropic/claude-sonnet-4-6) works end-to-endpro,gpt-5.5,gemini-2.5-flash)Links