You're looking at a specific version of this model. Jump to the model overview.

unityaisolutions /image-compressor:c82e0eb9

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
image
string
Input image to compress
output_format
None
jpeg
Output image format
quality
integer

Max: 100

Compression quality (JPEG: 0-100, WEBP: 0-100). Higher = better quality but larger file. Ignored for PNG.
compression_level
integer

Max: 9

PNG compression level (0-9). Higher = smaller file but slower. Only used for PNG output.
optimize
boolean
True
Perform additional optimization passes (slower but smaller files)

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}