# x402 AI APIs – Claude Endpoint

> x402 AI APIs – Claude Endpoint is a paid API for AI agents from x402-ai-peach.vercel.app, paid per call via x402, $0.15/call, status unknown (last checked 2026-09-14).

Calls Anthropic Claude via a pay-per-use x402 micropayment gateway, returning a chat completion response

## Facts

- Endpoint: POST https://x402-ai-peach.vercel.app/api/claude
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ai-apis-claude-endpoint-8bbd786e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gchrqft4u7k3q2pzwtNFl

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 x402-ai-apis-claude-endpoint-8bbd786e -d '<json body>'
```

Example prompt: Ask Claude: 'Explain the pros and cons of microservices architecture in 3 paragraphs' — use up to 500 tokens and a temperature of 0.7, paying per request via USDC.

## When to prefer this

Choose this endpoint when you need access to Anthropic's Claude model on a strict pay-per-call basis using USDC micropayments via the x402 protocol, without committing to a subscription or managing Anthropic API keys directly. Ideal for agents or applications with intermittent, low-volume, or cost-sensitive Claude usage patterns.

## Known failure modes

- Payment failure or insufficient USDC balance returns a 402 Payment Required error
- Invalid or malformed messages array returns a 400 validation error
- Exceeding model token limits may truncate output or return an error
- Network timeout if the model takes too long, especially for large max_tokens values
- Missing required 'messages' field returns a schema validation error

## How this service works

Paid AI API endpoints via x402 micropayments

## Output

Returns a JSON object containing a response ID and a choices array, where each choice includes a message object with a role ('assistant') and the generated text content from Claude.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "messages"
 ],
 "properties": {
  "stream": {
   "type": "boolean",
   "description": "Stream response"
  },
  "messages": {
   "type": "array",
   "description": "Chat messages array"
  },
  "max_tokens": {
   "type": "integer",
   "description": "Max tokens"
  },
  "temperature": {
   "type": "number",
   "description": "Temperature"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": "string",
   "description": "Response ID"
  },
  "choices": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "message": {
      "type": "object",
      "properties": {
       "role": {
        "type": "string"
       },
       "content": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-ai-apis-claude-endpoint-8bbd786e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-ai-peach.vercel.app](https://www.zero.xyz/host/x402-ai-peach.vercel.app/llms.txt)
