# 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-14).

Returns current per-token USD pricing (input, output, cache, batch) for a specific AI model by ID, with fuzzy matching on model names.

## Facts

- Endpoint: GET https://modelprices.xyz/llm/price/:model
- Price: $0.003/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-single-model-price-lookup-3abb89d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XLmnML1lqdFGf0wCdd6A1

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-3abb89d0
```

Example prompt: What does claude-sonnet-5 cost right now — input tokens, output tokens, cache, and batch — in USD per million tokens?

## When to prefer this

Use this endpoint when you need the current price for exactly one known AI model by ID and want the fastest, cheapest single-call answer. Prefer this over the leaderboard or comparison endpoints when you already know which model you're evaluating and just need its cost breakdown for a routing or budgeting decision. The fuzzy matching makes it resilient to minor model ID variations (e.g. 'sonnet-5' vs 'claude-sonnet-5').

## Known failure modes

- Model ID not found — service returns fuzzy-match suggestions or a 404-style error
- Ambiguous model suffix matches multiple models — response may list candidates instead of a single price
- Pricing data temporarily stale — rates may lag a provider's most recent price change
- Payment failure or insufficient USDC balance — call blocked before reaching pricing data
- Malformed model ID in path param — returns 400 or error response

## How this service works

Single-model price lookup: current per-token cost for one AI model by id (e.g. claude-sonnet-5, gpt-5, gemini-3-pro) — input, output, cache and batch USD per 1M tokens. The cheapest way to answer 'what does this model cost right now?' inside a routing or budgeting decision. Fuzzy-matches model ids and suggests alternatives on miss. Includes provenance: provider source URL, first_observed_at, confidence tier.

## Output

Returns a structured object with the model's current USD per-million-token pricing broken down by input, output, cache, and batch dimensions. If the exact model ID is not found, the service fuzzy-matches and may suggest close alternatives.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "model"
     ],
     "properties": {
      "model": {
       "type": "string",
       "description": "Model id or suffix, e.g. gpt-5, claude-sonnet-5"
      }
     }
    },
    "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-single-model-price-lookup-3abb89d0/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)
