# modelprices.xyz Anthropic Pricing Table

> modelprices.xyz Anthropic Pricing Table is a paid API for AI agents from modelprices.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns per-token USD costs for every Anthropic-served AI model in a single call, including input, output, cache, and batch pricing, context window sizes, and capability flags, ranked cheapest first.

## Facts

- Endpoint: GET https://modelprices.xyz/llm/prices/anthropic
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/modelprices-xyz-anthropic-pricing-table-e04b7a58
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_91u_eTiQD4qQ3e3MkeBmN

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-anthropic-pricing-table-e04b7a58
```

Example prompt: Pull the full Anthropic pricing table — I want to see all Claude models ranked cheapest first with their input, output, cache, and batch token costs plus context window sizes.

## When to prefer this

Choose this endpoint when you need a complete, up-to-date, normalized view of all Anthropic model token prices in a single call — especially useful for cost optimization, model selection logic, or building pricing dashboards. Prefer over scraping Anthropic's website directly (no parsing needed) and over generic LLM price databases when you specifically want Anthropic-only data with capability flags and context window metadata joined in.

## Known failure modes

- Upstream Anthropic pricing page unavailable — stale cached data returned or 503
- Rate limiting if called excessively — 429 response
- Model data temporarily inconsistent during hourly refresh cycle
- New model not yet indexed if Anthropic launched it within the past hour

## How this service works

Anthropic pricing table: per-token cost of every AI model Anthropic serves, in one call — input, output, cache and batch USD per 1M tokens, ranked cheapest first, with context window and capability flags joined in. Compare LLM token cost inside Anthropic and against other providers hosting the same model. Normalized from public sources, cross-checked, refreshed hourly.

## Output

A ranked list of all Anthropic-served AI models with per-token USD costs for input, output, cache writes, cache reads, and batch modes (expressed per 1M tokens), plus each model's context window size and capability flags (e.g. vision, reasoning), sorted cheapest first. Data is normalized from public sources and refreshed hourly.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/modelprices-xyz-anthropic-pricing-table-e04b7a58/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)
