# 24K Labs Image Thumbnail Generator

> 24K Labs Image Thumbnail Generator is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Creates a centered square thumbnail of an image at a specified pixel size.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/image-thumbnail
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-image-thumbnail-generator-b539b6c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hsvu_6K4OZZbXFDtCiE6r

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 24k-labs-image-thumbnail-generator-b539b6c6 -d '<json body>'
```

Example prompt: Can you create a 256-pixel centered square thumbnail from this image: https://example.com/photo.jpg?

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.003 USDC) serverless thumbnail crop that centers and squares an image without needing a full image editing pipeline. Ideal for agents generating consistent square previews for product grids, avatars, or social media assets from arbitrary source URLs. Prefer over full image conversion endpoints when the specific need is a centered square crop at a fixed size.

## Known failure modes

- Invalid or unreachable image URL returns an error
- Unsupported image format may cause processing failure
- Requested size too large or too small may be rejected
- Network timeout if source image server is slow
- Malformed request body missing required fields returns 400

## How this service works

Create a centered square thumbnail of an image at a given size.

## Output

Returns a centered square thumbnail image file (cropped and resized from the original) at the requested pixel dimension, typically as binary image data or a URL to the processed image.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "size": {
   "type": "number"
  },
  "image_b64": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "width": 4
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-image-thumbnail-generator-b539b6c6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
