Extract a dominant-color palette from a PNG or SVG image, or normalize a list of colors, with contrast ratios
GET /v1/color-palette-extractor on media.caelaralabs.com
Request parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
url | query | string | no | Image URL (PNG or SVG are pixel/markup sampled) |
colors | query | string | no | Comma list of hex colors to analyze instead of an image |
count | query | integer | no | Number of colors (1-12, default 5) |
Call it with an API key
Send your key as X-Caelara-Key. Responses are JSON; when an upstream source is unavailable the API still answers HTTP 200 with "partial": true instead of a server error.
Use it as an MCP tool
Tool name color_palette_extractor on the remote server https://media.caelaralabs.com/mcp (registry ID com.caelaralabs/media). MCP tool calls need an X-Caelara-Key API key; to pay per call in USDC, use the direct HTTP route in the x402 section below.
Pay per call in USDC on Base
No account needed. An unauthenticated request returns HTTP 402 with an X-Payment-Required: x402 header and a JSON body whose accepts entry carries scheme exact, network base, maxAmountRequired 5000 (0.005 USDC, 6 decimals), the USDC asset and the payTo address. Settlement happens only after a successful response.