# x402 AI APIs – GPT-5 Chat Completions

> x402 AI APIs – GPT-5 Chat Completions 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-13).

Provides GPT-5 chat completions via a pay-per-call x402 micropayment API endpoint

## Facts

- Endpoint: POST https://x402-ai-peach.vercel.app/api/gpt5
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ai-apis-gpt-5-chat-completions-22da542b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mSGM18vQm70Hpny7speNm

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-gpt-5-chat-completions-22da542b -d '<json body>'
```

Example prompt: Using the GPT-5 endpoint, send these messages to get a completion: system message 'You are a helpful assistant', user message 'Explain quantum entanglement in plain English' — stream the response and allow up to 512 tokens.

## When to prefer this

Choose this endpoint when you need pay-per-call access to GPT-5 without a monthly OpenAI subscription, especially in agentic pipelines where you want fine-grained cost control via x402 micropayments. Prefer it over direct OpenAI API calls when your infrastructure is built around x402 payment rails or when you want to avoid API key management.

## Known failure modes

- Payment failure if wallet lacks sufficient USDC balance — returns 402 Payment Required
- Invalid or missing messages array — returns 400 Bad Request
- Temperature or max_tokens out of valid range — returns 400 validation error
- Model capacity issues or upstream OpenAI errors — returns 500 or 503
- Streaming requested but connection dropped mid-response — partial content received

## How this service works

Paid AI API endpoints via x402 micropayments

## Output

Returns a JSON object containing a response ID and a choices array; each choice has a message object with a role (e.g. 'assistant') and content string containing the generated text. Supports streaming mode for incremental token delivery.

## 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-gpt-5-chat-completions-22da542b/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)
