# PayWeave Replicate — FLUX 2 Pro Image Generation

> PayWeave Replicate — FLUX 2 Pro Image Generation is a paid API for AI agents from replicate.payweave.services, paid per call via x402, $0.22/call, status unknown (last checked 2026-09-14).

Runs Black Forest Labs FLUX 2 Pro image generation model via Replicate, returning CDN-hosted image URLs, with pay-per-call billing at $0.22 USDC.

## Facts

- Endpoint: POST https://replicate.payweave.services/models/black-forest-labs/flux-2-pro/predictions
- Price: $0.22/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payweave-replicate-flux-2-pro-image-generation-231ad3f2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_agmlGmQJ02XhvvoPYN6Eq

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 payweave-replicate-flux-2-pro-image-generation-231ad3f2 -d '<json body>'
```

Example prompt: Generate a photorealistic image of a misty mountain lake at sunrise with pine trees reflected in the water, using FLUX 2 Pro on Replicate.

## When to prefer this

Choose this endpoint when you specifically need FLUX 2 Pro image generation quality via Replicate, want pay-per-call billing in USDC without a monthly subscription, and need a hosted CDN URL as output. Prefer over generic Replicate API when you want x402 micropayment-compatible access or when operating in an autonomous agent context that handles crypto payments natively.

## Known failure modes

- Model inference fails — status returns 'failed' with error message
- Payment rejected or insufficient USDC balance — 402 response before inference
- Model still processing — status returns 'processing' or 'starting' (may need polling)
- Invalid input schema — 400 error if required input object is malformed
- CDN URL expires after ~24 hours — image becomes inaccessible
- Model canceled — status returns 'canceled' with null output

## How this service works

Run open-source AI models — image, video, audio.

## Output

A JSON object containing a Replicate prediction ID, the model name, a status field (succeeded/failed/canceled/processing/starting), an output field with a Replicate-hosted CDN image URL (valid ~24 hours), timing metrics (total_time, predict_time), creation and completion timestamps, and the USD amount charged for the call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "id",
  "model",
  "status",
  "error",
  "predicted_price_usd"
 ],
 "properties": {
  "id": {
   "type": "string",
   "description": "Replicate prediction ID."
  },
  "error": {
   "type": [
    "string",
    "null"
   ]
  },
  "model": {
   "type": "string"
  },
  "output": {
   "description": "Model-specific output. Image/audio models return CDN URLs (Replicate-hosted, ~24h TTL); vision-LLM models return a string; music models return a single audio URL or array."
  },
  "status": {
   "enum": [
    "succeeded",
    "failed",
    "canceled",
    "processing",
    "starting"
   ],
   "type": "string"
  },
  "metrics": {
   "type": "object",
   "properties": {
    "total_time": {
     "type": "number"
    },
    "predict_time": {
     "type": "number"
    }
   },
   "additionalProperties": false
  },
  "created_at": {
   "type": "string"
  },
  "completed_at": {
   "type": "string"
  },
  "predicted_price_usd": {
   "type": "string",
   "description": "USD charged for this call."
  }
 },
 "description": "Replicate prediction result with metadata.",
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/payweave-replicate-flux-2-pro-image-generation-231ad3f2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from replicate.payweave.services](https://www.zero.xyz/host/replicate.payweave.services/llms.txt)
