# modelprices.xyz Cloudflare Workers AI Pricing Table

> modelprices.xyz Cloudflare Workers AI 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-14).

Returns per-token pricing for every AI model available on Cloudflare Workers AI, including input, output, cache, and batch costs in USD per 1M tokens, ranked cheapest first with context window and capability flags.

## Facts

- Endpoint: GET https://modelprices.xyz/llm/prices/cloudflare
- Price: $0.01/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-cloudflare-workers-ai-pricing-table-215b6cc9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_popr2gI6gktf1Rjxh9jfE

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-cloudflare-workers-ai-pricing-table-215b6cc9
```

Example prompt: Pull the full pricing table for all Cloudflare Workers AI models — I need input, output, cache, and batch costs per million tokens, ranked cheapest first, so I can pick the most cost-effective model for my app.

## When to prefer this

Use this endpoint when you need a comprehensive, up-to-date pricing breakdown specifically for Cloudflare Workers AI models in a single call, rather than scraping Cloudflare's documentation manually. Prefer this over generic LLM price comparison sites when you want structured, machine-readable data with cache and batch pricing included alongside context window and capability metadata.

## Known failure modes

- Pricing data temporarily stale if hourly refresh is delayed
- Model may not appear if Cloudflare has not yet published its pricing
- Empty result set if Cloudflare Workers AI has no models indexed at query time
- HTTP 402 if payment of $0.01 USDC is not provided via x402 protocol
- Network timeout if the aggregation backend is slow

## How this service works

Cloudflare Workers AI pricing table: per-token cost of every AI model Cloudflare Workers AI 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 Cloudflare Workers AI 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 by Cloudflare Workers AI, each with input cost, output cost, cache cost, and batch cost in USD per 1M tokens, plus context window size and capability flags. Results are sorted cheapest first and refreshed hourly from public pricing 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-cloudflare-workers-ai-pricing-table-215b6cc9/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)
