# 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/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-e24ef0b0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Uh6DH2vy5XEvN67QVLmD2

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-e24ef0b0 -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need a quick, cost-effective centered square thumbnail from a remote image URL with minimal configuration — ideal for uniform catalog grids, profile avatars, or any context requiring consistent square aspect-ratio images. Prefer it over general image conversion endpoints (also available on 24K Labs) when the square-crop-and-resize behavior is specifically needed.

## Known failure modes

- Invalid or inaccessible image URL returns an error
- Unsupported image format may cause processing failure
- Very large images may time out or be rejected
- Missing required size parameter returns a validation error
- Payment failure or insufficient USDC balance prevents execution

## How this service works

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

## Output

Returns a centered square thumbnail image of the specified size, cropped from the center of the original image. The output is the processed image data (likely binary or a URL) representing the square-cropped, resized version of the input.

## 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-e24ef0b0/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)
