You're looking at a specific version of this model. Jump to the model overview.
unityaisolutions /gif-compressor:e55535ae
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 |
|---|---|---|---|
| gif |
string
|
Input GIF file to compress
|
|
| optimization_level |
integer
|
3
Min: 1 Max: 3 |
Optimization level (1-3). Higher = better compression but slower. 3 is recommended.
|
| lossy_compression |
integer
|
Min: 20 Max: 200 |
Lossy compression level (20-200). Lower = better quality. 80 is a good balance. Leave empty for lossless.
|
| colors |
integer
|
Min: 2 Max: 256 |
Reduce to this many colors (2-256). Leave empty to keep original colors.
|
| scale |
number
|
Min: 0.1 Max: 1 |
Scale factor (0.1-1.0). Leave empty to keep original size.
|
| resize_width |
integer
|
Min: 1 |
Resize to this width in pixels (maintains aspect ratio). Overrides scale.
|
| resize_height |
integer
|
Min: 1 |
Resize to this height in pixels (maintains aspect ratio). Overrides scale.
|
| unoptimize |
boolean
|
False
|
Unoptimize before compressing (useful for already-optimized GIFs)
|
Output schema
The shape of the response you’ll get when you run this model with an API.
{'format': 'uri', 'title': 'Output', 'type': 'string'}