Point the OpenAI SDK at RouterBase in a few minutes RouterBase offers an OpenAI-compatible endpoint that lets developers switch routing layers by changing only the base URL, API key, and model ID in their existing client code. A developer demonstrates how to configure the OpenAI SDK to point at RouterBase's endpoint, enabling quick testing of different models like Google's Gemini 2.5 Flash without altering the application's core logic. If your application already uses OpenAI-style chat-completions calls, the lowest-friction way to test another routing layer is to keep the client code familiar and change only the base URL, API key, and model id. RouterBase https://routerbase.com is designed for that kind of experiment. It exposes an OpenAI-compatible endpoint at https://routerbase.com/v1 , so existing SDK setup can stay close to what developers already know. ROUTERBASE API KEY=your routerbase key ROUTERBASE BASE URL=https://routerbase.com/v1 ROUTERBASE MODEL=google/gemini-2.5-flash Keeping the model in configuration makes it easier to compare providers later without editing the application path that calls the model. python 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 completion = await client.chat.completions.create { model: process.env.ROUTERBASE MODEL || "google/gemini-2.5-flash", messages: { role: "user", content: "Write a one-paragraph changelog entry for a developer tool." } } ; console.log completion.choices 0 ?.message?.content ; Before using the setup in a production workflow, run a short checklist: