Framework Code Generator

Pick a framework and an endpoint — get a copy-paste working paid client with x402 payment wired (USDC on Base). Two minutes from here to a calling agent. Prices and URLs are read live from the clinic catalogue, so the snippet never goes stale. Your payer key is read from the X402_PAYER_KEY environment variable — it is never printed, sent, or stored by this page.

loading catalogue…


# Your snippet will appear here.

Snippets are Python. The payment core is the same one the fleet's own code generator emits (402 → EIP-712 TransferWithAuthorization → Payment-Signature retry). Endpoints whose input fields are documented get a ready body; the rest get a clearly marked payload_json placeholder — no invented fields. Generation and copy events are counted anonymously (framework + endpoint only) at POST /clinic/fwgen/count so we can tell which integrations people actually use.

How it works

1. export X402_PAYER_KEY=0x… — a Base wallet holding a little USDC.
2. Paste the snippet, pip install the two/three packages named in its header.
3. Run it, or register the tool with your agent. The first call from a fresh IP is usually served by the free-trial layer; once the trial quota is used, the same code pays per call automatically — no change needed.

See also: migration kit (switch from another x402 seller), payment doctor (diagnose a failed payment by tx hash, estimate costs, spend alerts), plain code generator (JS/Python/cURL without a framework). Seller wallet (payTo): 0x198f3895551B309fF5C5F59e690FB0823d10EA93 · Network: Base (eip155:8453) · Asset: USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913.