# KiteEndpoints.ai Code Execution API

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

Executes arbitrary code snippets remotely and returns the result, billed per request via USDC on Base chain.

## Facts

- Endpoint: POST https://kite-hub-v2.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/kiteendpoints-ai-code-execution-api-53f4c835
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HDKVof2L2g4e3Go_JfP10

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 kiteendpoints-ai-code-execution-api-53f4c835 -d '<json body>'
```

Example prompt: Can you run this Python snippet for me and return the output: `print(sum([1, 2, 3, 4, 5]))`? I want to verify the result without setting up a local environment.

## When to prefer this

Choose this endpoint when you need to execute code snippets remotely on-demand without maintaining your own compute infrastructure, and you are comfortable paying $0.20 USDC per execution via Base chain. Best for lightweight, stateless code execution tasks within the KiteEndpoints.ai ecosystem.

## Known failure modes

- Invalid or malformed code input returns an error in the result object
- Execution timeout for long-running code
- Unsupported language or runtime environment
- Payment failure if USDC balance is insufficient
- Generic 402 Payment Required if payment header is missing

## How this service works

400+ paid API endpoints. Social media, AI, crypto, finance, weather, ecommerce, tools. Pay per request with USDC on Base chain.

## Output

Returns a JSON object containing a `result` field with the execution output or API response data from the code run. The exact shape of the result depends on what was executed.

## 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/kiteendpoints-ai-code-execution-api-53f4c835/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kite-hub-v2.vercel.app](https://www.zero.xyz/host/kite-hub-v2.vercel.app/llms.txt)
