Auto Router (Beta) is a task-aware router from OpenRouter. It classifies each request, then routes it the most popular model for that task based on aggregate spend, filtered by your selected cost-quality tradeoff.
To see which model was used, visit Activity, or read the model attribute of the response. Your response will be priced at the same rate as the routed model.
Learn more, including how to customize the models for routing, in our docs. For another way to route, see Pareto Code.
Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.