# CanaryGuard LLM Token Pricing & Model Router

> CanaryGuard LLM Token Pricing & Model Router is a paid API for AI agents from canaryguard-402.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-16).

Calculates exact input, cached-input, and output token costs across frontier LLMs and recommends optimal model routing based on cost and capability.

## Facts

- Endpoint: GET https://canaryguard-402.onrender.com/v1/llm-token-pricing?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/canaryguard-llm-token-pricing-model-router-eb1d4699
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xFRUpc-L3ZvkoB0lnVRXH

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 canaryguard-llm-token-pricing-model-router-eb1d4699
```

Example prompt: Compare the exact token costs for running my prompt on claude-3-7-sonnet, GPT-4o, and Gemini 1.5 Pro, and tell me which model gives the best price for a workload with lots of cached input tokens.

## When to prefer this

Choose this endpoint when you need accurate, up-to-date per-token cost comparisons across multiple frontier LLMs in a single call, especially when optimizing agent pipelines for cost or deciding on model routing strategies. Prefer it over manual lookup when you need cached-input pricing factored in or want an automated routing recommendation rather than just raw price tables.

## Known failure modes

- Unknown or unsupported model name returns an error or null pricing
- Malformed request body missing required fields returns a 400-level error
- Stale pricing data if provider hasn't updated rates recently
- Rate or quota limits on the paid endpoint returning a 402 or 429

## How this service works

Calculates exact input, cached-input, and output token costs across frontier LLMs (OpenAI, Anthropic, Gemini, DeepSeek, Meta) and recommends optimal model routing.

## Output

Returns a structured cost breakdown showing input token cost, cached-input token cost, and output token cost for each queried model, along with a recommended model routing decision based on cost-efficiency.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string",
   "default": "claude-3-7-sonnet"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/canaryguard-llm-token-pricing-model-router-eb1d4699/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from canaryguard-402.onrender.com](https://www.zero.xyz/host/canaryguard-402.onrender.com/llms.txt)
