# KiteEndpoints.ai Code Execution API

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

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

## Facts

- Endpoint: POST https://kite-hub-v3.vercel.app/api/code-exec
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kiteendpoints-ai-code-execution-api-66ae0ba2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AjfBJUWU4hMAWnsv3F2ci

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-66ae0ba2 -d '<json body>'
```

Example prompt: Can you run this Python snippet for me remotely using KiteEndpoints and return what it outputs: `print(sum([1, 2, 3, 4, 5]))`?

## When to prefer this

Choose this endpoint when you need to execute code snippets remotely without local compute resources, especially in agentic workflows that require dynamic computation billed per-use via USDC micropayments on Base chain.

## Known failure modes

- Invalid or malformed code input returns an error response
- Execution timeout if code runs too long
- Payment failure if insufficient USDC balance on Base chain
- Unsupported language or runtime returns an error
- Server-side sandbox error returns a generic failure response

## 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 result object containing the output data from the executed code, structured as a JSON object with a 'result' field containing 'data'.

## 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-66ae0ba2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kite-hub-v3.vercel.app](https://www.zero.xyz/host/kite-hub-v3.vercel.app/llms.txt)
