# PayWeave Replicate – FLUX Dev Image Generation

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

Runs Black Forest Labs FLUX Dev text-to-image model via Replicate, returning CDN-hosted image URLs, charged per-call via x402 micropayment.

## Facts

- Endpoint: POST https://replicate.payweave.services/models/black-forest-labs/flux-dev/predictions
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payweave-replicate-flux-dev-image-generation-16facc44
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CUBSovYFDya7ftthhNzyK

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-dev-image-generation-16facc44 -d '<json body>'
```

Example prompt: Use FLUX Dev on Replicate to generate an image of a serene Japanese zen garden at sunrise with soft golden light, moss-covered stones, and a small koi pond — make it photorealistic.

## When to prefer this

Choose this endpoint when you need to run Black Forest Labs FLUX Dev specifically, want pay-per-call pricing via x402 USDC micropayments without a Replicate subscription, and expect image output as a CDN URL. Prefer this over generic image APIs when FLUX Dev's specific aesthetic and architecture are required, or when you want transparent per-call USD cost reporting in the response.

## Known failure modes

- Model inference failure returns status 'failed' with a non-null error string and no output URL
- Payment rejected or insufficient funds causes HTTP 402 before inference begins
- Invalid or missing 'input' object in request body causes a 400-level error
- Prediction may return status 'processing' or 'starting' if not yet complete — caller must handle async states
- CDN image URL expires after ~24 hours, making cached references stale
- Model-specific input parameter errors surface as failed predictions with descriptive error messages

## How this service works

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

## Output

A JSON object containing a Replicate prediction ID, the model used, a status field (succeeded/failed/canceled/processing/starting), a CDN-hosted image URL with ~24h TTL as the output, timing metrics (total_time, predict_time), timestamps, and the USD amount charged for this 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-dev-image-generation-16facc44/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)
