# X402 Hub GPT-5 Query Endpoint

> X402 Hub GPT-5 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-12).

Sends a natural language query to a GPT-5-powered API endpoint protected by x402 micropayments on Base, returning AI-generated responses

## Facts

- Endpoint: POST https://x402-hub.vercel.app/api/gpt5?utm_source=zero.xyz
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-hub-gpt-5-query-endpoint-5d73eda7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ifUN9NY4tQUjMTwm2y8IW

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-gpt-5-query-endpoint-5d73eda7 -d '<json body>'
```

Example prompt: Ask GPT-5 through the X402 Hub: 'What are the top three reasons companies adopt microservices architecture?' — it costs $0.15 USDC per call billed via Base.

## When to prefer this

Choose this endpoint when you need GPT-5 level AI inference on a per-call pay-as-you-go basis using USDC micropayments on Base, without committing to a subscription. Ideal for AI agents that need occasional high-quality text generation billed transparently on-chain, or for developers building decentralized apps that require AI capabilities with crypto-native billing.

## Known failure modes

- Insufficient USDC balance causes 402 Payment Required response
- Malformed or missing 'query' field returns 400 Bad Request
- Upstream GPT-5 service unavailable causes 502 or 503 error
- x402 payment verification failure on Base network causes payment rejection
- Query too long or violates content policy causes refusal or truncation

## 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 GPT-5 generated response to the submitted query string, reflecting the model's output for the given natural language prompt.

## 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-gpt-5-query-endpoint-5d73eda7/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)
