{"uid":"cap_nzCH2luih8Z_XOt4ezY4a","slug":"coockies-ai-code-execution-api-318b07a6","name":"Coockies.ai Code Execution API","description":"194 production-ready API endpoints. AI, Search, Social, Finance, Crypto. Pay-per-call with x402 on Base chain.","url":"https://coockies-ai.vercel.app/api/code-exec","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"result":{"type":"object","description":"API response data"}}},"responseSchema":{"type":"object","example":{"result":{"data":"example response"}},"properties":{"result":{"type":"object","description":"API response data"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.2","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.2/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cE1BYDYzhsnLoeJHzXYiZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.2","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes arbitrary code remotely and returns the result, billed per-call via x402 on Base chain","exampleAgentPrompt":"Can you run this code snippet for me and return the output? Here's the logic I want executed: `result = sum([1, 2, 3, 4, 5]); return result`","exampleUseCases":null,"resultDescription":"Returns a JSON object with a `result` field containing the output data from the executed code, structured as `{result: {data: ...}}`","failureModes":["Malformed or missing input object causes 400 error","Code execution timeout if snippet runs too long","Payment failure on Base chain causes 402 error","Internal execution sandbox error returns 500","Unsupported language or syntax causes execution failure"],"whenToPreferThis":"Use this endpoint when you need to execute code dynamically in a cloud environment without provisioning your own infrastructure, and when you want to pay only per execution call using USDC on Base chain via x402 protocol. Prefer this over self-hosted solutions when minimizing setup overhead is a priority for AI agent workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-21T00:32:05.936Z","isFirstParty":false}