{"uid":"cap_RTUHWT0SwrGJYV3BYGA-c","slug":"crucible-multi-language-code-execution-15b08d06","name":"Crucible Multi-Language Code Execution","description":"7 endpoints for code execution in 60+ languages. Pay per request via x402 on Base chain.","url":"https://crucible-lovat.vercel.app/api/multi","method":"POST","headers":{},"bodySchema":{"type":"object","required":["files","language"],"properties":{"files":{"type":"array","description":"Array of code files"},"stdin":{"type":"string","description":"Standard input (optional)"},"version":{"type":"string","description":"Language version (optional)"},"language":{"type":"string","description":"Programming language"}}},"responseSchema":{"type":"object","required":["success"],"properties":{"data":{"type":"object"},"success":{"type":"boolean"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.15","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.15/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WYYPMUwQNZhHbgbCWC-qP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.15","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes code in 60+ programming languages and returns the result, paid per request via x402 on Base chain","exampleAgentPrompt":"Can you run this Python script for me and show me the output? The code reads from stdin so pass in '42' as input: `import sys; n = int(sys.stdin.read()); print(n * n)`","exampleUseCases":[{"title":"Test snippet in multiple languages","prompt":"I have this sorting algorithm I want to test in both Python and Go to compare the outputs. Can you run it in both languages and show me the results? Here's the logic: given the list [5, 2, 8, 1, 9], sort it and print each element on a new line."},{"title":"Evaluate math expression with code","prompt":"Can you calculate the first 20 Fibonacci numbers for me by running a quick script? I don't have a local environment set up, so just execute it in whatever language is easiest and show me the output."},{"title":"Run shell script and capture output","prompt":"I need to know what this shell script outputs — can you run it in a sandbox and show me the stdout? Here it is: `echo 'Hello from shell'; for i in 1 2 3 4 5; do echo \"Number: $i\"; done`"}],"resultDescription":"A JSON object with a boolean 'success' field and a 'data' object containing execution results such as stdout, stderr, exit code, and runtime information from the sandboxed execution environment.","failureModes":["Unsupported language specified — returns error indicating language not available among 60+ supported","Invalid or malformed files array — returns validation error","Code times out during execution — returns timeout error","Runtime error in user code — returns success:false with stderr details","Payment failure via x402 — returns 402 Payment Required before execution","Syntax error in submitted code — returns compilation/parse error in response"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to actually execute arbitrary code across a wide variety of programming languages without managing infrastructure. Ideal for sandboxed code testing, dynamic computation, script evaluation, or any scenario where code must be run and results returned in real-time. Preferred over local execution when the agent has no runtime environment, and over single-language execution services when polyglot support across 60+ languages is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:35:11.284Z","isFirstParty":false}