x402 code execution for agents
# First request returns 402 with payment details
curl -X POST https://x402.gencode.run/api/execute \
-H "Content-Type: application/json" \
-d '{"code": "print(1+1)", "language": "python"}'
# After payment, include X-Payment header
curl -X POST https://x402.gencode.run/api/execute \
-H "Content-Type: application/json" \
-H "X-Payment: <base64-encoded-payment>" \
-d '{"code": "print(1+1)", "language": "python"}'