What Is an LLM Router? AI API Gateways Explained
An LLM router puts one API in front of many model providers. Here is what it does, what it costs you, and how to tell whether you need one.
Deftrouter is an OpenAI-compatible API router. Send every request to one endpoint with one key, choose the model per call, and see usage and spend per key in one place.
from openai import OpenAI
client = OpenAI(
base_url="https://api.deftrouter.com/v1",
api_key="YOUR_DEFTROUTER_KEY",
)
# Same SDK, same call. Only the model name changes.
reply = client.chat.completions.create(
model="provider/model-name",
messages=[{"role": "user", "content": "Hello"}],
) What you get
Most teams end up using more than one model. Each provider brings its own key, SDK, rate limits and invoice. Deftrouter takes that sprawl off your plate.
Call models from different providers through a single OpenAI-compatible endpoint, instead of keeping a key, an SDK and a billing account for each one.
Every request is metered and logged, so you can see what each key and each model costs without stitching provider dashboards together.
Create a separate key per app or teammate, put a spending limit on each, and revoke one without touching the others.
Trying another model means changing the model name in the request. The rest of your integration stays as it is.
Models
Pick a model to see its context window, capabilities and list price, and to request access.
How it works
Keep the OpenAI SDK you already use. Change the base URL and the API key.
Name the model in each call. Deftrouter authenticates the request and forwards it to the right provider.
Requests, tokens and spend are recorded against the key that made them.
Early access
Access is by request for now. Leave your email and the models you need, and we will email you when your key is ready.
From the blog
An LLM router puts one API in front of many model providers. Here is what it does, what it costs you, and how to tell whether you need one.
Access is by request for now. Send the early-access form with the models you need, and we will email you when your key is ready.
An OpenAI-compatible API router. You send requests to one endpoint with one key, and Deftrouter routes each request to the model provider you chose, then records the usage.
Yes. Change the base URL and the API key and keep the rest of your code. Features that only one provider offers can behave differently through any router, so test the ones you depend on.
The models are listed on the models page, each with its provider's list price. Tell us which ones you need, and we confirm Deftrouter's pricing by email before you start.
We use them only to set up your access and to contact you about it. We do not sell them or use them for advertising.