{"uid":"cap_FoxsmpnuDNCkdB6uI24GS","slug":"blackbobs-ai-code-execution-api-2ca3cb30","name":"BlackBobs.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://blackbobs-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_Dsj57X0lPv_Lwui4_Xf04","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 code remotely and returns the result, enabling AI agents to run arbitrary code snippets on demand","exampleAgentPrompt":"Can you run this Python snippet for me and give me the output: `result = sum([1, 2, 3, 4, 5]); print(result)`?","exampleUseCases":[{"title":"On-demand math computation via code","prompt":"I need you to execute this Python expression for me: `import math; print(math.factorial(12))` and tell me the result."},{"title":"Data transformation script execution","prompt":"Run this code snippet that converts a list of Celsius temperatures to Fahrenheit and return the output: `temps = [0, 20, 37, 100]; print([round(t * 9/5 + 32, 2) for t in temps])`"},{"title":"Automated workflow code step","prompt":"As part of my pipeline, execute this JavaScript-style logic snippet and return whatever it prints so I can use the value in the next step."}],"resultDescription":"Returns a result object containing the execution output data from the code run, wrapped in a standard response envelope with a `result` key.","failureModes":["Code syntax errors causing execution failure","Timeout if code runs too long","Unsupported language or runtime environment","Payment failure via x402 on Base chain blocking the request","Malformed input schema causing a 400 error"],"whenToPreferThis":"Choose this endpoint when you need to execute arbitrary code snippets remotely without setting up a local runtime, especially in agentic pipelines that require dynamic computation steps and support x402 micropayments on Base chain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:43:59.470Z","isFirstParty":false}