Image palette
image_paletteExtract the dominant colours from an image as JSON: up to 12 hex values, most common first, each with its share and neutrality flag. Paid per call in USDC.
Instructions
Returns the colours one image is mostly made of, as JSON: up to count colours, most common first, each a hex value with its share of the image and whether it is a neutral. Costs 0.01 USDC per call (real money) on Base, paid from the buyer's wallet over x402 after the buyer's spending limits are checked. Input: PNG, JPEG, WEBP, up to 8 MB, at most 4096 px. Give exactly one of image_url or image_path. Output: JSON, returned in the tool result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | The most colours to return. | |
| save_to | No | Optional local file path to save the result to (JSON). | |
| image_url | No | A public https URL of the image. | |
| overwrite | No | Replace save_to if it exists. Default false. | |
| image_path | No | A local image file to send (read by this server, sent base64). | |
| allow_repeat | No | Buy again even if the same request was bought in the last 10 minutes. Default false: the earlier result is returned and nothing is charged. | |
| max_price_usdc | No | Optional: refuse if Bacon asks more than this, in USDC. | |
| include_neutrals | No | Count near-whites, near-blacks and greys too. |