{"uid":"cap_B2ZhWxRgEee0jTMduixnH","slug":"crucible-code-execution-api-1cef6f61","name":"Crucible Code Execution API","description":"7 endpoints for code execution in 60+ languages. Pay per request via x402 on Base chain.","url":"https://crucible-lovat.vercel.app/api/execute","method":"POST","headers":{},"bodySchema":{"type":"object","required":["code","language"],"properties":{"code":{"type":"string","description":"Source code to execute"},"stdin":{"type":"string","description":"Standard input (optional)"},"version":{"type":"string","description":"Language version (optional, defaults to latest)"},"language":{"type":"string","description":"Programming language (e.g. python, javascript, rust)"}}},"responseSchema":{"type":"object","required":["success"],"properties":{"data":{"type":"object","properties":{"code":{"type":"number"},"output":{"type":"string"},"stderr":{"type":"string"},"stdout":{"type":"string"},"version":{"type":"string"},"language":{"type":"string"}}},"success":{"type":"boolean"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ThVK0_nw4Htqu_RZlalWQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes source code in 60+ programming languages and returns stdout, stderr, and exit code","exampleAgentPrompt":"Run this Python snippet for me and show me what it prints: `import math; print(math.factorial(10))`","exampleUseCases":[{"title":"Debug failing code snippet remotely","prompt":"I wrote this JavaScript function but I'm not sure why it's returning undefined. Can you run it in a sandbox and show me the stdout and any errors? `function greet(name) { return 'Hello, ' + name; } console.log(greet());`"},{"title":"Test algorithm in multiple languages","prompt":"I want to see how a basic bubble sort performs in both Python and Go — can you run the same sorting logic in each language and show me the output?"},{"title":"Evaluate math expression via code","prompt":"Can you run this Haskell snippet for me and tell me what it outputs? `main = print (sum [1..100])`"}],"resultDescription":"A JSON object with a success boolean and a data object containing stdout, stderr, exit code, the language used, and the runtime version that executed the code.","failureModes":["Unsupported language returns an error or empty response","Code with syntax errors returns non-zero exit code with stderr populated","Infinite loops or long-running code may time out","Missing required 'code' or 'language' fields returns validation error","Payment failure on Base chain blocks the request","Runtime crash returns success:false with error details in stderr"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to dynamically execute code snippets across a wide variety of programming languages without maintaining local runtimes. Ideal for running user-provided code, verifying algorithmic logic, evaluating expressions, or testing functions in sandboxed environments. Particularly useful when the required language is one of the 60+ supported languages and a pay-per-use model via x402 on Base is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:33:11.676Z","isFirstParty":false}