# httpay.xyz API Gateway: Replicate AI

> httpay.xyz API Gateway: Replicate 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-14).

Proxies requests to the Replicate AI API (machine learning model inference) with per-call micropayment billing via x402

## Facts

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

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-api-gateway-replicate-ai-65b0a5a5 -d '<json body>'
```

Example prompt: Run a prediction on Replicate using the stability-ai/stable-diffusion model with the prompt 'a sunset over a mountain lake, photorealistic' and return the generated image URL.

## When to prefer this

Use this endpoint when you need to call the Replicate AI API without managing your own Replicate API key, prefer pay-per-call micropayment billing over subscriptions, or are building an agent workflow that uses x402 for autonomous payments. Ideal for agents that need on-demand access to Replicate-hosted models (Stable Diffusion, LLaMA, etc.) with low setup overhead.

## Known failure modes

- Payment not received or insufficient USDC balance — 402 Payment Required
- Invalid or unsupported Replicate API path — 404 Not Found
- Replicate API upstream error or model unavailable — 502 Bad Gateway
- Missing or malformed inference parameters — 400 Bad Request
- Rate limiting by upstream Replicate API — 429 Too Many Requests

## How this service works

API Gateway: Replicate AI API

## Output

The raw response from the Replicate API for the specified path and parameters — typically a prediction object including status, output URLs (for images/video), or text completions, depending on the model invoked.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-xyz-api-gateway-replicate-ai-65b0a5a5/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)
