# modelprices.xyz OpenRouter Pricing Table

> modelprices.xyz OpenRouter 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-16).

Returns per-token USD costs for every AI model available on OpenRouter, sorted cheapest first, with context window sizes and capability flags.

## Facts

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

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-openrouter-pricing-table-13266b72
```

Example prompt: Pull the full OpenRouter pricing table and show me all models ranked cheapest to most expensive, including their input and output token costs per million tokens and context window sizes.

## When to prefer this

Choose this endpoint when you need a comprehensive, pre-normalized, hourly-refreshed pricing table for all OpenRouter-hosted models in a single API call, rather than scraping OpenRouter's website or calling their native API and computing costs yourself. Especially useful when comparing costs across providers, since sibling endpoints on modelprices.xyz cover AWS Bedrock, xAI, OpenAI, etc. with the same schema, making cross-provider comparison trivial.

## Known failure modes

- Upstream OpenRouter pricing data temporarily unavailable — returns stale or empty response
- Rate limiting or payment failure for the $0.01 USDC x402 micro-payment — returns 402 error
- Model list may lag real-time OpenRouter catalog by up to one hour due to refresh cadence
- Newly added or removed models may not appear until next hourly refresh

## How this service works

OpenRouter pricing table: per-token cost of every AI model OpenRouter 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 OpenRouter and against other providers hosting the same model. Normalized from public sources, cross-checked, refreshed hourly.

## Output

A ranked list of all AI models served via OpenRouter, each with input, output, cache, and batch token prices in USD per 1M tokens, context window size in tokens, and capability flags (e.g. vision, reasoning). Results are sorted cheapest first and refreshed hourly from normalized public sources.

## 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-openrouter-pricing-table-13266b72/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)
