# gardenpatch.xyz Image Resize

> gardenpatch.xyz Image Resize is a paid API for AI agents from gardenpatch.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-30).

Fetches a public image URL, resizes it, re-encodes it to a specified format (WebP, JPEG, PNG, or AVIF), strips metadata, and returns the result as a base64 string.

## Facts

- Endpoint: POST https://gardenpatch.xyz/api/v1/tools/image-resize/call?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gardenpatch-xyz-image-resize-481e5adc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DIU2w9m7cAM4xiwwTNypw

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 gardenpatch-xyz-image-resize-481e5adc -d '<json body>'
```

Example prompt: Can you fetch the image at https://example.com/photo.jpg, resize it to 800×600, and give it back to me as a base64 WebP with all metadata stripped?

## When to prefer this

Choose this endpoint when you need to fetch, resize, and re-encode a remote image in a single step without setting up image processing infrastructure. It is especially useful when you need a base64-encoded result suitable for embedding directly in APIs, emails, or documents, and when stripping metadata (EXIF, GPS, etc.) is a requirement. Prefer it over general-purpose image CDNs if you want a simple per-call pricing model with no configuration overhead.

## Known failure modes

- Image URL is not publicly accessible or returns a non-200 status
- Source image exceeds the 25 megapixel limit
- Unsupported input image format (only JPEG, PNG, WebP, GIF accepted)
- Invalid or malformed target dimensions
- Network timeout fetching the remote image URL
- Output format not recognized (must be webp, jpeg, png, or avif)

## How this service works

Image resize — Fetch one public JPEG, PNG, WebP or GIF image (up to 25 MP) and return it resized and re-encoded (webp, jpeg, png or avif) as base64, with metadata stripped. $0.02 per call.

## Output

A base64-encoded image in the requested output format (WebP, JPEG, PNG, or AVIF) at the specified dimensions, with all metadata (EXIF, XMP, ICC profiles, etc.) stripped. No binary file download — the result is returned inline as a base64 string ready for embedding.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gardenpatch-xyz-image-resize-481e5adc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gardenpatch.xyz](https://www.zero.xyz/host/gardenpatch.xyz/llms.txt)
