auto reads each prompt, detects the task, and routes it:
POST /api/v1/chat
Response
include_routing: true shows which model was chosen and why.
Four variants
Billing: you pay the resolved model’s metered rate for your actual token usage — route to
o3-mini, you’re billed at o3-mini’s $/MTok; route to claude-sonnet-4.6, you’re billed at its (higher) rate. There’s no flat per-model price — see Pricing for the live rates. The routing field always names the cost-incurring model.
How detection works
By default (
route_mode: "smart"), task classification runs through an LLM
call — gemini-3-flash, cached in Redis for 1 hour and not charged to you —
which is more accurate than regex for nuanced prompts. Regex-based signal
matching (below) is the actual mechanism only for route_mode: "fast", plus
auto-fast/auto-cheap (which skip the LLM step to stay low-latency), and it’s
always the fallback if the LLM classifier errors.Full routing table — all four variants
Full routing table — all four variants
In code
Pair it with
Budget Routing
budget_cents caps what auto may spendFallback Chains
Explicit order with automatic failover
Compare
Race models to pick one empirically