# 24K Labs Image Resize

> 24K Labs Image Resize 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-13).

Resize an image to specified dimensions via a paid x402 API call

## Facts

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

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

Example prompt: Can you resize this image to 800 pixels wide?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use image resize without setting up your own image processing infrastructure. It is especially useful for agents that occasionally need to resize images on demand within an x402-enabled payment workflow, without requiring a subscription or API key management.

## Known failure modes

- Invalid or unreachable image URL returns an error
- Requested dimensions exceed service limits
- Unsupported image format causes processing failure
- Payment not included or insufficient USDC balance returns 402
- Malformed request body returns validation error

## How this service works

A curated directory of x402 services — each one on the list on purpose, with the health, uptime, and independent trust grades from across the ecosystem gathered in one place.

## Output

A JSON response containing the resized image and its resulting width in pixels.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "fit": {
   "type": "string"
  },
  "width": {
   "type": "number"
  },
  "height": {
   "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-resize-e3da1a3f/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)
