Build

Autopilot

Ask for model auto, or auto with a tier, and the cheapest model your credit covers runs, priced through the live pools.

Every candidate is priced through the live pools, and the cheapest one your credit covers runs. The response names the choice and the saving in a routing block.

Tiers

auto:fastllama-70bShort, cheap work: triage, extraction, summaries of logs.
auto:balancedgpt-5The default for most agent steps.
auto:frontierclaude-opus-5The hard calls: reviews, plans, long reasoning.

Buying the shortfall

allowSwap lets autopilot buy exactly the shortfall of a cheaper model, and needs the trade scope. Failover retries the next candidate when a provider breaks, which is safe because a failed call returns its whole hold.

Ask before you run

GET /v1/plan (or the tokex_plan tool) returns what autopilot would choose for a request of that size, cheapest first, priced, without running anything.