{"uid":"cap_p--rnUIWr-vLij9-6GvYg","slug":"modelprices-xyz-cheapest-llm-model-finder-bf7a2897","name":"modelprices.xyz Cheapest LLM Model Finder","description":"Per-token prices, capability limits, and a price-change feed for 2,000+ LLMs across 70+ providers, normalized into single JSON tables and refreshed hourly.","url":"https://modelprices.xyz/llm/cheapest?utm_source=zero.xyz","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"],"type":"string"},"queryParams":{"type":"object","properties":{"limit":{"type":"integer","default":5,"maximum":25},"vision":{"type":"boolean"},"reasoning":{"type":"boolean"},"min_context":{"type":"integer","description":"Minimum context window in tokens"},"expected_input":{"type":"number","description":"Expected input tokens per request — with expected_output, ranks by blended USD per request instead of input price"},"exclude_preview":{"type":"boolean","description":"Exclude preview/pre-release model versions"},"expected_output":{"type":"number","description":"Expected output tokens per request"},"function_calling":{"type":"boolean"},"max_input_per_mtok":{"type":"number","description":"Max input price in USD per 1M tokens"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"models":[{"id":"claude-sonnet-5","provider":"anthropic","input_per_mtok":3,"output_per_mtok":15,"cache_read_per_mtok":0.3}],"match_count":41,"generated_at":"2026-07-14T02:00:00.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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":{"p10Cents":"1.0000","medianCents":"1.0000","p90Cents":"1.0000","minCents":"1.0000","maxCents":"1.0000","p95Cents":"1.0000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2t52jbDiscS0Tfi74bUY-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the lowest-cost AI models matching capability constraints (context window, vision, function calling, reasoning) across 2,000+ models and 70+ providers","exampleAgentPrompt":"What are the 5 cheapest AI models that support both vision and function calling, have at least a 64000 token context window, and cost no more than $1.00 per million input tokens?","exampleUseCases":null,"resultDescription":"A ranked list of up to 25 AI models (default 5) sorted by price ascending, each with model ID, provider name, input/output token pricing, and capability flags — giving agents the cheapest option that satisfies every requested constraint","failureModes":["No models match all constraints — returns empty list or reduced set","max_input_per_mtok too low — filters out all models, returning empty results","min_context too large — no models with that context window exist in dataset","Invalid parameter types (e.g. non-integer for min_context) — 400 bad request","Payment not processed — 402 response requiring x402 payment before retry","Stale pricing data — model prices may lag real-time provider updates"],"whenToPreferThis":"Use this endpoint when you need to find the cheapest AI model satisfying specific capability requirements — especially when you have hard constraints like vision support, function calling, reasoning, or a minimum context window. Prefer this over the general price leaderboard when cost optimization is the primary goal and you need to filter by capability. Best for automated agent decisions about which LLM to route tasks to based on budget and feature requirements.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:38:20.409Z","isFirstParty":false,"canonicalSlug":"modelprices-xyz-cheapest-llm-model-finder-bf7a2897"}