# httpay.xyz OpenAI API Gateway

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

Proxies requests to the OpenAI API through an x402 pay-per-call gateway, charging USDC per request

## Facts

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

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-03b2e5ad -d '<json body>'
```

Example prompt: Send a chat completion request to GPT-4o asking it to summarize this article: 'OpenAI releases new model...' — route it through the OpenAI API gateway and pay per call in USDC.

## When to prefer this

Use this endpoint when you want to call OpenAI APIs without managing your own OpenAI subscription or API key, paying only per call in USDC via x402 micropayment protocol. Ideal for agents operating in Web3 environments that already hold USDC and want programmatic, pay-as-you-go access to GPT models or OpenAI embeddings.

## Known failure modes

- Insufficient USDC balance — payment fails, 402 returned
- Invalid or unsupported OpenAI path — 404 or passthrough error
- Malformed request body — OpenAI returns 400 bad request
- OpenAI API key on gateway side exhausted or rate-limited — 429 or 503
- Network timeout on upstream OpenAI call — 504 gateway timeout

## How this service works

API Gateway: OpenAI API

## Output

The raw OpenAI API response for the requested path (e.g. chat completions, embeddings, etc.), identical to what the official OpenAI API would return, after USDC micropayment is processed via x402.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-xyz-03b2e5ad/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)
