🖼️ CompressIO API

Server-side image compression for AI agents. Powered by WASM codecs (Squoosh) on Cloudflare Workers.

Endpoints

POST /api/v1/compress   Compress image (raw body, target via ?target=bytes, format via ?format=)
POST /api/v1/convert    Convert format (?format=jpeg|png|webp)
POST /api/v1/optimize   Lossless optimization (PNG: oxipng)
POST /api/v1/inspect    Format / dimensions / size
POST /mcp               Model Context Protocol (JSON-RPC)
GET  /api/v1/health     Health check

REST example

curl -X POST "https://api.compressio.cc/api/v1/compress?target=200000&format=webp" \
  -H "Authorization: Bearer YOUR_KEY" \
  --data-binary @input.jpg \
  -o output.webp

AI usage

Point your MCP client at https://api.compressio.cc/mcp and call compress_image.


Anonymous: 20 images/day per IP, max 10MB — free for AI agents to try. API keys at Ko-fi.