# PayWeave Replicate – FLUX 2 Max Image Generation

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

Generates high-quality images from text prompts using Black Forest Labs' FLUX 2 Max model via a pay-per-call API.

## Facts

- Endpoint: POST https://replicate.payweave.services/models/black-forest-labs/flux-2-max/predictions
- Price: $0.45/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-max-image-generation-3fc5f86f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4j9Kp9Fg81P-8fbDsoh1P

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-max-image-generation-3fc5f86f -d '<json body>'
```

Example prompt: Use FLUX 2 Max on Replicate to generate a photorealistic image of a futuristic cityscape at sunset with neon lights reflecting off wet pavement.

## When to prefer this

Choose this endpoint when you specifically need FLUX 2 Max, Black Forest Labs' highest-quality flagship image generation model, via a simple pay-per-call (x402/USDC) interface without needing a Replicate account or subscription. Ideal for agents that need to generate premium-quality images on demand and can pay per inference in crypto.

## Known failure modes

- Model inference failure returns status 'failed' with a non-null error message
- Payment failure (402) if USDC balance is insufficient — call is rejected before running
- Invalid or missing 'input' object returns a 400-level error
- CDN URL expires after ~24 hours making the output image inaccessible
- Status may return 'processing' or 'starting' if the model is cold-starting, requiring polling
- Canceled status if prediction is manually stopped mid-run

## How this service works

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

## Output

Returns a Replicate prediction object containing a CDN-hosted image URL (valid ~24 hours), a prediction ID, status (succeeded/failed/canceled/processing/starting), timing metrics (total_time, predict_time), the model name, 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-max-image-generation-3fc5f86f/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)
