Developers

Compress API

Shrink JPEG, PNG, and WebP file sizes by up to 90% with barely any visible quality loss — free, in your browser. Try it without code first on the free compress tool.

POST/v1/images/transform
curl https://api.pixpoo.com/v1/images/transform \
  -H "x-api-key: pxp_xxxxxxxx" \
  -F file=@photo.jpg \
  -F quality=75 \
  -F format=webp

Parameters

filefilerequired

The source image (multipart upload). Use "url" instead to fetch from a remote address.

qualityinteger

1–100. Defaults to 82. Lower values produce smaller files.

formatstring

Output format: jpeg, png, webp, avif, gif, or tiff. Omit to keep the source image's own format.

Response

The re-encoded image plus X-Pixpoo-Original-Size / X-Pixpoo-Output-Size response headers.

Prefer JSON with a base64 payload instead of raw bytes? Use /v1/images/transform/json with the same parameters.

← Back to API documentation