# Image Resize API (klymax402)

> Image Resize API (klymax402) is a paid API for AI agents from image-resize.api.klymax402.com, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-15).

Resizes an image fetched from a URL to specified dimensions, optionally converting its format to PNG, JPEG, or WebP

## Facts

- Endpoint: GET https://image-resize.api.klymax402.com/api/resize
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/image-resize-api-klymax402-4366d729
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dnjilxf5DdBKn9O95Bc0I

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 image-resize-api-klymax402-4366d729
```

Example prompt: Can you resize this image to 800 pixels wide in webp format? Here's the URL: https://example.com/photo.jpg

## When to prefer this

Choose this endpoint when you need to resize or reformat a remote image accessible by URL without downloading and re-uploading it yourself; ideal for lightweight, on-the-fly image resizing tasks where aspect-ratio-preserving single-dimension scaling or format conversion is needed.

## Known failure modes

- Invalid or unreachable image URL returns an error
- Unsupported format string returns a bad request error
- Non-numeric width or height values cause a validation error
- Image too large to process may cause a timeout
- Payment not received results in 402 Payment Required response

## How this service works

Resize an image from URL

## Output

Returns the resized image as binary data in the requested format (PNG, JPEG, or WebP), scaled to the specified width and/or height while optionally preserving aspect ratio when only one dimension is provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "URL of the image to resize"
  },
  "width": {
   "type": "number",
   "description": "Target width in pixels (maintains aspect ratio if height is omitted)"
  },
  "format": {
   "type": "string",
   "description": "Output format: 'png', 'jpeg', or 'webp' (default: png)"
  },
  "height": {
   "type": "number",
   "description": "Target height in pixels (maintains aspect ratio if width is omitted)"
  }
 }
}
```

## More

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