# modelprices.xyz LLM Pricing Table

> modelprices.xyz LLM Pricing Table is a paid API for AI agents from modelprices.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-13).

Returns live per-token pricing data for 2,000+ LLMs across 70+ providers, normalized into a single table with input, output, cache, and batch rates in USD per 1M tokens.

## Facts

- Endpoint: GET https://modelprices.xyz/llm/prices?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/modelprices-xyz-llm-pricing-table-f7bc9ed5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LYRjt6kuNb-4yRjMe9nbD

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability modelprices-xyz-llm-pricing-table-f7bc9ed5
```

Example prompt: Can you pull the latest token prices for GPT-4o, Claude 3.5 Sonnet, and Gemini 1.5 Pro so I can compare what each would cost per million input and output tokens right now?

## When to prefer this

Use this endpoint when you need current, normalized, cross-provider LLM pricing data in one call — especially when comparing costs across providers like OpenAI, Anthropic, Google, AWS Bedrock, Azure, Groq, or Together AI, or when estimating token budgets before committing to a model for a production workload.

## Known failure modes

- Payment not processed — 402 response if USDC payment header is missing or invalid
- Model or provider not found if querying for a very new or obscure model not yet indexed
- Stale data edge case if hourly refresh is mid-cycle
- Rate limiting if too many calls are made in quick succession

## How this service works

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.

## Output

A normalized table of current LLM pricing data covering 2,000+ models across 70+ providers, including per-1M-token rates for input, output, cache reads, and batch processing in USD — cross-validated from two sources and refreshed hourly.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/modelprices-xyz-llm-pricing-table-f7bc9ed5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from modelprices.xyz](https://www.zero.xyz/host/modelprices.xyz/llms.txt)
