# LLM Pricing Lookup via OpenRouter

> LLM Pricing Lookup via OpenRouter is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Returns pricing (input/output cost per million tokens), context window size, and estimated call cost for 300+ language models from OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek, and more — with filtering and sorting.

## Facts

- Endpoint: POST https://api.vextorium.com/v1/llm-prices?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/llm-pricing-lookup-via-openrouter-75e495b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vrnxkS_4PuXRCOXETRJCB

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 llm-pricing-lookup-via-openrouter-75e495b3 -d '<json body>'
```

Example prompt: Search for all Claude models and estimate the cost per call assuming 1000 input tokens and 500 output tokens — sort by price so I can see the cheapest ones first.

## When to prefer this

Use this endpoint when you need programmatic, structured LLM pricing data across many providers at once, especially when estimating costs for specific token budgets or comparing dozens of models simultaneously. Prefer this over manually checking provider websites when you need filtering by name/provider, sorting by cost, or automated cost estimation integrated into an agent workflow. Best when OpenRouter-sourced prices are acceptable (note: direct provider prices may differ slightly).

## Known failure modes

- Invalid sort order enum value returns validation error
- Providing non-integer token counts causes schema rejection
- Empty or no matching results when search query is too specific or misspelled
- Rate limiting or payment failure (x402) if USDC balance is insufficient
- API may return stale prices if OpenRouter's source data is delayed

## How this service works

Price per million input and output tokens of 300+ language models (OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek...) via OpenRouter, with context window and the estimated cost of one call with your token counts; filter by name or provider, sort by price or context.

## Output

A JSON object listing matching models with their name, model ID, supported modalities, input and output price in USD per million tokens, context window size in tokens, estimated per-call cost in USD based on provided token counts, and a free flag. Also includes total count of matching models, the search query used, and a source note indicating prices are from OpenRouter's public model API.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [],
     "properties": {
      "limit": {
       "type": "integer"
      },
      "order": {
       "enum": [
        "price",
        "expensive",
        "context"
       ],
       "type": "string"
      },
      "search": {
       "type": "string"
      },
      "input_tokens": {
       "type": "integer"
      },
      "output_tokens": {
       "type": "integer"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": [
      "object",
      "null"
     ],
     "properties": {
      "note": {
       "type": [
        "string",
        "null"
       ]
      },
      "total": {
       "type": [
        "number",
        "null"
       ]
      },
      "models": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": [
         "null",
         "object"
        ],
        "properties": {
         "free": {
          "type": [
           "boolean",
           "null"
          ]
         },
         "name": {
          "type": [
           "null",
           "string"
          ]
         },
         "model": {
          "type": [
           "null",
           "string"
          ]
         },
         "modalities": {
          "type": [
           "array",
           "null"
          ],
          "items": {
           "type": [
            "null",
            "string"
           ]
          }
         },
         "call_cost_usd": {
          "type": [
           "null",
           "number"
          ]
         },
         "context_tokens": {
          "type": [
           "null",
           "number"
          ]
         },
         "input_usd_per_million": {
          "type": [
           "null",
           "number"
          ]
         },
         "output_usd_per_million": {
          "type": [
           "null",
   
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "OpenRouter prices; the direct provider may differ.",
  "total": 33,
  "models": [
   {
    "free": false,
    "name": "Anthropic: Claude Haiku 4.5 (batch)",
    "model": "anthropic/claude-haiku-4.5:batch",
    "modalities": [
     "text",
     "image"
    ],
    "call_cost_usd": 0.00175,
    "context_tokens": 200000,
    "input_usd_per_million": 0.5,
    "output_usd_per_million": 2.5
   },
   {
    "free": false,
    "name": "Anthropic: Claude Sonnet 5.5 (batch)",
    "model": "anthropic/claude-sonnet-5.5:batch",
    "modalities": [
     "text",
     "image"
    ],
    "call_cost_usd": 0.0035,
    "context_tokens": 1000000,
    "input_usd_per_million": 1,
    "output_usd_per_million": 5
   }
  ],
  "search": "claude",
  "source": "OpenRouter (public model API prices)",
  "input_tokens": 1000,
  "output_tokens": 500
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/llm-pricing-lookup-via-openrouter-75e495b3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
