# Rate Limits & Quotas Two limits apply to every key: | Plan | Monthly quota | Per-minute limit | |------|--------------:|-----------------:| | Free | 100 | 10/min | | Builder | 5,000 | 60/min | | Pro | 50,000 | 300/min | Monthly quota resets on the **first of each calendar month at 00:00 UTC**. ## Response headers Every response tells you where you stand: ``` X-RateLimit-Limit: 5000 # Monthly quota for your plan X-RateLimit-Remaining: 4567 # Requests remaining this month X-RateLimit-Reset: 1753920000 # Unix timestamp when quota resets X-CostKits-Latency-Ms: 42 # Server-side processing time ``` ## When you hit the limit You receive `429 Too Many Requests` (RFC 7807 body with `agent_hint`, like all errors). Recommended handling: - **Per-minute 429s** are transient — retry with exponential backoff (start ~2s). - **Monthly-quota 429s** won't clear until reset — check `X-RateLimit-Reset` before retrying, and consider upgrading at [costkits.com/api-keys/](https://www.costkits.com/api-keys/). - The error body's `retryable` field distinguishes the two. ## Reducing request volume - `POST /v1/estimate/full` chains ontology + cost + providers + liability in **one** metered call — use its `fields` parameter to fetch only what you need. - Estimate responses are stable within a `data_vintage` (quarterly) — cache aggressively, keyed on `procedure + state + data_vintage`. - `POST /v1/estimate/procedure` supports an `Idempotency-Key` header with a 24-hour deduplication window, so client retries don't double-count.