# Crucible Multi-Language Code Execution

> Crucible Multi-Language Code Execution is a paid API for AI agents from crucible-lovat.vercel.app, paid per call via x402, $0.15/call, status unknown (last checked 2026-09-15).

Executes code in 60+ programming languages and returns the result, paid per request via x402 on Base chain

## Facts

- Endpoint: POST https://crucible-lovat.vercel.app/api/multi
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crucible-multi-language-code-execution-15b08d06
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RTUHWT0SwrGJYV3BYGA-c

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability crucible-multi-language-code-execution-15b08d06 -d '<json body>'
```

Example prompt: 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)`

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

7 endpoints for code execution in 60+ languages. Pay per request via x402 on Base chain.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success"
 ],
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crucible-multi-language-code-execution-15b08d06/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from crucible-lovat.vercel.app](https://www.zero.xyz/host/crucible-lovat.vercel.app/llms.txt)
