# PayWeave Replicate – Recraft v4 SVG Generator

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

Generates scalable vector graphics (SVG) from text prompts using Recraft AI's recraft-v4-svg model via PayWeave's pay-per-call Replicate proxy.

## Facts

- Endpoint: POST https://replicate.payweave.services/models/recraft-ai/recraft-v4-svg/predictions
- Price: $0.16/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payweave-replicate-recraft-v4-svg-generator-c56a457e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EtloKdkfZ7VVT-3JJ3oAj

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-svg-generator-c56a457e -d '<json body>'
```

Example prompt: Generate an SVG illustration of a minimalist mountain landscape with a rising sun using Recraft v4 — I need a clean vector graphic I can scale for print.

## When to prefer this

Choose this endpoint when you specifically need SVG (scalable vector) output from Recraft AI's v4 model, particularly for logos, icons, illustrations, or any graphic that must scale without quality loss. Prefer over raster image endpoints when the use case requires infinite scalability or integration into web/print workflows. Use when you want pay-per-call pricing with no subscription via x402/USDC micropayments.

## Known failure modes

- Model inference fails — status returns 'failed' with a non-null error string
- Payment rejected or insufficient USDC balance — 402 response before prediction is created
- Model is still processing — status returns 'processing' or 'starting', output not yet available
- Invalid or missing input parameters — 400-level error or failed prediction
- Output URL expires after ~24 hours — CDN link becomes inaccessible
- Rate limiting or capacity issues on Replicate infrastructure — delayed or failed response

## How this service works

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

## Output

Returns a Replicate prediction object including a unique prediction ID, the model name, status (succeeded/failed/canceled/processing/starting), the SVG output as a CDN-hosted URL (valid ~24 hours), inference timing metrics, 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-svg-generator-c56a457e/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)
