Now in private beta

The right model
for every request,
chosen in milliseconds.

RouteLLM scores each prompt and dispatches it to the cheapest model that can handle the job. Teams cut inference costs 40–70% without touching their application logic.

One line to drop in

Before
const response = await openai.chat.completions.create({
  model: "gpt-4o",
  // pays frontier prices
  // for every single request
})
After
const response = await openai.chat.completions.create({
  model: "gpt-4o",
  baseURL: "https://api.routellm.app/v1",
  // routed to the cheapest capable model
})

How routing works

Three steps happen before the first token streams back.

01

Drop in the endpoint

Point your existing OpenAI-compatible calls at RouteLLM. No new SDK, no refactor. Your code stays exactly as-is.

02

Every prompt gets scored

A lightweight classifier evaluates complexity, intent, and cost tier in under 2ms — before the prompt ever reaches a model.

03

Cheapest capable model answers

Simple completions go to Haiku or Llama. Complex reasoning goes to Sonnet or GPT-4o. You pay for what each request actually needs.

40–70%
inference cost reduction
<2ms
routing overhead per request
1 line
to integrate
Any
OpenAI-compatible provider

Built for teams burning money on inference

Most LLM workloads are mixed — a few hard calls, a lot of trivial ones. RouteLLM charges you accordingly.

Coding agents

Code review, autocomplete, docstring generation — most of these don't need GPT-4o. Route the grep-and-explain tasks to Haiku. Send only the architecture decisions to frontier models.

Multimodal apps

Image captioning, PDF extraction, form parsing. These are batch tasks, not reasoning tasks. RouteLLM identifies them and routes accordingly so you're not spending frontier money on OCR.

API businesses

If you resell LLM calls, your margin lives or dies on inference cost. RouteLLM gives you a router you control — set your own cost thresholds and pass the savings to customers.

Get early access

We're onboarding teams with real inference spend first. Drop your email and we'll reach out when your slot opens.