APIActive

OpenRouter

Unified API for hundreds of AI models with automatic fallbacks and cost optimization.

Open source page

Field note

What it does

OpenRouter provides a single API endpoint to access hundreds of AI models, handling fallbacks automatically and selecting cost-effective options per request.

Capabilities

Available capabilities

Tags

Tags

Ways to use it

Ways to use it

cli

Not filed / https://docs.stripe.com/stripe-projects

rest

Not filed / https://openrouter.ai/docs

sdk

typescript / @openrouter/sdk

sdk

python / openrouter

sdk

typescript / @openrouter/agent

rest

Not filed / https://openrouter.ai/docs/quickstart

cli

Not filed / https://docs.stripe.com/stripe-projects

rest

Not filed / https://openrouter.ai/docs

sdk

typescript / openai

sdk

typescript / @anthropic-ai/sdk

sdk

typescript / @openrouter/sdk

Product features

Product features

​ Advanced Sorting with Partition

​ Example: Using Multiple Percentile Cutoffs

​ Floor Price Shortcut

​ How Percentiles Work

​ Nitro Shortcut

​ Performance Thresholds

​ Price-Based Load Balancing (Default Strategy)

Provider Routing

​ Provider Sorting

​ Use Case 1: Route to the Highest Throughput or Lowest Latency Model

​ Use Case 2: Find the Cheapest Model Meeting Performance Requirements

​ When to Use Percentile Preferences