M

Modelprices · LLM Price

by Modelprices

GETBase

$0.003

per call · USD Coin on Base

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.

Endpoint

GET https://modelprices.xyz/llm/price/:model

1

Calls / 30d

1

Unique payers / 30d

Aug 29

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://modelprices.xyz/llm/price/:model", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://modelprices.xyz/llm/price/:model" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "generated_at": "2026-07-14T02:00:00.000Z",
  "matched_id": "claude-sonnet-5",
  "model": {
    "cache_read_per_mtok": 0.3,
    "confidence": "high",
    "first_observed_at": "2026-07-12T18:00:00.000Z",
    "id": "claude-sonnet-5",
    "input_per_mtok": 3,
    "output_per_mtok": 15,
    "provider": "anthropic",
    "source_url": "https://docs.claude.com/en/docs/about-claude/pricing"
  }
}

Payment details

Pay to0x63a20fa244d3e6a8902121e99704b7f857dc6ebb
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from Modelprices & similar services

M

Modelprices · LLM Prices

modelprices.xyz

Compare AI model prices side-by-side: a live price leaderboard of LLM token cost for GPT-5, Claude 5, Claude Sonnet, Gemini 3 Pro, Llama 4, DeepSeek V4, Grok 4, Mistral Large and 2,000+ more models across 70+ providers (OpenAI, Anthropic, Google, Meta, xAI). Inference cost per token — input, output, cache and batch USD per 1M tokens — ranked, normalized into one table, cross-checked across two sources, refreshed hourly. Find the cheapest model and estimate token budgets.

GETBaseAI & Inference
$0.02 / call7 calls / 30d
M

Modelprices · LLM Limits

modelprices.xyz

AI model capability, specs and limits table for 2,000+ LLMs — GPT-5, GPT-4o, Claude 5, Claude Sonnet, Gemini 3 Pro, Llama 4, DeepSeek V4 and more: context window size, max output tokens, vision/audio/function-calling/reasoning support. Compare model constraints side-by-side across every provider to pick the right model for long-context, multimodal, or tool-use workloads. Refreshed hourly.

GETBaseAI & Inference
$0.02 / call4 calls / 30d
M

Modelprices · LLM Price Changes

modelprices.xyz

LLM price-change alert feed: track when OpenAI, Anthropic, Google or any AI provider reprices GPT, Claude, Gemini or any model's inference cost per token — old vs new price, percent delta, when it happened, plus newly launched and removed models. Structured JSON diffed from hourly snapshots; ideal for cost monitoring, repricing triggers, and AI market intelligence.

GETBaseAI & Inference
$0.03 / call3 calls / 30d