# PayWeave Cloudflare Image Transform

> PayWeave Cloudflare Image Transform is a paid API for AI agents from cloudflare.payweave.services, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Transforms a source image via URL by applying resize, crop, format conversion, blur, rotation, and other adjustments on Cloudflare's edge network

## Facts

- Endpoint: POST https://cloudflare.payweave.services/images/transform
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payweave-cloudflare-image-transform-0cec09af
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5uXKbKm31LDGW6fLOezib

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-cloudflare-image-transform-0cec09af -d '<json body>'
```

Example prompt: Take this image at https://example.com/photo.jpg, resize it to 800×600 pixels using cover fit with face-based gravity, convert it to webp at quality 85, and apply a slight sharpen of 2.

## When to prefer this

Choose this endpoint when you need to transform an existing remote image (resize, crop, reformat, blur, adjust) via a simple API call paid per-use without managing Cloudflare credentials. Ideal for agents that need on-demand image optimization or format conversion without self-hosting image processing infrastructure.

## Known failure modes

- Source URL unreachable or returns non-image content — request fails with error
- Source image exceeds 15 MB size limit — rejected
- Invalid parameter values (e.g. width > 4096, blur > 250) — validation error
- Unsupported source image format — transformation fails
- Payment not provided or insufficient — 402 Payment Required

## How this service works

Browser rendering, transcription, image, vision, and speech on Cloudflare&#39;s edge.

## Output

Returns the transformed image binary in the requested output format (webp, avif, jpeg, png, or gif) with the specified dimensions, quality, and visual adjustments applied.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fit": {
   "enum": [
    "scale-down",
    "contain",
    "pad",
    "squeeze",
    "cover",
    "crop"
   ],
   "type": "string",
   "description": "How the image fits within width/height when both are set."
  },
  "blur": {
   "type": "number",
   "maximum": 250,
   "minimum": 0,
   "description": "Gaussian blur radius (0-250)."
  },
  "flip": {
   "enum": [
    "h",
    "v",
    "hv"
   ],
   "type": "string",
   "description": "Flip horizontally, vertically, or both."
  },
  "width": {
   "type": "integer",
   "maximum": 4096,
   "minimum": 1,
   "description": "Target width in pixels."
  },
  "format": {
   "enum": [
    "webp",
    "avif",
    "jpeg",
    "png",
    "gif"
   ],
   "type": "string",
   "description": "Output format: webp (default), avif, jpeg, png, or gif."
  },
  "height": {
   "type": "integer",
   "maximum": 4096,
   "minimum": 1,
   "description": "Target height in pixels."
  },
  "rotate": {
   "enum": [
    0,
    90,
    180,
    270
   ],
   "type": "number",
   "description": "Rotation in degrees."
  },
  "gravity": {
   "enum": [
    "face",
    "left",
    "right",
    "top",
    "bottom",
    "center",
    "auto",
    "entropy"
   ],
   "type": "string",
   "description": "Focal point used when cropping."
  },
  "quality": {
   "type": "integer",
   "maximum": 100,
   "minimum": 1,
   "description": "Output quality for lossy formats (1-100)."
  },
  "sharpen": {
   "type": "number",
   "maximum": 10,
   "minimum": 0,
   "description": "Sharpen strength (0-10)."
  },
  "contrast": {
   "type": "number",
   "minimum": 0,
   "description": "Contrast multiplier (1 = unchanged)."
  },
  "background": {
   "type": "string",
   "description": "Background color (e.g. \"#ffffff\") for pad/transparent areas."
  },
  "brightness": {
   "type": "number",
   "minimum": 0,
   "description": "Brightness multiplier (1 = unchanged)."
  },
  "source_url": {
   "type": "string",
   "format": "uri",
   "description": "Public URL of the source image to transform (max 15 MB)."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/payweave-cloudflare-image-transform-0cec09af/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cloudflare.payweave.services](https://www.zero.xyz/host/cloudflare.payweave.services/llms.txt)
