{"uid":"cap_K1Pw7yTDw56Hm9wUtdVgp","slug":"datastand-dev-llm-cost-router-112557d8","name":"datastand.dev LLM Cost Router","description":"Name your token workload and get every current LLM ranked by estimated USD cost to run it, with per-million-token prices, cached-input rates, context windows and provider. Combines an operator-verified pricing table with the wider marketplace listing and says which source each row came from. Filter by minimum context window or by provider, or restrict to verified rows only. Use it to pick the cheapest model that can actually hold your prompt.","url":"https://datastand.dev/api/llm/route","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD"],"type":"string"},"queryParams":{"type":"object","properties":{"limit":{"type":"string","description":"Rows per page, 1-100 (default 100)"},"offset":{"type":"string","description":"Skip this many ranked models (default 0). Use page.next_offset from the previous response. A page past the end costs nothing."},"provider":{"type":"string","description":"Filter to one vendor token, e.g. anthropic, openai, x-ai, mistralai, qwen. Matched exactly against the vendor (punctuation and case ignored, so x-ai and xai are the same token) — never as a prefix, because meta and meta-llama are different vendors. Every response carries providers_available; a token that matches nothing is refused for free and names the near misses."},"min_context":{"type":"string","description":"Only models with at least this context window. Models whose window is null (not verified) are excluded and counted in filters.unknown_context_excluded."},"input_tokens":{"type":"string","description":"Input tokens per request (default 1000)"},"output_tokens":{"type":"string","description":"Output tokens per request (default 1000)"},"verified_only":{"type":"string","description":"1/true to rank only operator-verified rows, dropping the marketplace catalog"},"include_unknown_context":{"type":"string","description":"1/true to also rank models whose context window is unverified when min_context is set"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RtZYRzhiylE85peO8JggK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Ranks all current LLMs by estimated USD cost for a given token workload, returning per-MTok prices, cached-input rates, and context windows with verified source URLs.","exampleAgentPrompt":"Which LLM APIs are cheapest right now for a workload of 5000 input tokens and 1000 output tokens per request? Show me the full ranked list with prices per million tokens and context windows.","exampleUseCases":[{"title":"Cheapest Anthropic model for production","prompt":"I need to pick the cheapest Anthropic model that has at least a 100k context window — can you rank all Anthropic models by cost for 8000 input tokens and 2000 output tokens per request?"},{"title":"Budget-aware LLM routing for an agent","prompt":"My agent sends about 2000 input tokens and 500 output tokens per call. What's the absolute cheapest LLM I can route it to right now, across any provider?"},{"title":"Evaluating cost before scaling inference","prompt":"Before I scale up my pipeline, show me all LLMs ranked by total estimated cost for 50000 input tokens and 10000 output tokens, including their cached-input rates and where the pricing figures come from."}],"resultDescription":"An ordered list of LLM models ranked from cheapest to most expensive for the specified token workload, each entry including the model name, provider, input/output price per MTok, cached-input rate, context window size, official source URL, and verification date.","failureModes":["Invalid or non-numeric token counts return a 400 error","Unknown provider name in filter returns empty result set or 400","Pricing table temporarily stale if weekly verification is delayed","min_context value larger than any available model returns empty list","Service unavailable returns 5xx with no ranked results"],"whenToPreferThis":"Use this endpoint when you need to programmatically select or recommend the most cost-effective LLM for a specific token workload, especially when you want verified, source-cited pricing rather than self-reported or stale figures. Prefer it over static pricing pages or manual comparison when building cost-aware routing logic for agents or pipelines. It is particularly valuable when filtering by provider or minimum context window is needed alongside cost ranking.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:30:44.137Z","isFirstParty":false}