# httpay.xyz OpenAI API Gateway (x402 Pay-Per-Call)

> httpay.xyz OpenAI API Gateway (x402 Pay-Per-Call) is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-12).

Proxies requests to the OpenAI API via a pay-per-call x402/USDC payment gateway, requiring no API keys — just a USDC micropayment per call

## Facts

- Endpoint: POST https://httpay.xyz/api/gateway/openai/%7B*path%7D
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-xyz-openai-api-gateway-x402-pay-per-call-e3357c81
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r52B9a9u3wwBbguqTdh9S

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 httpay-xyz-openai-api-gateway-x402-pay-per-call-e3357c81 -d '<json body>'
```

Example prompt: Send a chat completion request to OpenAI's GPT-4o model asking 'What are the three laws of thermodynamics?' — pay per call using USDC via the httpay.xyz x402 gateway instead of using my own OpenAI API key.

## When to prefer this

Use this endpoint when you want to call the OpenAI API without managing your own OpenAI API key, when you want pure pay-per-call billing in USDC on Base, or when building an agent that needs to access OpenAI capabilities with crypto-native micropayments via the x402 protocol.

## Known failure modes

- Insufficient USDC balance or payment failure returns 402 Payment Required
- Invalid or unsupported OpenAI path returns 404 or 400
- Malformed request body causes 400 Bad Request from upstream OpenAI
- OpenAI rate limits or downtime propagate as 429 or 502 errors
- Unsupported model or deprecated endpoint returns OpenAI error payload

## How this service works

API Gateway: OpenAI API

## Output

The standard OpenAI API JSON response for the proxied endpoint — e.g. a chat completion object with choices, usage stats, and model metadata — identical to what the OpenAI API itself would return, after deducting $0.005 USDC for the gateway call.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-xyz-openai-api-gateway-x402-pay-per-call-e3357c81/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
