# corpusAI LLM Token Prices API

> corpusAI LLM Token Prices API is a paid API for AI agents from cloud.trycorpus.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Returns current and historical LLM token pricing (input, output, cache-read per million tokens) for a specified model across all providers.

## Facts

- Endpoint: GET https://cloud.trycorpus.ai/v1/tokens/quotes?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/corpusai-llm-token-prices-api-4222d9e5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lSd8t1GDScMe58lwYJNha

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 corpusai-llm-token-prices-api-4222d9e5
```

Example prompt: What are the current token prices for deepseek-v3 — input, output, and cache read per million tokens — across all providers?

## When to prefer this

Choose this endpoint when you need structured, machine-readable LLM token pricing data for a specific model, optionally on a specific historical date. It is ideal for cost optimization workflows, budget forecasting, provider comparison, and audit trails. Prefer this over scraping provider websites or using static pricing tables, as it aggregates multi-provider quotes in a single call and supports historical lookups back to a defined baseline.

## Known failure modes

- Invalid or unrecognized model slug returns an error — model must be a canonical slug from /tokens/models
- Invalid date format (not YYYY-MM-DD) causes a validation error
- No pricing data available for the requested model/date combination returns empty quotes array
- Payment failure via x402 (insufficient USDC balance or wallet misconfiguration) blocks the request
- Rate limiting or network timeout if the service is under high load

## How this service works

corpusAI Cloud Pricing: Every listed price for one model on one day: each source and hosting provider, USD per million tokens.

## Output

Returns a JSON object with the queried model slug, date, unit, count of quotes, and an array of pricing quotes. Each quote includes the provider name, SKU, input price per million tokens, output price per million tokens, cache read price per million tokens, context window size, pricing source, and as-of timestamp.

## 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": [
      "model"
     ],
     "properties": {
      "day": {
       "type": "string",
       "format": "date",
       "description": "YYYY-MM-DD; default latest."
      },
      "model": {
       "type": "string",
       "examples": [
        "deepseek-v3"
       ],
       "description": "Canonical model slug from /tokens/models."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "day": {
       "type": "string",
       "format": "date"
      },
      "code": {
       "type": "string"
      },
      "unit": {
       "type": "string"
      },
      "count": {
       "type": "integer"
      },
      "model": {
       "type": "string"
      },
      "quotes": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "sku": {
          "type": "string"
         },
         "as_of": {
          "type": "string"
         },
         "extra": {
          "type": [
           "object",
           "null"
          ]
         },
         "source": {
          "type": "string"
         },
         "context": {
          "type": [
           "integer",
           "null"
          ]
         },
         "provider": {
          "type": "string"
         },
         "input_per_m": {
          "type": [
           "number",
           "null"
          ]
         },
         "output_per_m": {
          "type": [
           "number",
           "null"
          ]
         },
         "cache_read_per_m": {
          "type": [
           "number",
           "null"
          ]
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/corpusai-llm-token-prices-api-4222d9e5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cloud.trycorpus.ai](https://www.zero.xyz/host/cloud.trycorpus.ai/llms.txt)
