M

Modelprices · LLM Prices

by Modelprices

GETBase

$0.02

per call · USD Coin on Base

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.

Endpoint

GET https://modelprices.xyz/llm/prices

7

Calls / 30d

4

Unique payers / 30d

Sep 5

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/prices", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://modelprices.xyz/llm/prices" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "generated_at": "2026-07-14T02:00:00.000Z",
  "model_count": 2164,
  "models": [
    {
      "id": "claude-sonnet-5",
      "input_per_mtok": 3,
      "output_per_mtok": 15,
      "provider": "anthropic"
    }
  ],
  "provider_count": 72
}

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