Model routing

One endpoint. Many providers.

Route each request by price, latency, data policy or provider, across our own models and partner providers. If one is down, Lune falls back.

How routing works

What Lune does with each request.

01 / Route

Pass a model. Lune picks the provider.

Send the model name you want. Lune chooses where it runs, across our own models and partner providers.

model: "deepseek/deepseek-v4-pro"
02 / Fall back

If one fails, Lune tries another.

When a provider errors or is down, the request moves to the next one on the list. Your code doesn't change.

"allow_fallbacks": true
03 / Steer

Sort, order or filter with one field.

Rank providers by price, latency or throughput, or only allow ones with zero data retention.

provider: { sort: "price" }

Steering

One field
steers every request.

Sort, filter and fall back with a single provider field. Try it.

Sort by
client.chat.completions.create(
  model="deepseek/deepseek-v4-pro",
  extra_body={"provider": {"sort": "price"}},
)

Partner list

Partner Agets the requestPriceLatencyThroughput
Partner Bfallback 1PriceLatencyThroughput
Partner Cfallback 2PriceLatencyThroughput

200 OK Served by the top pick. The others were backups.

Works with your SDK

Keep the OpenAI, Anthropic or Gemini SDK you already use. Change one line.

/chat/completions /embeddings /images/generations /responses

client.py1 line changed
from openai import OpenAI

client = OpenAI(-   base_url="https://api.openai.com/v1",+   base_url="https://api.lune.io/v1",)

Spend limits and access control

Requests stop with a 402 when a workspace hits its limit. Give each person a role, and limit each key by model, IP and expiry.

Budgets
Prod
$500 limit
Research
$88 of $400
Staging
$137 of $250
Prod at 80% of its limit402 Prod hit its limit, requests stopped

Common questions.

What happens if I hit a spend limit?

A structured 402, not a surprise invoice.

Do you keep my prompts?

No. Only metering data like model, tokens and latency.

How do you vet the providers you route to?

Every provider goes through onboarding before it serves traffic. We run QA tests to confirm it serves the model it says it does, and we keep checking quality after it goes live.

How do you check zero data retention?

We check each provider's zero data retention compliance during onboarding and keep vetting it after. Turn on zero data retention and Lune only routes to providers that meet it.

Stop writing fallback logic.

Pass a model. Lune picks, falls back and reports.

Get started Contact us