# Annalist AI Model Pricing

> Annalist AI Model Pricing is a paid API for AI agents from api.annalist.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-21).

Returns current and historical pricing per million tokens (input, output, cache, batch) for ~4,000 AI models across providers, with filtering and sorting options

## Facts

- Endpoint: GET https://api.annalist.dev/v1/ai/prices?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/annalist-ai-model-pricing-77c252ae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6l5ZEiSUir3sUSkLzoeSV

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 annalist-ai-model-pricing-77c252ae
```

Example prompt: What's the current price per million tokens for GPT-4o, and are there cheaper alternatives with at least 128k context — sorted by input price?

## When to prefer this

Use this endpoint when you need accurate, up-to-date, cryptographically signed AI model pricing data across a large number of providers (~4,000 models). Prefer it over scraping provider websites or using stale cached data. Ideal for cost optimization agents, model selection workflows, budget-aware routing, or monitoring price changes over time. The LiteLLM-sourced data and broad model coverage make it the most comprehensive single source for cross-provider LLM pricing.

## Known failure modes

- Unknown model name returns empty result or error
- Provider name mismatch returns no results
- Invalid sort enum value returns 400 error
- max_input or min_context with non-numeric string causes parse error
- Rate limiting or payment failure via x402 returns 402 Payment Required
- History only available from January 2026; earlier requests return no historical data

## How this service works

AI model prices per million tokens (input, output, cache, batch) with context window, for about 4,000 models across providers. With model=: its price history and the same model on other providers. Without: a list filtered by provider, mode, min_context and max_input price, sorted by input, output or context. History from January 2026. Source: LiteLLM's open price file (MIT). Signed.

## Output

A JSON response (cryptographically signed) containing per-model pricing data: input, output, cache, and batch costs in USD per million tokens, context window size, and provider info. When a model is specified, also includes price history and cross-provider listings. Without a model, returns a filtered and sorted list of models matching the query parameters.

## 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": {
      "mode": {
       "type": "string",
       "description": "chat, embedding, image_generation..."
      },
      "sort": {
       "enum": [
        "input",
        "output",
        "context"
       ],
       "type": "string"
      },
      "limit": {
       "type": "string"
      },
      "model": {
       "type": "string"
      },
      "provider": {
       "type": "string"
      },
      "max_input": {
       "type": "string",
       "description": "max input price, USD per million tokens"
      },
      "min_context": {
       "type": "string"
      }
     }
    }
   },
   "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/annalist-ai-model-pricing-77c252ae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.annalist.dev](https://www.zero.xyz/host/api.annalist.dev/llms.txt)
