The handshake
How billing aligns with cost
- Hold at start (no charge yet) → Smile may incur cost.
- Settle at decision (charge only if a verdict was produced) → fair to both sides.
- Status reads are free (
GET /v1/sessions/:id). - Compliance lookups are free (
GET /v1/compliance/:address— on-chain read mirror).
When to use x402
- You’re building for an autonomous agent, not a human dev.
- You want no signup, no key, just a wallet.
- You’re calling per-transaction and want strict cost↔value alignment.
x-api-key.