# LLM Pricing - Compare AI Model API Prices

> LLM Pricing - Compare AI Model API Prices is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-07).

Returns pricing, context length, and capability data for ~450 LLMs, with optional filtering, sorting, and per-call cost estimation

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/llm/prices?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-07
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-llm-pricing-compare-ai-model-d60c7f5e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v4NCuuMbSj_2LVy9xxrff

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 agent-data-tools-revmesh2074-workers-dev-llm-pricing-compare-ai-model-d60c7f5e
```

Example prompt: Can you find the top 10 cheapest LLMs that support vision input and have at least 32,000 token context — sort by blended price and estimate the cost for 5,000 input tokens and 1,000 output tokens?

## When to prefer this

Use this endpoint when an agent needs to programmatically select the optimal LLM for a task based on price, context length, or capability constraints — especially when cost optimization matters or when comparing across multiple providers. Prefer over manual documentation lookups because it covers ~450 models in one call with filtering, sorting, and cost estimation built in.

## Known failure modes

- Invalid sort value returns error or default behavior
- limit outside 1-50 range may be clamped or rejected
- Provider name typo returns empty results
- Very restrictive filter combination returns zero models
- Network timeout from upstream OpenRouter data source

## How this service works

LLM pricing, compare AI model. Compare the API prices of about 450 LLMs from OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek, Qwen and others: USD per million input and output tokens, context length, max output, modalities, and the cost of your call when you give token counts. Filter by name, provider, price cap, context or image input; sort by input, output or blended price. Source: OpenRouter's public model list. Use to pick the cheapest model that fits a job.

## Output

A JSON object containing: a timestamp (asOf), sort order used, total matched count, and an array of model objects each with model ID, name, provider, input/output price per million USD, context length, max output tokens, supported input/output modalities, optional free flag, and optionally an estimated call cost in USD if token counts were provided.

## 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",
     "required": [],
     "properties": {
      "q": {
       "type": "string",
       "examples": [
        "llama"
       ],
       "description": "Words in the model id or name, e.g. gpt, claude, llama 70b"
      },
      "sort": {
       "type": "string",
       "examples": [
        "blended"
       ],
       "description": "input (default), output, blended (3:1 input:output) or context"
      },
      "limit": {
       "type": "integer",
       "examples": [
        5
       ],
       "description": "Number of models (1-50, default 20)"
      },
      "vision": {
       "type": "string",
       "examples": [
        "false"
       ],
       "description": "true: only models that take image input"
      },
      "provider": {
       "type": "string",
       "examples": [
        "meta-llama"
       ],
       "description": "Only this provider: openai, anthropic, google, meta-llama, mistralai, deepseek, qwen…"
      },
      "minContext": {
       "type": "integer",
       "examples": [
        32000
       ],
       "description": "Only models with at least this context length in tokens"
      },
      "inputTokens": {
       "type": "integer",
       "examples": [
        2000
       ],
       "description": "Input tokens of your call, to estimate its cost"
      },
      "outputTokens": {
       "type": "integer",
       "examples": [
        500
       ],
       "description": "Output tokens of your call, to estimate its cost"
      },
      "maxInputPrice": {
       "type": "number",
       "examples": [
        1
       ],
       "description": "Only models at or under this USD per million input tokens"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": "string"
      },
      "sort": {
       "type": "string"
      },
      "count": {
       "type": "number"
      },
      "models": {
       "type": "arr
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asOf": "2026-11-06T06:00:00.000Z",
  "sort": "input",
  "count": 1,
  "models": [
   {
    "id": "meta-llama/llama-3.3-70b-instruct",
    "free": false,
    "name": "Meta: Llama 3.3 70B Instruct",
    "inputs": [
     "text"
    ],
    "outputs": [
     "text"
    ],
    "provider": "meta-llama",
    "contextLength": 131072,
    "maxOutputTokens": 16384,
    "inputPerMillionUsd": 0.1,
    "outputPerMillionUsd": 0.25
   }
  ],
  "source": "OpenRouter public model list (openrouter.ai/api/v1/models)",
  "matched": 41
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-llm-pricing-compare-ai-model-d60c7f5e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
