{"uid":"cap_XLmnML1lqdFGf0wCdd6A1","slug":"modelprices-xyz-single-model-price-lookup-3abb89d0","name":"modelprices.xyz Single-Model Price Lookup","description":"Single-model price lookup: current per-token cost for one AI model by id (e.g. claude-sonnet-5, gpt-5, gemini-3-pro) — input, output, cache and batch USD per 1M tokens. The cheapest way to answer 'what does this model cost right now?' inside a routing or budgeting decision. Fuzzy-matches model ids and suggests alternatives on miss. Includes provenance: provider source URL, first_observed_at, confidence tier.","url":"https://modelprices.xyz/llm/price/:model","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"},"pathParams":{"type":"object","required":["model"],"properties":{"model":{"type":"string","description":"Model id or suffix, e.g. gpt-5, claude-sonnet-5"}}},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Y9a6mrPsWXsyDKyOUp2jo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current per-token USD pricing (input, output, cache, batch) for a specific AI model by ID, with fuzzy matching on model names.","exampleAgentPrompt":"What does claude-sonnet-5 cost right now — input tokens, output tokens, cache, and batch — in USD per million tokens?","exampleUseCases":null,"resultDescription":"Returns a structured object with the model's current USD per-million-token pricing broken down by input, output, cache, and batch dimensions. If the exact model ID is not found, the service fuzzy-matches and may suggest close alternatives.","failureModes":["Model ID not found — service returns fuzzy-match suggestions or a 404-style error","Ambiguous model suffix matches multiple models — response may list candidates instead of a single price","Pricing data temporarily stale — rates may lag a provider's most recent price change","Payment failure or insufficient USDC balance — call blocked before reaching pricing data","Malformed model ID in path param — returns 400 or error response"],"whenToPreferThis":"Use this endpoint when you need the current price for exactly one known AI model by ID and want the fastest, cheapest single-call answer. Prefer this over the leaderboard or comparison endpoints when you already know which model you're evaluating and just need its cost breakdown for a routing or budgeting decision. The fuzzy matching makes it resilient to minor model ID variations (e.g. 'sonnet-5' vs 'claude-sonnet-5').","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:41:17.308Z","isFirstParty":false}