AI Game Maker · x402 BETA — key-gated
integrate

Integration guide

Three requests: quote, challenge, signed retry. The full x402 v2 flow in curl.

1 · Get access

This deployment is beta-gated — requests must carry an operator-issued beta key. Send every request with:

# headers (beta stage)
x-beta-key: <your-beta-key>
x-project-id: <your-project>
Authorization: Bearer <project-token>

2 · Quote

curl -s -X POST https://game-dev.ggwp.now/v1/quotes \
  -H "content-type: application/json" -H "x-beta-key: <key>" -H "x-project-id: <project>" \
  -d '{"tool_id":"image.generate","input":{"prompt":"a red cube","quality":"standard"}}'

3 · Run (x402 challenge → signed retry)

# first call returns HTTP 402 + PAYMENT-REQUIRED;
# sign the challenge with your wallet and retry with:
PAYMENT-SIGNATURE: <base64(payment payload)>

Reference client: clients/claude-x402 (Node) or the in-browser buyer.