Image Palette
Image Palette: Returns the colours one image is mostly made of, as JSON: up to count colours, most common first, each as a hex value with its share of the image (0 to 1) and whether it is a neutral (near white, near black or grey). The image is sampled at up to 160 pixels on its longest side, so small details do not count.
Answeringour last check, 2026-10-21
1 of 1checks answered this week
935 msmedian answer time
$0.01listed price per call
$0.01price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://baconservices.com/api/agent-commerce/v1/capabilities/image-palette/execute
| Category | Image and media |
|---|---|
| Provider host | baconservices.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 2 from 2 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-10-21 | valid payment request | 402 | $0.01 | 935 ms |
Example input (from the provider)
{
"body": {
"count": 6,
"image_url": "https://baconservices.com/assets/img/demos/background-remover-before.png",
"include_neutrals": true
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"description": "Give exactly one of image_url or image_base64. The same request body must be sent again with the PAYMENT-SIGNATURE header.",
"properties": {
"count": {
"default": 6,
"description": "The most colours to return.",
"maximum": 12,
"minimum": 1,
"type": "integer"
},
"image_base64": {
"contentEncoding": "base64",
"description": "The image bytes, base64-encoded.",
"type": "string"
},
"image_url": {
"description": "A public https URL of a PNG, JPEG or WebP image.",
"format": "uri",
"type": "string"
},
"include_neutrals": {
"default": true,
"description": "Count near-whites, near-blacks and greys too. With false, shares are of the coloured part of the image only.",
"type": "boolean"
}
},
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"headers": {
"type": "object"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"queryParams": {
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}