
Did you know that OpenRouter can automatically optimize your LLM requests based on what's most important to you? Whether you're looking for the lowest cost, fastest response times, or specific provider requirements, our API gives you control.
How Default Provider Routing Works
By default, OpenRouter load balances your requests across multiple providers, prioritizing the most cost-effective options while ensuring reliability. Here's what happens behind the scenes:
- We filter out providers experiencing recent outages
- We load-balance across providers, weighted by price (lower prices = more likely to get routed to)
- If needed, we'll fall back to other providers as backup
This approach balances affordability and reliability, without any configuration needed.
Optimize for Price with One Parameter
If budget is your top concern, you can prioritize the absolute lowest-cost provider by adding a sort to your API request: