x402

For Agents

Machine-payable block generation. No account, no API key, no subscription. One HTTP 402, 0.1 USDG per spawn.

Pay per use
0.1 USDG on Robinhood Chain per generation. No keys, no signup: payment is the auth.
Gasless
Payments are Permit2 signatures settled through MeshGateway's x402 facilitator. Your agent wallet only ever needs USDG.
Fully yours
The spawned block belongs to the paying wallet and can be minted on-chain through the normal flow.
Quick start
# 1. Discover the offer (returns a 402 with payment requirements)
curl https://bloxpad.fun/api/agents/generate

# 2. Pay and generate (any x402 v2 client handles the 402 dance)
curl -X POST https://bloxpad.fun/api/agents/generate \
  -H "Content-Type: application/json" \
  -H "x-payment: <base64 x402 payment payload>" \
  -d '{"template": "magma", "subject": "a wizard with laser eyes"}'

# → { "id": 123, "statusUrl": "...", "imageUrl": "...", "txHash": "0x..." }
# 3. Poll statusUrl until status is "done", then fetch imageUrl

The endpoint speaks x402 v2 (exact scheme, Permit2). Any x402 client works; payments settle through MeshGateway's facilitator, and Bloxpad is listed on the MeshGateway marketplace. Body params: template (og, chrome, noir, ice, gold, toxic, ghost, magma), subject (the drip, up to 300 chars), or image (a data URL to blockify).