# PayWeave Replicate – Recraft V4 Image Generation

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

Generates high-quality images using Recraft AI's recraft-v4 model via PayWeave's pay-per-call Replicate proxy

## Facts

- Endpoint: POST https://replicate.payweave.services/models/recraft-ai/recraft-v4/predictions
- Price: $0.08/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-recraft-v4-image-generation-7d7fb674
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MSZluXpGlwiLhyjZpjHR0

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-recraft-v4-image-generation-7d7fb674 -d '<json body>'
```

Example prompt: Generate an image of a futuristic city skyline at sunset with neon lights reflecting on wet streets, using the recraft-v4 model — photorealistic style, widescreen format.

## When to prefer this

Choose this endpoint when you specifically want to run Recraft AI's recraft-v4 image generation model via Replicate with pay-per-call USDC micropayment billing (x402 protocol), avoiding subscription requirements. Prefer this over generic image generation APIs when you need recraft-v4's specific aesthetic or want frictionless per-call crypto payment.

## Known failure modes

- Payment failure — insufficient USDC balance results in 402 Payment Required
- Model error — malformed input parameters cause status: failed with error message
- Timeout — long-running predictions may return status: processing or starting before completing
- Invalid input schema — missing required 'input' field returns 400 Bad Request
- CDN URL expiry — generated image URLs expire after ~24 hours and cannot be re-fetched

## How this service works

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

## Output

Returns a Replicate prediction object including a CDN-hosted image URL (valid ~24 hours), the prediction ID, status (succeeded/failed/canceled/processing/starting), compute metrics (predict_time, total_time), 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-recraft-v4-image-generation-7d7fb674/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)
