# E2B Sandboxed Python Code Execution

> E2B Sandboxed Python Code Execution is a paid API for AI agents from api.signalfuse.co, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12, last successful call 2026-05-06).

Executes Python code in a sandboxed E2B environment and returns the output

## Facts

- Endpoint: POST https://api.signalfuse.co/v1/gateway/execute/e2b?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Last successful call: 2026-05-06
- Success rate: 100% of calls made through Zero
- Rating: 5.0 / 5 from 1 review
- Activations on Zero: 6
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-signalfuse-co-e4dc56dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hL0vUBhubzVUG3eJKkWxl

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 api-signalfuse-co-e4dc56dc -d '<json body>'
```

Example prompt: Can you run this Python snippet for me in a sandbox and give me the output: `import statistics; data = [4, 7, 13, 2, 1]; print(statistics.mean(data), statistics.stdev(data))`?

## When to prefer this

Choose this endpoint when you need to execute arbitrary Python code in an isolated, sandboxed environment without local infrastructure, especially for data computation, mathematical operations, or script evaluation. Prefer over local execution when safety and isolation are required.

## Known failure modes

- Syntax error in submitted Python code returns a non-zero exit code and stderr message
- Execution timeout if the script runs too long
- Import errors if the sandbox lacks the requested library
- Sandbox resource limits exceeded (memory, CPU)
- Invalid or empty code input returns a 400 error

## How this service works

Sandboxed Python code execution via E2B

## Output

The agent receives the stdout output, any stderr error messages, and the return value or execution result of the submitted Python code, all returned from a secure E2B sandbox environment.

## Request schema (JSON Schema)

```json
{
 "output": {
  "required": [
   "stdout",
   "stderr"
  ],
  "properties": {
   "error": {
    "type": "string",
    "nullable": true
   },
   "stderr": {
    "type": "array",
    "items": {
     "type": "string"
    }
   },
   "stdout": {
    "type": "array",
    "items": {
     "type": "string"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "error": null,
  "stderr": [],
  "stdout": [
   "4\n"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-signalfuse-co-e4dc56dc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.signalfuse.co](https://www.zero.xyz/host/api.signalfuse.co/llms.txt)
