# Clervo AI Execute

> Clervo AI Execute is a paid API for AI agents from api.clervo.dev, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Executes an AI task (e.g. chat completion) via Clervo's outcome infrastructure, returning a settled result with a payment receipt

## Facts

- Endpoint: POST https://api.clervo.dev/v1/ai/execute
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/clervo-ai-execute-b82c40c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zzP0C0PsY8KXsvEXsiICv

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 clervo-ai-execute-b82c40c7 -d '<json body>'
```

Example prompt: Use Clervo to run a chat completion for the product 'ai.chat' — send the message 'What is the capital of France?' and confirm the result is settled with a receipt.

## When to prefer this

Choose this endpoint when you need a receipted, payment-settled AI inference call with verifiable outcome proof — especially in agentic pipelines where accountability and micropayment settlement (via x402) matter. Prefer it over raw LLM APIs when you need a combined execution + payment receipt in one response, or when building agent workflows that require auditable per-call billing.

## Known failure modes

- Payment failure or insufficient USDC balance — settlement status not 'settled'
- Invalid or unsupported productId — endpoint may return an error or unexpected state
- Model unavailable — exactModelId not resolved, response may be empty or errored
- Malformed request body — missing required fields causes a 4xx error
- Network timeout — agent receives no receipt and must retry idempotently with caution

## How this service works

Bounded ai.chat execution

## Output

A JSON object containing: 'state' (e.g. RECEIPTED), 'result.output' with the AI response (kind + content), 'receipt.settlement.status' confirming payment settlement, 'replayed' boolean, 'productId', and 'exactModelId' of the model used.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "state": "RECEIPTED",
  "result": {
   "output": {
    "kind": "chat",
    "content": "Idempotency prevents a retry from becoming a second logical operation or charge."
   }
  },
  "receipt": {
   "settlement": {
    "status": "settled"
   }
  },
  "replayed": false,
  "productId": "ai.chat",
  "exactModelId": "clervo/allam-2-7b"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/clervo-ai-execute-b82c40c7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.clervo.dev](https://www.zero.xyz/host/api.clervo.dev/llms.txt)
