# Pricing & Payment — EU AI Act API

All four collections are paywalled at **0.001 USDC per file** on **Base mainnet**
(`eip155:8453`, network `base`) via the [x402](https://x402.org) protocol.

## Free endpoints
- `GET /manifest.json` — full machine index
- `GET /llms.txt` — AI discovery map
- `GET /pricing.md` — this document
- `GET /.well-known/x402` — x402 auto-discovery document (payable collections + payment terms)
- `GET /openapi.json` — OpenAPI 3.1 description of all endpoints (x402 terms per paid operation)
- Free samples (one per collection, to inspect format before paying): `/articles/001`, `/recitals/001`, `/annexes/I`, `/definitions/01`

## Paid endpoints (402 Payment Required until paid)
- `GET /articles/:n` — e.g. `/articles/006`
- `GET /recitals/:n` — e.g. `/recitals/006`
- `GET /annexes/:id` — e.g. `/annexes/III`
- `GET /definitions/:n` — e.g. `/definitions/01`

## Bundle SKU (one payment for many files)
Buying the whole Act à la carte is 374 separate x402 handshakes. The bundle
collapses that into a single payment and settlement, returning every file at once
(`?format=json` map, default; `?format=md` concatenated for an LLM context window):

- `GET /bundle` — whole corpus (374 files) — **0.2 USDC**
- `GET /bundle/articles` — **0.08 USDC** · `GET /bundle/recitals` — **0.12 USDC**
- `GET /bundle/annexes` — **0.01 USDC** · `GET /bundle/definitions` — **0.05 USDC**

Bundle prices are the build-time defaults; the live terms are quoted by the 402,
`/.well-known/x402`, and `/openapi.json` (all runtime-tunable via `BUNDLE_PRICE_*`).

## x402 flow
1. Request a paid route. The server responds `402 Payment Required` with an
   `accepts` array describing payment requirements (Base network, USDC, price).
2. Construct and sign the payment; retry with the `X-PAYMENT` header.
3. The facilitator (Coinbase CDP, `https://api.cdp.coinbase.com/platform/v2/x402`) verifies and settles;
   the server returns the file with an `X-PAYMENT-RESPONSE` header.

Payments are sent to the configured `PAY_TO_ADDRESS` (a 0x… address supplied at deploy).
