# modelprices.xyz Single-Model Price Lookup

> modelprices.xyz Single-Model Price Lookup is a paid API for AI agents from modelprices.xyz, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Returns current per-token pricing (input, output, cache) for a single LLM by model ID, normalized across 70+ providers.

## Facts

- Endpoint: GET https://modelprices.xyz/llm/price/%7Bmodel%7D
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/modelprices-xyz-single-model-price-lookup-6d726696
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7Poed90y7oNK3m91JcWqA

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-single-model-price-lookup-6d726696
```

Example prompt: What are the current input and output token prices for claude-sonnet-5 on modelprices.xyz — I need the per-million-token rates to estimate my API costs.

## When to prefer this

Use this endpoint when you need precise, normalized per-token pricing for a single known LLM model ID and want a lightweight single-model lookup rather than a full pricing table. Prefer this over scraping provider websites or using the comparison table endpoint when you already know the model ID and just need its current rates programmatically.

## Known failure modes

- Unknown or misspelled model ID returns no match or 404
- Model exists but pricing data not yet available for new releases
- Stale data if called within same hour as a provider repricing event
- Ambiguous model IDs (e.g. 'claude-3' without version) may not resolve correctly
- Network timeout or payment failure (x402 $0.002 USDC) blocks the response

## How this service works

Per-token prices, capability limits, and a price-change feed for 2,000+ LLMs across 70+ providers, normalized into single JSON tables and refreshed hourly.

## Output

A JSON object containing the model's canonical ID, provider name, input price per million tokens, output price per million tokens, cache read price per million tokens, and a timestamp indicating when the data was last refreshed (hourly cadence).

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": {
   "id": "claude-sonnet-5",
   "provider": "anthropic",
   "input_per_mtok": 3,
   "output_per_mtok": 15,
   "cache_read_per_mtok": 0.3
  },
  "matched_id": "claude-sonnet-5",
  "generated_at": "2026-07-14T02:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/modelprices-xyz-single-model-price-lookup-6d726696/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)
