# Pricing (price table `v1`)

The list price of a call is a pure function of the request shape, decided before the call runs: the first matching rule below wins. The free plan is keyed (a key is issued instantly from an email) and carries a daily allowance per class; `GET /v1/price` serves this table.

## Classes

| class | units | free plan per day | engine limits |
|---|---|---|---|
| `report` | 0 | unlimited | none: deadline 2 s |
| `lookup` | 1 | 100 | pg: deadline 2 s |
| `feed` | 2 | 20 | pg: deadline 3 s |
| `series` | 3 | 10 | duckdb: deadline 5 s, read ceiling 64 MB |
| `live_dry` | 0 | 20 | none: deadline 2 s |
| `live` | 50 | 0 | none: deadline 2 s |
| `query.s` | 5 | 10 | pg: deadline 5 s |
| `query.m` | 20 | 2 | pg: deadline 10 s; duckdb: deadline 15 s, read ceiling 512 MB |
| `query.l` | 80 | 0 | duckdb: deadline 60 s, read ceiling 4096 MB |

## Rules (first match wins)

| # | tools | when | class |
|---|---|---|---|
| 1 | `get_coverage_report`, `price` | `{}` | `report` |
| 2 | `get_app`, `get_developer`, `search_apps` | `{}` | `lookup` |
| 3 | `get_change_feed` | `{}` | `feed` |
| 4 | `get_rank_history` | `{}` | `series` |
| 5 | `fetch_now` | `{"channel_mode": "dry"}` | `live_dry` |
| 6 | `fetch_now` | `{"channel_mode": "live"}` | `live` |
| 7 | `query_corpus` | `{"engine": "duckdb", "any_of": [{"days_gt": 90}, {"high_card": true}]}` | `query.l` |
| 8 | `query_corpus` | `{"engine": "duckdb"}` | `query.m` |
| 9 | `query_corpus` | `{"engine": "pg", "dataset": "review_observations", "days_gt": 90}` | `query.m` |
| 10 | `query_corpus` | `{"engine": "pg", "limit_gt": 100}` | `query.m` |
| 11 | `query_corpus` | `{"engine": "pg"}` | `query.s` |

## Charging

`ok` calls are charged (empty results included); rejected, failed, timed-out, replayed and reservation-lost calls are 0; `settlement_unknown` reports `null` and is resolved by repeating the call with the same `Idempotency-Key` (a settled call is replayed, never charged twice). Issuance: at most 10 free keys per address per day.