# BlackBobs.ai Code Execution API

> BlackBobs.ai Code Execution API is a paid API for AI agents from blackbobs-ai.vercel.app, paid per call via x402, $0.2/call, status unknown (last checked 2026-09-15).

Executes code remotely and returns the result, enabling AI agents to run arbitrary code snippets on demand

## Facts

- Endpoint: POST https://blackbobs-ai.vercel.app/api/code-exec
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blackbobs-ai-code-execution-api-2ca3cb30
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FoxsmpnuDNCkdB6uI24GS

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 blackbobs-ai-code-execution-api-2ca3cb30 -d '<json body>'
```

Example prompt: Can you run this Python snippet for me and give me the output: `result = sum([1, 2, 3, 4, 5]); print(result)`?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

194 production-ready API endpoints. AI, Search, Social, Finance, Crypto. Pay-per-call with x402 on Base chain.

## Output

Returns a result object containing the execution output data from the code run, wrapped in a standard response envelope with a `result` key.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "result": {
   "type": "object",
   "description": "API response data"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "example": {
  "result": {
   "data": "example response"
  }
 },
 "properties": {
  "result": {
   "type": "object",
   "description": "API response data"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blackbobs-ai-code-execution-api-2ca3cb30/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blackbobs-ai.vercel.app](https://www.zero.xyz/host/blackbobs-ai.vercel.app/llms.txt)
