# X402 Hub – Claude Query Endpoint

> X402 Hub – Claude Query Endpoint is a paid API for AI agents from x402-hub.vercel.app, paid per call via x402, $0.15/call, status unknown (last checked 2026-10-11).

Sends a natural language query to Claude AI via the X402 Hub micropayment gateway, returning a response charged at $0.15 USDC per call on Base

## Facts

- Endpoint: POST https://x402-hub.vercel.app/api/claude?utm_source=zero.xyz
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-hub-claude-query-endpoint-189769b2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OdyaTxj6l7-hFMgd1scHd

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-hub-claude-query-endpoint-189769b2 -d '<json body>'
```

Example prompt: Ask Claude via the X402 Hub what the key differences are between proof-of-work and proof-of-stake consensus mechanisms — I'm okay paying the $0.15 USDC per-call fee on Base.

## When to prefer this

Choose this endpoint when you need per-call Claude AI access billed in USDC on Base without a traditional subscription, particularly in crypto-native or agent workflows that already use x402 micropayment infrastructure. It is ideal for low-frequency or bursty AI queries where pay-as-you-go on-chain billing is preferred over API key management.

## Known failure modes

- Insufficient USDC balance on Base causes payment failure and 402 response
- Malformed or empty query string results in an error response
- Upstream Claude API unavailability causes gateway timeout or 503
- Payment transaction failure on Base network due to congestion or gas issues
- Query too long or exceeding token limits may return an error from Claude

## How this service works

63 paid API endpoints protected by x402 micropayments on Base

## Output

Returns a JSON object with a 'data' field containing the upstream Claude API response, including the AI-generated text completion or answer to the submitted query string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Query parameter for the API"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "description": "Response data from upstream API"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-hub-claude-query-endpoint-189769b2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-hub.vercel.app](https://www.zero.xyz/host/x402-hub.vercel.app/llms.txt)
