# LLM API Prices

> LLM API Prices is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Returns pricing data (input/output cost per million tokens, context length) for 400+ LLMs from OpenAI, Anthropic, Google, DeepSeek, Llama, Qwen, and more, searchable by name and sortable by price or context.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/ai/model-prices?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/llm-api-prices-103a1ba4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eElt6X3T8Dj9nrF-a-Fc0

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-api-prices-103a1ba4
```

Example prompt: What are the cheapest 10 LLM APIs sorted by output price? Show me all models — including any free ones — so I can compare costs.

## When to prefer this

Use this endpoint when an agent needs to compare LLM API costs across providers, find the cheapest or most context-efficient model, discover free-tier models, or look up pricing for a specific model like Claude, GPT, or Gemini. Prefer this over manually searching provider documentation pages when up-to-date aggregated pricing across 400+ models is needed in a single call.

## Known failure modes

- No results returned if query string matches no model names
- Invalid sort field value returns an error
- Limit outside 1-100 range may be rejected or clamped
- Service may be temporarily unavailable on the shared Render.com host
- Stale pricing data if the underlying dataset hasn't been updated recently

## How this service works

API prices of 400+ LLMs (OpenAI, Anthropic, Google, DeepSeek, Llama, Qwen...) per million input/output tokens with context length, searchable by name and sortable by price, context or newest.

## Output

A list of LLM models with their provider, name, input price per million tokens, output price per million tokens, context window length, and release date. Results can be filtered by name substring or free-tier status and sorted by input price, output price, context length, or newest.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "q": {
       "type": "string",
       "description": "Name contains, e.g. claude, gpt, gemini"
      },
      "free": {
       "type": "boolean",
       "description": "true for free models only"
      },
      "sort": {
       "type": "string",
       "description": "input_price, output_price, context or newest"
      },
      "limit": {
       "type": "integer",
       "description": "Rows (1-100)"
      }
     }
    }
   },
   "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/llm-api-prices-103a1ba4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
