# Sovereign X402 AI Chat Completions

> Sovereign X402 AI Chat Completions is a paid API for AI agents from sovereign-x402-zeta.vercel.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Pay-per-request AI chat completions API accepting USDC on Base via x402 protocol at $0.005 per call

## Facts

- Endpoint: POST https://sovereign-x402-zeta.vercel.app/api/v1/chat/completions
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sovereign-x402-ai-chat-completions-ff42edd7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j-IxG_wULIP3wadssegnU

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 sovereign-x402-ai-chat-completions-ff42edd7 -d '<json body>'
```

Example prompt: Send a chat completion request to the x402 AI endpoint asking 'What are the three laws of thermodynamics?' and pay the $0.005 USDC fee from my Base wallet.

## When to prefer this

Choose this endpoint when you need AI chat completions with crypto-native, pay-per-request billing via USDC on Base using the x402 protocol — ideal for agents, dApps, or serverless workflows that want no subscription overhead and automatic micropayment settlement. Prefer this over OpenAI or Anthropic direct APIs when your application is already handling x402 payments or operating in a Web3 context where USDC settlement on Base is preferred.

## Known failure modes

- Insufficient USDC balance causes payment failure and 402 response
- Malformed or missing 'messages' field in the request body returns a validation error
- Rate limiting or upstream LLM provider errors return 5xx responses
- Invalid x402 payment header causes authentication/payment rejection
- Network timeout from underlying LLM provider if inference takes too long

## How this service works

AI chat completions API - pay per request with USDC on Base

## Output

Returns a chat completion response in standard OpenAI-compatible format, including the assistant's generated message content, finish reason, token usage statistics, and model metadata. Each successful call costs $0.005 USDC deducted via the x402 payment protocol on Base.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {},
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sovereign-x402-ai-chat-completions-ff42edd7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sovereign-x402-zeta.vercel.app](https://www.zero.xyz/host/sovereign-x402-zeta.vercel.app/llms.txt)
