{"slug":"baconservices-com-api-agent-commerce-v1-capabilities-image-p-cf64d0","title":"Image Palette","host":"baconservices.com","method":"POST","resource":"https://baconservices.com/api/agent-commerce/v1/capabilities/image-palette/execute","category":"image","description":"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 sma","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":935,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"count":6,"image_url":"https://baconservices.com/assets/img/demos/background-remover-before.png","include_neutrals":true},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$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"},"history":[{"day":"2026-10-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":935,"error":null}],"description_full":"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.","last_updated":"2026-10-21T11:42:18.879Z","schemes":["exact"]}