{"slug":"api-agentstools-dev-model-route-af6f90","title":"Pick the cheapest LLM that passes your task and constraints","host":"api.agentstools.dev","method":"GET","resource":"https://api.agentstools.dev/model/route","category":"market","description":"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-firs","price_listed":0.02,"price_asked":0.02,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":1016,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"max_output_price":10,"min_context":200000,"needs_tools":true,"task":"coding"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"properties":{"max_input_price":{"description":"Maximum input price in USD per million tokens.","minimum":0,"type":"number"},"max_output_price":{"description":"Maximum output price in USD per million tokens.","minimum":0,"type":"number"},"min_benchmark":{"description":"Minimum Aider coding pass rate percent.","maximum":100,"minimum":0,"type":"number"},"min_context":{"description":"Minimum context window in tokens.","minimum":0,"type":"integer"},"needs_reasoning":{"description":"Require extended reasoning support.","type":"boolean"},"needs_tools":{"description":"Require function or tool calling support.","type":"boolean"},"needs_vision":{"description":"Require image or vision input support.","type":"boolean"},"provider":{"description":"Optional provider filter such as anthropic or openai.","type":"string"},"task":{"description":"The workload class to route for. Each class implies required capabilities and a sensible context floor that your explicit constraints override.","enum":["coding","reasoning","vision","tool-use","long-context","cheap-chat","general"],"type":"string"}},"required":["task"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.02,"price_match":true,"latency_ms":1016,"error":null}],"description_full":"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.","last_updated":"2026-09-17T11:55:13.756Z","schemes":["exact"]}