# Replicate via Locus x402

> Replicate via Locus x402 is a paid API for AI agents from replicate.x402.paywithlocus.com, paid per call via x402, $0.053001/call, status unknown (last checked 2026-10-11, last successful call 2026-08-18).

Run any open-source AI model on Replicate (image generation, LLMs, speech, video) via a pay-per-call x402 API gateway

## Facts

- Endpoint: POST https://replicate.x402.paywithlocus.com/replicate/run?utm_source=zero.xyz
- Price: $0.053001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Last successful call: 2026-08-18
- Success rate: 97% of calls made through Zero
- Rating: 5.0 / 5 from 1 review
- Activations on Zero: 36
- Tags: x402
- Canonical page: https://www.zero.xyz/c/replicate-via-locus-x402-fd075b85
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kG5bJcYTT7ktwqE-fPvPd

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 replicate-via-locus-x402-fd075b85 -d '<json body>'
```

Example prompt: Use the black-forest-labs flux-schnell model on Replicate to generate an image of a golden retriever playing in the snow — pass the prompt as the model input.

## When to prefer this

Choose this endpoint when you need to run any of thousands of open-source models on Replicate without managing your own API keys or subscriptions — especially useful for agents that need pay-per-call billing via x402/USDC, access to niche or cutting-edge open-source models, or want to avoid Replicate account setup overhead.

## Known failure modes

- Invalid model_owner or model_name returns an error or empty result
- Malformed or missing input parameters cause inference failure
- Insufficient USDC balance or payment authorization failure blocks the request
- Model-specific input schema mismatch causes a 400-level error
- Long-running models may require polling the statusUrl for completion

## How this service works

Locus public pay-per-use API

## Output

Returns a JSON object with a 'data' field containing the model's output (varies by model), a 'success' boolean, a 'request' object with an ID and status URL for async polling, and a 'payment' object showing the settled and authorized USDC amounts.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "additionalProperties": true
  },
  "model_name": {
   "type": "string"
  },
  "model_owner": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "payment": {
   "scheme": "exact",
   "settledUsdc": "0.001000",
   "authorizedMaxUsdc": "0.001000"
  },
  "request": {
   "id": "00000000-0000-4000-8000-000000000000",
   "statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/replicate-via-locus-x402-fd075b85/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from replicate.x402.paywithlocus.com](https://www.zero.xyz/host/replicate.x402.paywithlocus.com/llms.txt)
