78trust / 100

Llm Prices

by modelprices.xyz in AI models & inference

x402 APIPassing, checked 1 h ago

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.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
104 ms typical, 111 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://modelprices.xyz/llm/prices"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fmodelprices.xyz%2Fllm%2Fprices
const res = await pay("https://modelprices.xyz/llm/prices");
console.log(await res.json());

Example input

{}

Example output

{
  "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
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402104 ms$0.02
5 h agoPassed40298 ms$0.02
9 h agoPassed402121 ms$0.02
12 h agoPassed402106 ms$0.02
16 h agoPassed402104 ms$0.02
19 h agoPassed402104 ms$0.02
23 h agoPassed402111 ms$0.02
26 h agoPassed402108 ms$0.02
30 h agoPassed402101 ms$0.02
34 h agoPassed402101 ms$0.02
37 h agoPassed402108 ms$0.02
42 h agoPassed40231 ms$0.02
45 h agoPassed402102 ms$0.02
2 days agoPassed4026 ms$0.02