{"uid":"cap_7Poed90y7oNK3m91JcWqA","slug":"modelprices-xyz-single-model-price-lookup-6d726696","name":"modelprices.xyz Single-Model Price Lookup","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/price/%7Bmodel%7D","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"model":{"id":"claude-sonnet-5","provider":"anthropic","input_per_mtok":3,"output_per_mtok":15,"cache_read_per_mtok":0.3},"matched_id":"claude-sonnet-5","generated_at":"2026-07-14T02:00:00.000Z"}},"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_8xfJa4hbZNkLpSwPwDubJ","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 pricing (input, output, cache) for a single LLM by model ID, normalized across 70+ providers.","exampleAgentPrompt":"What are the current input and output token prices for claude-sonnet-5 on modelprices.xyz — I need the per-million-token rates to estimate my API costs.","exampleUseCases":[{"title":"Cost estimation before model switch","prompt":"Before I migrate my pipeline to gpt-4o, can you pull the current input and output token prices for it so I can estimate my monthly spend?"},{"title":"Comparing two model prices inline","prompt":"I'm deciding between claude-sonnet-5 and gemini-1.5-pro — can you look up the per-token pricing for claude-sonnet-5 right now so I can compare?"},{"title":"Automated cost tracking in agent workflow","prompt":"My agent just picked gpt-4o-mini to answer a query — fetch its current input and output token prices from modelprices.xyz so I can log the estimated cost of this call."}],"resultDescription":"A JSON object containing the model's canonical ID, provider name, input price per million tokens, output price per million tokens, cache read price per million tokens, and a timestamp indicating when the data was last refreshed (hourly cadence).","failureModes":["Unknown or misspelled model ID returns no match or 404","Model exists but pricing data not yet available for new releases","Stale data if called within same hour as a provider repricing event","Ambiguous model IDs (e.g. 'claude-3' without version) may not resolve correctly","Network timeout or payment failure (x402 $0.002 USDC) blocks the response"],"whenToPreferThis":"Use this endpoint when you need precise, normalized per-token pricing for a single known LLM model ID and want a lightweight single-model lookup rather than a full pricing table. Prefer this over scraping provider websites or using the comparison table endpoint when you already know the model ID and just need its current rates programmatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T06:30:35.100Z","isFirstParty":false}