Two-line change, 13 AI models

Drop-in replacement for Anthropic SDK. O'Route auto-routes to the optimal model.

from oroute import ORoute client = ORoute(api_key="or-...") msg = client.messages.create( model="auto", max_tokens=1024, messages=[{"role": "user", "content": "Hello!"}] ) print(msg.content[0].text) # Header: X-ORoute-Provider: anthropic/claude-sonnet-4-6
Response Headers
HeaderDescription
X-ORoute-ProviderThe provider that handled the request (e.g., anthropic/claude-sonnet-4-6)
X-ORoute-Task-ComplexityClassified complexity level (1=Simple Q&A ... 6=Research)
X-ORoute-Routing-ScoreComposite score that determined the provider choice (0.000~1.000)
X-ORoute-Model-UsedActual model name returned by the provider
X-ORoute-Cost-SavedPercentage saved compared to the most expensive option
Routing Modes
ModeWeightsBest for
balancedQ:0.4 S:0.3 C:0.3Default — best overall value
speed_firstQ:0.2 S:0.6 C:0.2Chatbots, real-time apps
quality_firstQ:0.7 S:0.2 C:0.1Code review, architecture
cost_firstQ:0.3 S:0.1 C:0.6Batch processing, prototyping
Ready to start?
Get API KeyTry Sandbox