{
  "generated_at": "2026-04-24T15:01:35.625676+00:00",
  "slug": "x402-gencode-run-api-execute",
  "title": "GenCode \u00b7 Secure Code Execution Sandbox",
  "url": "https://x402.gencode.run/api/execute",
  "category": "compute",
  "summary": "Executes code in a secure sandbox environment with built-in web3 libraries, returning output or error details.",
  "seo": {
    "title": "Secure Code Sandbox API | GenCode x402",
    "description": "Execute Python, JavaScript and more in a secure cloud sandbox with web3 libraries built-in. Pay 0.01 USDC per execution on Base."
  },
  "use_cases": [
    "Run untrusted code safely in isolated environments",
    "Execute Python/JavaScript with web3 capabilities",
    "Build serverless compute for agent workflows",
    "Test smart contract interactions in sandboxed code"
  ],
  "ideal_buyer": "Developers needing secure, pay-per-use code execution with blockchain library access.",
  "example_prompt": "Execute Python code that queries the latest Ethereum block number using web3.py.",
  "example_request_body": {
    "code": "from web3 import Web3\nw3 = Web3(Web3.HTTPProvider('https://mainnet.infura.io/v3/...'))\nprint(w3.eth.block_number)",
    "language": "python"
  },
  "risk_notes": [],
  "pricing_sanity": {
    "flag": "expensive",
    "ratio": 3.333,
    "median_category_atomic": 3000
  },
  "pricing_review_required": false,
  "pricing_decimal_suspect": false,
  "trust_tier": "indexed_external",
  "accepts": [
    {
      "scheme": "exact",
      "network": "base",
      "pay_to": "0x56a0af9f4fffc07cb6215864c7ad074bd5d97b60",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "max_amount_required_atomic": "10000",
      "max_timeout_seconds": 30,
      "mime_type": "application/json",
      "description": "Secure cloud sandbox for AI agents. Execute Python, JavaScript & more with web3 libraries built in. Pay per execution with x402.",
      "verified": false,
      "hints": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "code": {
              "type": "string",
              "required": true,
              "description": "The code to execute"
            },
            "language": {
              "enum": [
                "python",
                "javascript",
                "js",
                "typescript",
                "ts",
                "r",
                "java",
                "bash"
              ],
              "type": "string",
              "required": false,
              "description": "Programming language (default: python)"
            }
          }
        },
        "output": {
          "type": "object",
          "properties": {
            "error": {
              "type": "string"
            },
            "output": {
              "type": "object"
            },
            "success": {
              "type": "boolean"
            }
          }
        }
      }
    }
  ],
  "origin": {
    "slug": "x402-gencode-run",
    "host": "x402.gencode.run",
    "url": "https://x402.gencode.run",
    "favicon": "https://x402.gencode.run/logo.svg"
  },
  "json_ld": {
    "@id": "https://x402all.com/resource/x402-gencode-run-api-execute",
    "url": "https://x402all.com/resource/x402-gencode-run-api-execute",
    "name": "GenCode \u00b7 Secure Code Execution Sandbox",
    "@type": "WebAPI",
    "offers": {
      "url": "https://x402all.com/resource/x402-gencode-run-api-execute",
      "@type": "Offer",
      "price": "0.01",
      "availability": "https://schema.org/InStock",
      "priceCurrency": "USDC",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "0.010000",
        "unitText": "call",
        "priceCurrency": "USDC"
      },
      "eligibleCustomerType": "Agent",
      "additionalProperty": [
        {
          "@type": "PropertyValue",
          "name": "paymentNetwork",
          "value": "base"
        },
        {
          "@type": "PropertyValue",
          "name": "paymentAsset",
          "value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
        }
      ]
    },
    "sameAs": "https://x402.gencode.run/api/execute",
    "@context": "https://schema.org",
    "provider": {
      "@id": "https://x402all.com/server/x402-gencode-run",
      "url": "https://x402.gencode.run",
      "name": "x402.gencode.run",
      "@type": "Organization"
    },
    "identifier": "x402-gencode-run-api-execute",
    "description": "Execute Python, JavaScript and more in a secure cloud sandbox with web3 libraries built-in. Pay 0.01 USDC per execution on Base.",
    "potentialAction": {
      "@type": "BuyAction",
      "target": "https://axon402.com/test-buy?resource=x402-gencode-run-api-execute",
      "description": "Test-buy this endpoint on AXON"
    },
    "applicationCategory": "compute"
  },
  "axon_deep_link": "https://axon402.com/test-buy?resource=x402-gencode-run-api-execute"
}
