Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.llmrouter.app/llms.txt
LLM Router is 100% compatible with the official OpenAI SDK. This means you can use the familiar openai package in Node.js or Python to access any model (including Anthropic’s Claude and Google’s Gemini) without changing your code structure.

1. Chat Completions API

The Chat Completions API is the standard way to interact with LLMs. To use LLM Router, you simply change the baseURL and apiKey when initializing the client.

2. OpenAI Messages API

If you are using the new OpenAI Developer Messages API (often used for specific agentic workflows or structured outputs), LLM Router supports this endpoint natively as well. You use the exact same client configuration, but call the client.beta.messages methods.