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

merahburam /color-extraction-v4:1c8904ec

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 extract colors from (supports PNG, JPG, JPEG, GIF, BMP, WebP, AVIF, SVG)
method
None
kmeans
Color extraction method
num_colors
integer
6

Min: 2

Max: 20

Number of colors to extract from the image
quality
integer
5

Min: 1

Max: 10

Quality level (1=fastest, 10=highest quality)
output_format
None
summary
Output format for colors
include_names
boolean
True
Include color names when possible
sort_by
None
dominance
Sort colors by
min_area_percent
number
1

Min: 0.1

Max: 10

Minimum area percentage for a color to be included

Output schema

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

Schema
{'additionalProperties': True, 'title': 'Output', 'type': 'object'}