# 24K Labs Image Format Converter

> 24K Labs Image Format Converter 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).

Converts an image from one format to another, supporting PNG, JPEG, WEBP, GIF, and BMP.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/image-convert
- 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-format-converter-0fe8ea72
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g_wd96zZDN-qIDhXg3dTa

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-format-converter-0fe8ea72 -d '<json body>'
```

Example prompt: Can you convert this PNG image to WEBP format for me?

## When to prefer this

Choose this endpoint when you need a straightforward, pay-per-call image format conversion between the five common raster formats (PNG, JPEG, WEBP, GIF, BMP) without setting up any image processing infrastructure. Ideal for agentic workflows requiring on-the-fly format adaptation, especially when paying via x402/USDC microtransactions.

## Known failure modes

- Unsupported source or target format returns a 400 error
- Corrupted or unreadable input image returns an error
- Image too large may time out or be rejected
- Missing or malformed image payload returns a 422 validation error
- Network or server error returns a 500 response

## How this service works

Convert an image between PNG, JPEG, WEBP, GIF, and BMP.

## Output

Returns the converted image binary in the requested target format (PNG, JPEG, WEBP, GIF, or BMP), ready for download or further processing.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "format": "JPEG"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-image-format-converter-0fe8ea72/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)
