# httpay.xyz API Gateway: Perplexity AI

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

Proxies requests to the Perplexity AI API via a pay-per-call x402 gateway, enabling AI-powered search and conversational responses without managing Perplexity API keys.

## Facts

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

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-84379b45 -d '<json body>'
```

Example prompt: Search Perplexity AI for the latest news on quantum computing breakthroughs and give me a summary with citations — use the sonar model and return the top results.

## When to prefer this

Prefer this endpoint when you need to call the Perplexity AI API (including its sonar search-grounded models) without managing your own Perplexity API key, and you want pay-per-call billing via x402/USDC micro-payments. Ideal for agents that need real-time web-grounded AI answers on demand.

## Known failure modes

- Invalid or unsupported Perplexity API path returns 404 or upstream error
- Malformed request body causes 400 Bad Request from Perplexity
- Payment not completed or insufficient USDC balance returns 402 Payment Required
- Perplexity upstream service unavailable returns 503
- Rate limiting by underlying Perplexity API returns 429

## How this service works

API Gateway: Perplexity AI API

## Output

Returns the full Perplexity AI API response for the given path and request body, including the AI-generated text, citations, and any other fields returned by the Perplexity endpoint (e.g. choices, usage, model info).

## More

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