# Pixo Tools Image Compress/Convert

> Pixo Tools Image Compress/Convert is a paid API for AI agents from api.pixo.tools, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Compresses or converts an uploaded image file to reduce file size

## Facts

- Endpoint: POST https://api.pixo.tools/v1/image/compress
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pixo-tools-image-compress-convert-d8545b90
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-Q4fIB4hqRqQpJt55mGcz

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 pixo-tools-image-compress-convert-d8545b90 -d '<json body>'
```

Example prompt: Can you compress this image file I'm uploading? I want to reduce its file size as much as possible.

## When to prefer this

Use this endpoint when you need to reduce the byte size of an image file or convert it to a more efficient format, especially in automated pipelines where images must be optimized before storage or delivery. Prefer this over PDF compression siblings when the input is a raster image rather than a document.

## Known failure modes

- Unsupported image format returns 400 or similar error
- File too large may result in timeout or rejection
- Malformed binary upload returns validation error
- Payment not included or insufficient returns 402 Payment Required
- Server error during processing returns 500

## How this service works

Compress or convert an image

## Output

A compressed or converted image file returned as binary output, with reduced file size compared to the input image.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "file"
 ],
 "properties": {
  "file": {
   "type": "string",
   "description": "JPEG, PNG, or WebP"
  },
  "colors": {
   "type": "integer",
   "description": "PNG only, default 256"
  },
  "format": {
   "enum": [
    "jpeg",
    "png",
    "webp"
   ],
   "type": "string",
   "description": "Target format; defaults to the input format"
  },
  "quality": {
   "type": "integer",
   "description": "JPEG/WebP only, default 90"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "string",
 "format": "binary"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pixo-tools-image-compress-convert-d8545b90/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.pixo.tools](https://www.zero.xyz/host/api.pixo.tools/llms.txt)
