Route a message to a model
Ask Gumloop Chew — the model router behind Auto — which model it would use for a given message, and why. Chew is a router, not a model: router is always gumloop-chew, and the concrete model it selected is route.model.
What does the routing decision include and cost?
What does the routing decision include and cost?
models to use the deduplicated union of Chew’s lane chains, not every model the
caller may use. Restricted candidates can appear with status: "restricted"; they are never
selected or included in fallback_models.Team scope requires actual team membership, even within the same organization. Personal API
keys and OAuth are supported; this is not team-key-only.Authorizations
Body
The message to route. message is accepted as an alias. A string or an array of {type: text, text: ...} parts.
Candidate model IDs to choose between. IDs must be nonempty, unique after remapping, and registered. Omit to use Chew's lane-chain union.
1 - 50 elementsPrior turns, oldest first, for context.
20Optional context about the agent the message is for. Sharper context produces a sharper route.
Scope model availability and credit attribution to a team the caller belongs to.