Skip to content
Rapid Router
Quickstart

Frameworks and SDKs

The OpenAI SDKs, LangChain, the Vercel AI SDK and any tool with a custom base URL work after two changes.

Rapid Router speaks the standard chat completions API, so anything built against it works by changing two values: the base URL and the model string. No adapter, no SDK of ours to install.

The same holds for LlamaIndex, Instructor, Continue, Cline, Open WebUI and anything else that lets you set a custom base URL. When a tool asks for an "OpenAI API key" it means a key for that request shape - give it a Rapid Router key.

One thing to watch: model names here are namespaced, like anthropic/claude-haiku-4-5, not gpt-4. A tool that hardcodes a bare model name needs that string changed too.

from openai import OpenAI

rapidrouter = OpenAI(api_key="sk-rr-v1-...", base_url="https://rapidrouter.ai/api/v1")
r = rapidrouter.chat.completions.create(
    model="anthropic/claude-haiku-4-5",
    messages=[{"role": "user", "content": "Hello"}],
)