# agent402.tools Image Thumbnail Generator

> agent402.tools Image Thumbnail Generator is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Scales and center-crops a base64-encoded image into a square NxN thumbnail (default 128px), returning the result in PNG, JPEG, or BMP format.

## Facts

- Endpoint: POST https://agent402.tools/api/image-thumbnail
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-image-thumbnail-generator-11cea8f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DJ1V5rVC7Q1hMcdZt_9j1

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 agent402-tools-image-thumbnail-generator-11cea8f8 -d '<json body>'
```

Example prompt: Take this base64 image and make me a square thumbnail at 256px, output it as a JPEG.

## When to prefer this

Use this endpoint when you need a fast, deterministic, offline-safe square thumbnail from a base64 image without any cloud storage or external dependencies. Ideal for profile pictures, preview generation, or any scenario requiring center-cropped square output at a specific pixel size.

## Known failure modes

- Invalid or malformed base64 image data returns an error
- Size out of range (not 1-1024) returns a validation error
- Unsupported format string returns an error
- Extremely large images may time out or be rejected

## How this service works

Make a square thumbnail of an image - scales and center-crops to NxN (default 128). Send a base64 image and optional size. Returns the thumbnail. Deterministic, no network.

## Output

Returns a base64-encoded square thumbnail image (default PNG) cropped and scaled to the requested NxN dimensions (default 128px). Fully deterministic and self-contained — no external network calls.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "size": {
   "type": "number",
   "description": "square edge in px, 1-1024 (default 128)"
  },
  "image": {
   "type": "string",
   "description": "base64 image, optionally a data: URL"
  },
  "format": {
   "type": "string",
   "description": "output format: png (default), jpeg, bmp"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "__note": "returns the square thumbnail as binary"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-image-thumbnail-generator-11cea8f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
