# 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 file between PNG, JPEG, WEBP, GIF, and BMP formats

## Facts

- Endpoint: POST https://api.24klabs.ai/api/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-30fb6c25
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OUdYYLEXGlfWa4Jd267Rt

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

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

## When to prefer this

Choose this endpoint when you need a fast, paid-per-call image format conversion between the five supported raster formats (PNG, JPEG, WEBP, GIF, BMP) and want a simple JSON response. Prefer this over client-side libraries when operating in an agent pipeline that already uses x402 micropayments, or when you need a stateless, infrastructure-free conversion step.

## Known failure modes

- Unsupported input format provided — only PNG, JPEG, WEBP, GIF, and BMP are supported
- Malformed or corrupt image file causes processing failure
- Image file too large exceeds payload limits
- Missing or invalid image data in request body
- Payment of 0.003 USDC not fulfilled, resulting in 402 Payment Required

## 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 converted image (likely as base64-encoded data) and the output format label (e.g. 'JPEG'), confirming the successful format conversion.

## 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-30fb6c25/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)
