Drop-in replacement for Anthropic SDK. O'Route auto-routes to the optimal model.
| Header | Description |
|---|---|
| X-ORoute-Provider | The provider that handled the request (e.g., anthropic/claude-sonnet-4-6) |
| X-ORoute-Task-Complexity | Classified complexity level (1=Simple Q&A ... 6=Research) |
| X-ORoute-Routing-Score | Composite score that determined the provider choice (0.000~1.000) |
| X-ORoute-Model-Used | Actual model name returned by the provider |
| X-ORoute-Cost-Saved | Percentage saved compared to the most expensive option |
| Mode | Weights | Best for |
|---|---|---|
| balanced | Q:0.4 S:0.3 C:0.3 | Default — best overall value |
| speed_first | Q:0.2 S:0.6 C:0.2 | Chatbots, real-time apps |
| quality_first | Q:0.7 S:0.2 C:0.1 | Code review, architecture |
| cost_first | Q:0.3 S:0.1 C:0.6 | Batch processing, prototyping |