# Stableflare Image Transform API

> Stableflare Image Transform API is a paid API for AI agents from stableflare.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Transforms images via Cloudflare's image transformation pipeline with pay-per-request micropayments, no API key required.

## Facts

- Endpoint: POST https://stableflare.dev/api/images/transform
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stableflare-image-transform-api-e2645983
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gIiDtDsz90Zz66tlvMo1o

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 stableflare-image-transform-api-e2645983 -d '<json body>'
```

Example prompt: Transform this image at https://example.com/photo.jpg to 800x600 pixels in WebP format — pay per request, no API key needed.

## When to prefer this

Prefer this endpoint when you need one-off image transformations without committing to an API key or subscription, especially in agentic or automated workflows where pay-per-request micropayments via x402/USDC are acceptable. Ideal for low-volume or sporadic image processing tasks where setting up a full Cloudflare account is overhead.

## Known failure modes

- Payment failure: insufficient USDC balance or x402 payment not accepted (402 Payment Required)
- Invalid image URL: source image unreachable or malformed URL (400 Bad Request)
- Unsupported transformation parameters: invalid dimensions, format, or quality values (422 Unprocessable Entity)
- Image too large or format not supported by Cloudflare transformation pipeline (413/415 error)
- Service unavailable if underlying Cloudflare infrastructure is down (503)

## How this service works

Pay-per-request access to Replicate AI and Cloudflare Browser Rendering. No API keys, no subscriptions.

## Output

The agent receives a transformed image in the requested format and dimensions, processed through Cloudflare's image transformation infrastructure. Response may be a binary image or redirect to the processed image resource.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "dpr": {
   "type": "number",
   "description": "Device pixel ratio"
  },
  "fit": {
   "enum": [
    "scale-down",
    "contain",
    "cover",
    "crop",
    "pad"
   ],
   "type": "string",
   "description": "Resize mode"
  },
  "blur": {
   "type": "number",
   "maximum": 250,
   "minimum": 1
  },
  "width": {
   "type": "number",
   "description": "Target width in pixels"
  },
  "format": {
   "enum": [
    "auto",
    "webp",
    "avif",
    "jpeg",
    "png"
   ],
   "type": "string",
   "description": "Output format"
  },
  "height": {
   "type": "number",
   "description": "Target height in pixels"
  },
  "rotate": {
   "type": "number",
   "description": "Rotation degrees (90, 180, 270)"
  },
  "gravity": {
   "type": "string",
   "description": "Crop anchor: auto, face, left, right, top, bottom"
  },
  "quality": {
   "type": "number",
   "maximum": 100,
   "minimum": 1,
   "description": "Output quality"
  },
  "sharpen": {
   "type": "number",
   "maximum": 10,
   "minimum": 0
  },
  "contrast": {
   "type": "number"
  },
  "image_id": {
   "type": "string",
   "description": "Cloudflare Images image ID (from upload)"
  },
  "metadata": {
   "enum": [
    "copyright",
    "keep",
    "none"
   ],
   "type": "string"
  },
  "brightness": {
   "type": "number"
  }
 }
}
```

## More

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