# KiteEndpoints.ai - Code Execution API

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

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

## Facts

- Endpoint: POST https://kite-endpoints.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-9b6b9d72
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6EkXOdPmc_cirsmsJHSjd

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-9b6b9d72 -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need to execute code remotely on a pay-per-use basis without managing infrastructure, and you are already operating within the KiteEndpoints ecosystem paying via USDC on Base. Suitable for lightweight, ad-hoc code execution tasks where setting up a dedicated compute environment is overkill.

## Known failure modes

- Malformed or unsupported code causes execution failure
- Payment failure due to insufficient USDC balance on Base chain
- Timeout if code execution exceeds allowed duration
- Empty or null result object if code produces no output
- HTTP 402 if x402 payment is not properly handled

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

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