# httpay.xyz API Gateway: OpenRouter

> httpay.xyz API Gateway: OpenRouter is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-22).

Proxies chat completion requests to OpenRouter's LLM routing API, enabling access to multiple AI models via a pay-per-call x402 gateway

## Facts

- Endpoint: POST https://httpay.xyz/api/gateway/openrouter/v1/chat/completions?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Success rate: 0% of calls made through Zero
- Activations on Zero: 3
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-xyz-078c30d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RDwztGoPv7bpGXK8ry5jX

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-078c30d2 -d '<json body>'
```

Example prompt: Send a chat completion request through OpenRouter — use the model 'anthropic/claude-3-haiku' with the system prompt 'You are a helpful assistant' and user message 'Explain quantum entanglement in two sentences.'

## When to prefer this

Prefer this endpoint when you need access to OpenRouter's multi-model routing (Claude, GPT, Mistral, etc.) without managing your own OpenRouter API key, and you want to pay per call using USDC via x402. Ideal for agents that need flexible LLM access with micropayment billing rather than a subscription.

## Known failure modes

- Payment not included or invalid x402 payment header — returns 402 Payment Required
- Invalid or unsupported model name — returns 400 or model-specific error from OpenRouter
- Malformed messages array — returns 400 Bad Request
- OpenRouter upstream unavailable — returns 502 or 503
- Rate limits or quota exceeded on the underlying model — returns 429

## How this service works

API Gateway: OpenRouter API

## Output

Returns a standard OpenRouter/OpenAI-compatible chat completion response object including the assistant's message content, finish reason, model used, and token usage statistics.

## More

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