# modelprices.xyz AI Model Pricing Table

> modelprices.xyz AI Model 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-09-14).

Returns a normalized pricing dataset for 2,000+ LLM models across 70+ providers, including token costs for input/output, refreshed hourly

## Facts

- Endpoint: GET https://modelprices.xyz/ai-model-pricing
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/modelprices-xyz-ai-model-pricing-table-800bc864
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m5nPOahEu6nXcW6WwjoTa

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-ai-model-pricing-table-800bc864
```

Example prompt: Pull me the latest pricing table from modelprices.xyz so I can compare token costs for GPT-5, Claude Opus 4, and Gemini 3 Pro side by side and figure out which one is cheapest for high-volume text generation.

## When to prefer this

Use this endpoint when you need current, normalized, cross-provider LLM token pricing data covering a broad set of models (2,000+) rather than checking each provider's pricing page individually. Ideal for cost optimization workflows, model selection tools, or benchmarking pipelines.

## Known failure modes

- Pricing data may be temporarily stale if the hourly refresh has not yet completed
- Unknown or very new models may not yet appear in the dataset
- Rate limiting or payment failure may return a 402 or error response
- Network timeout if the upstream data source is unavailable

## How this service works

AI model pricing comparison table: what every AI model costs right now — GPT-5, GPT-4o, Claude 5, Claude Sonnet, Gemini 3 Pro, Llama 4, DeepSeek V4, Grok 4 and 2,000+ more. One normalized dataset of LLM token cost and inference pricing across OpenAI, Anthropic, Google and 70+ providers, refreshed hourly. Compare models by price, rank by cost, pick the cheapest model for any workload.

## Output

A normalized table of pricing data for 2,000+ AI/LLM models across 70+ providers, including per-token costs for input and output, model names, and provider details — 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-ai-model-pricing-table-800bc864/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)
