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.
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"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": trueSort, 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.
Works with your SDK
Keep the OpenAI, Anthropic or Gemini SDK you already use. Change one line.
/chat/completions /embeddings /images/generations /responses
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.
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.