From all-skills
Migrate OpenAI-compatible clients to RouterBase, configure model routing plans with fallbacks, and integrate chat, image, video, audio, speech, and embedding workflows.
How this skill is triggered — by the user, by Claude, or both
Slash command
/all-skills:routerbase-model-gatewayThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use [routerbase](https://routerbase.com/) as an OpenAI-compatible model gateway for chat, image, video, audio, speech, and embedding workloads. This skill helps agents migrate existing SDK clients, keep credentials private, choose model IDs, and document safe fallback behavior.
Use routerbase as an OpenAI-compatible model gateway for chat, image, video, audio, speech, and embedding workloads. This skill helps agents migrate existing SDK clients, keep credentials private, choose model IDs, and document safe fallback behavior.
https://routerbase.com/v1.ROUTERBASE_API_KEY as a server-side secret.Use routerbase-model-gateway to migrate this OpenAI chat integration to RouterBase.
Use routerbase-model-gateway to design a fallback model plan for low-latency support chat.
Use routerbase-model-gateway to add image and video generation with safe polling and storage.
Prefer the user's existing OpenAI-compatible SDK. Change the base URL, store the API key in environment configuration, and keep request payloads standard.
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.ROUTERBASE_API_KEY,
baseURL: process.env.ROUTERBASE_BASE_URL || "https://routerbase.com/v1",
});
const response = await client.chat.completions.create({
model: "google/gemini-2.5-flash",
messages: [{ role: "user", content: "Write one sentence about model routing." }],
});
When recommending models, return a table like this:
| Use case | Primary model | Fallback model | Reason | Validation |
| --- | --- | --- | --- | --- |
| Support chat | model-id | model-id | Low latency and tool support | Run fixture prompts and compare output shape |
Treat model IDs, pricing, and availability as live data. If a live catalog check is not possible, mark examples clearly and tell the user what must be verified before production.
ROUTERBASE_API_KEY, wrong environment, or server-side secret not loaded./v1, wrong media endpoint, or client still pointing at another provider.response_format or no downstream schema validation.Return:
npx claudepluginhub davepoon/buildwithclaude --plugin all-skillsProvides an OpenAI-compatible interface to RouterBase for routing GPT, Claude, Gemini, media, audio, and embedding requests through a single API.
Model routing configuration templates and strategies for cost optimization, speed optimization, quality optimization, and intelligent fallback chains. Use when building AI applications with OpenRouter, implementing model routing strategies, optimizing API costs, setting up fallback chains, implementing quality-based routing, or when user mentions model routing, cost optimization, fallback strategies, model selection, intelligent routing, or dynamic model switching.
Configures automatic model fallbacks on OpenRouter with native server-side fallback, provider routing, and client-side chains for high availability.