Compress, resize, and convert images via REST API. Reduce file size up to 90% while maintaining quality.
Drop image here or click to upload
https://imagecompress-proxy.vercel.appX-API-Key: your_key (header) or ?key=your_key (query)
Get your free key below
/api/compress
Compress, resize, and optionally convert an image. Returns the processed binary image.
image
file
yes
Image file to compress
quality
int
no
Compression quality 1โ100. Default: 80
width
int
no
Resize width in pixels
height
int
no
Resize height in pixels
format
string
no
Output format: jpeg, png, webp, avif. Default: original
fit
string
no
Resize fit: cover, contain, fill, inside. Default: cover
X-Original-Size โ original file size in bytesX-Compressed-Size โ compressed file size in bytesX-Compression-Ratio โ compression percentageX-Output-Width โ output image widthX-Output-Height โ output image height
/api/info
Get metadata about an image without compressing it.
image
file
yes
Image file to inspect
{
"width": 1920,
"height": 1080,
"format": "jpeg",
"mode": "RGB",
"size_bytes": 245780
}
// 400 โ Bad Request
{ "error": "Invalid image or file too large" }
// 401 โ Unauthorized
{ "error": "Invalid API key" }
// 429 โ Rate Limited
{ "error": "Daily limit reached. Upgrade your plan." }
Get a free API key for 6 requests/day. No credit card required.
X-API-Key: your_key?key=your_keyStart free. Pay only when you need more.
No monthly commitment. Pay only for what you use. All features included.