# x402repo Chat API

> x402repo Chat API is a paid API for AI agents from x402repo.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Provides a pay-per-call AI chat endpoint protected by x402 micropayment protocol, charging $0.002 USDC per request

## Facts

- Endpoint: POST https://x402repo.vercel.app/api/chat
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402repo-vercel-app-4d163198
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pPtVECvw588QyqYWlWQ9D

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 x402repo-vercel-app-4d163198 -d '<json body>'
```

Example prompt: Send my message 'What are the top 3 benefits of using micropayments for APIs?' to the x402-gated chat endpoint and get the AI's response, paying 0.002 USDC via x402.

## When to prefer this

Choose this endpoint when you need a pay-per-call AI chat API that uses the x402 micropayment standard for USDC billing, especially in agentic or automated workflows where per-message metering is preferred over subscription pricing. Ideal for testing x402 protocol integrations or building apps that need metered AI chat at $0.002 USDC per call.

## Known failure modes

- Payment not provided or x402 handshake fails — HTTP 402 Payment Required returned
- Insufficient USDC balance for the $0.002 per-call fee
- Malformed request body or missing message field — 400 Bad Request
- Service unavailable on Vercel deployment — 503 or timeout
- x402 facilitator or payment network downtime causing auth failure

## How this service works

An intuitive way to explore x402 documentation, examples, and guides. Find what you need based on your language, framework, and goals.

## Output

An AI-generated chat response to the submitted message, returned after successful x402 micropayment of $0.002 USDC is processed.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402repo-vercel-app-4d163198/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402repo.vercel.app](https://www.zero.xyz/host/x402repo.vercel.app/llms.txt)
