# Replicate via Locus x402 — Get Prediction

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

Retrieves the result of a previously submitted AI model prediction job by its prediction ID

## Facts

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

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-get-prediction-fbdbd5c8 -d '<json body>'
```

Example prompt: Check the result of my Replicate prediction — the prediction ID is 'abc123xyz'.

## When to prefer this

Use this endpoint after calling the Replicate run endpoint to start a prediction — this is the polling/retrieval step that fetches results once the async job completes. Prefer this over resubmitting a new prediction job when you already have a prediction_id. It is the correct follow-up in a run-then-poll async workflow for any Replicate-hosted model.

## Known failure modes

- Invalid or unknown prediction_id returns an error or empty data
- Prediction still in progress returns incomplete or null output data
- Payment failure prevents retrieval
- Network timeout if the upstream Replicate API is slow
- Malformed prediction_id causes a 400-level error

## How this service works

Locus public pay-per-use API

## Output

Returns a JSON object containing the prediction output data under a 'data' field, along with payment settlement details (USDC amounts authorized and settled), a request ID, a status URL for tracking, and a success flag indicating whether the retrieval was successful.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prediction_id": {
   "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-get-prediction-fbdbd5c8/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)
