Compress an image file. Supports multipart file upload, URL fetch, or base64 JSON body.
API key for authentication. Get your key at https://compresto.app/dashboard
Compression quality (1-100). Overrides body parameter.
1 <= x <= 100Output format. Overrides body parameter.
auto, jpeg, png, webp Maximum width in pixels. Preserves aspect ratio.
x >= 1Maximum height in pixels. Preserves aspect ratio.
x >= 1Image file to compress
Compression quality
1 <= x <= 100Output format
auto, jpeg, png, webp Maximum width in pixels
x >= 1Maximum height in pixels
x >= 1Compressed image binary
The response is of type file.