# x402 Image Tools – Edit (Multi-Operation Pipeline)

> x402 Image Tools – Edit (Multi-Operation Pipeline) is a paid API for AI agents from image.kagurazaka.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Apply a sequential pipeline of up to 10 image transformation operations (rotate, flip, flop, grayscale, blur, sharpen, negate, trim, tint, modulate) to an image at a URL and return the edited result.

## Facts

- Endpoint: POST https://image.kagurazaka.dev/v1/edit?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-image-tools-edit-multi-operation-pipeline-750cd2c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1EhKGsc_shVZk050iG9-G

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 x402-image-tools-edit-multi-operation-pipeline-750cd2c6 -d '<json body>'
```

Example prompt: Take the image at https://example.com/photo.jpg, rotate it 90 degrees, then apply a blur with sigma 3, and convert the output to WebP format.

## When to prefer this

Choose this endpoint when you need to apply multiple sequential image transformations in a single API call rather than chaining separate endpoints. It is ideal for pipelines combining rotation, color adjustment, blur, sharpen, flip, trim, tint, or modulate steps on a remote image URL. Prefer it over single-purpose image endpoints when two or more operations must be applied in order to the same image.

## Known failure modes

- Image URL is unreachable or returns a non-200 response — results in an error
- Image exceeds 20 MB or 40 megapixels size limit — rejected with an error
- Unsupported image format at source URL — rejected
- Invalid operation name or missing required operation parameters — validation error
- More than 10 operations specified — may be rejected or truncated
- Output CDN URL expires after the returned expires_in seconds — link becomes invalid

## How this service works

Apply up to 10 operations in order: rotate (angle), flip, flop, grayscale, blur (sigma), sharpen, negate, trim (cut uniform borders), tint (color), modulate (brightness, saturation, hue).

## Output

Returns a JSON object with a temporary CDN URL to the edited image, the output image dimensions (width, height), file size in bytes, output format, and an expiry duration in seconds. Optionally includes the image as an inline data URL if it is under 1 MB and inline is requested.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ops": {
   "type": "array",
   "items": {
    "type": "object"
   },
   "description": "operations in order, each {op: rotate|flip|flop|grayscale|blur|sharpen|negate|trim|tint|modulate, ...}"
  },
  "url": {
   "type": "string",
   "description": "https URL of a JPEG, PNG, WebP, AVIF, GIF, TIFF or SVG image (up to 20 MB, 40 megapixels)"
  },
  "format": {
   "enum": [
    "webp",
    "avif",
    "png",
    "jpeg",
    "gif",
    "tiff"
   ],
   "type": "string",
   "description": "output format (default: the input's)"
  },
  "inline": {
   "type": "boolean",
   "description": "also return the image as a data URL when it is at most 1 MB"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://dn8i8p8knpn68.cloudfront.net/results/images/3f1c2b9e.webp?Expires=...",
  "bytes": 48213,
  "width": 800,
  "format": "webp",
  "height": 600,
  "expires_in": 3600,
  "input_bytes": 912345
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-image-tools-edit-multi-operation-pipeline-750cd2c6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from image.kagurazaka.dev](https://www.zero.xyz/host/image.kagurazaka.dev/llms.txt)
