# klymax402 Image Resize API

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

Fetches a remote image by URL and returns it resized to specified dimensions in PNG, JPEG, or WebP format as a base64-encoded response.

## Facts

- Endpoint: GET https://klymax402.com/api/image-resize/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/klymax402-image-resize-api-c32ce6fe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_miUPRKEgP7_P-mChcJpML

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

Example prompt: Can you resize the image at https://example.com/photo.jpg to 800 pixels wide and 600 pixels tall and give it back as a WebP?

## When to prefer this

Choose this endpoint when you need to resize a remotely hosted image by URL, optionally converting its format, and receive the result as a base64-encoded payload — especially useful in agent workflows where storing intermediate files is inconvenient and a direct in-memory image response is preferred.

## Known failure modes

- Invalid or unreachable image URL returns an error
- Unsupported image format at source URL may fail
- Requested width or height of 0 or negative values may cause errors
- Network timeout if the source image URL is slow to respond
- Unsupported output format string (not png, jpeg, or webp) may return an error

## How this service works

One MCP endpoint gives your AI agent access to 100 APIs -- crypto, DeFi, web, AI, finance and utilities. No API keys, USDC on Base from $0.003/call.

## Output

Returns a JSON object containing the resized image as a base64-encoded string, the output width and height in pixels, the MIME type, the output format, original size in bytes, resized size in bytes, and a compression ratio.

## 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)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "width": 1,
  "base64": "example",
  "format": "example",
  "height": 1,
  "mimeType": "example",
  "compressionRatio": 1,
  "resizedSizeBytes": 1,
  "originalSizeBytes": 1
 }
}
```

## More

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