model-route
GET api.agentstools.dev/model/route
Why an agent can trust this route.
Sonar evidence is advisory. Paid delivery is shown as verified only when paid probes are available; otherwise route estimates use the unpaid handshake as a clearly labeled proxy.
Observed outcomes
Pick the cheapest LLM that passes your task and constraints. Give a task class and optional constraints such as minimum context, required tool-use, vision or reasoning, maximum input and output price per million tokens, a minimum coding benchmark and a provider filter, and get a ranked cheapest-first list of models that pass, plus a recommended pick and a deterministic rationale. Fused from open keyless catalogs LiteLLM, models dev and Aider with a citation on every model.
Resource: api.agentstools.dev/model/route
Network: eip155:8453 · Asset: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 · Pay to: 0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493
Payment methods: — · Last validation: 2026-10-15 11:43:53.537+00
{
"input": {
"type": "object",
"required": [
"type",
"method"
],
"properties": {
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"GET",
"HEAD",
"DELETE"
],
"type": "string"
},
"queryParams": {
"type": "object",
"required": [
"task"
],
"properties": {
"task": {
"enum": [
"coding",
"reasoning",
"vision",
"tool-use",
"long-context",
"cheap-chat",
"general"
],
"type": "string",
"description": "The workload class to route for. Each class implies required capabilities and a sensible context floor that your explicit constraints override."
},
"provider": {
"type": "string",
"description": "Optional provider filter such as anthropic or openai."
},
"min_context": {
"type": "integer",
"minimum": 0,
"description": "Minimum context window in tokens."
},
"needs_tools": {
"type": "boolean",
"description": "Require function or tool calling support."
},
"needs_vision": {
"type": "boolean",
"description": "Require image or vision input support."
},
"min_benchmark": {
"type": "number",
"maximum": 100,
"minimum": 0,
"description": "Minimum Aider coding pass rate percent."
},
"max_input_price": {
"type": "number",
"minimum": 0,
"description": "Maximum input price in USD per million tokens."
},
"needs_reasoning": {
"type": "boolean",
"description": "Require extended reasoning support."
},
"max_output_price": {
"type": "number",
"minimum": 0,
"description": "Maximum output price in USD per million tokens."
}
}
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object"
}
}
},
"paymentRequirements": [
{
"raw": {
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2"
},
"payTo": "0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493",
"amount": "20000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 300
},
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493",
"scheme": "exact",
"network": "eip155:8453",
"amountAtomic": "20000"
}
]
}Source catalog records are retained separately from live endpoint observations. Sonar score, uptime, and latency are advisory metrics. CDP indexing is not inferred from validation.