https://modelprices.xyz/llm/price/:modelGET /llm/price/:model · x402 API by modelprices
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.
What does this x402 API do?
https://modelprices.xyz/llm/price/:model. This is an x402-gated GET API resource from modelprices. TOLL·402 did not invoke this route automatically because doing so was not considered safe. No normalized USD price is recorded; the listing names Base. No settled paid call has been verified.
- Published price
- No normalized USD price is recorded
- Networks
- Base
- Latest evidence
- TOLL·402 did not invoke this route automatically because doing so was not considered safe
- Resource ID
- 47a62a3dae32d238514d62d0
Start with a quote-only recipe. Payment signing stays in your project.
const response = await fetch("https://modelprices.xyz/llm/price/:model", {
method: "GET",
});
console.log(response.status);
console.log(Object.fromEntries(response.headers));
console.log((await response.text()).slice(0, 1000));
// A valid 402 is a quote, not a completed paid call.This sends no payment. Inspect the 402 response before adding a wallet-enabled client.
- Observed in cdp-bazaar
The registry record was observed and retained with provenance.
- Observed in 402-index
Discovered through bazaar.
- Exact route checked
not safely testable · unresolved-url-template
- Origin reachable
HEAD https://modelprices.xyz/ returned 200.
- Registry record checked
Registry health: healthy.
What evidence supports this listing?
Each record has an exact-route quote outcome. Unresolved templates and potentially mutating methods are labeled instead of being invoked without provider-specific test input. A quote is still separate from a settled paid call. Read the discovery and verification methodology →
Which networks and payment options does it accept?
The normalized listing price is No normalized USD price is recorded. Raw protocol requirements remain visible below for implementation and audit use.