# x402 Image Tools – Smart Thumbnail Generator

> x402 Image Tools – Smart Thumbnail Generator is a paid API for AI agents from 7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Generates a square, smart-cropped thumbnail of an image from a URL, outputting it as WebP (or another format) by default.

## Facts

- Endpoint: POST https://7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws/v1/thumbnail?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-smart-thumbnail-generator-3c31a519
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1PLTRUDHIijmm4affz70x

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-smart-thumbnail-generator-3c31a519 -d '<json body>'
```

Example prompt: Can you create a 512x512 square thumbnail of this image — https://example.com/photo.jpg — smart-cropped around the most interesting region and saved as a WebP?

## When to prefer this

Choose this endpoint when you need a square, content-aware cropped thumbnail from a remote image URL, particularly when smart-cropping around the most visually interesting region matters (e.g. faces, subjects). Prefer it over generic resize endpoints when the square aspect ratio and saliency-based crop are requirements. It supports all major image formats and delivers results via a CDN-backed URL.

## Known failure modes

- Image URL not reachable or returns non-2xx — URL fetch error
- Image exceeds 20 MB or 40 megapixel limit — payload too large error
- Unsupported image format at the source URL — format rejection
- Size parameter outside 16–1024 range — validation error
- Malformed or non-HTTPS URL — input validation failure
- Temporary Lambda cold start causing timeout on first call

## How this service works

A square thumbnail of an image, smart-cropped around its most interesting region, as WebP by default.

## Output

Returns a JSON object with a signed CDN URL pointing to the generated thumbnail (valid for 3600 seconds), the thumbnail's dimensions (always square), byte size, output format, and optionally an inline data URL if the image is under 1 MB and the inline flag was set. Also includes the original image's byte size.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "https URL of a JPEG, PNG, WebP, AVIF, GIF, TIFF or SVG image (up to 20 MB, 40 megapixels)"
  },
  "size": {
   "type": "integer",
   "description": "side in pixels (16-1024, default 256)"
  },
  "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": 256,
  "format": "webp",
  "height": 256,
  "expires_in": 3600,
  "input_bytes": 912345
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-image-tools-smart-thumbnail-generator-3c31a519/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws](https://www.zero.xyz/host/7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws/llms.txt)
