{"uid":"cap_XraWUlajHVMRYnvX3-9Px","slug":"grist-tools-color-palette-extractor-d9e483c3","name":"Grist Tools Color Palette Extractor","description":"x402 API catalogue for AI agents: 50 deterministic HTTP endpoints, paid per call with no account and no API key. One endpoint does one thing, always the same way, for a fraction of a cent.","url":"https://grist.tools/v1/color-palette-extract?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Absolute http(s) URL of the image, up to 2048 characters; redirects are followed and the format is detected from the bytes, not the content-type."},"colors":{"type":"integer","description":"Maximum number of palette colours to return, 1 to 16, most common first; fewer come back when the image has fewer distinct colour buckets."}}},"responseSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["source_url","source_format","sample_size","count","dominant","colors"],"properties":{"count":{"type":"integer","maximum":9007199254740991,"minimum":-9007199254740991},"colors":{"type":"array","items":{"type":"object","required":["hex","rgb","fraction"],"properties":{"hex":{"type":"string"},"rgb":{"type":"array","prefixItems":[{"type":"integer","maximum":9007199254740991,"minimum":-9007199254740991},{"type":"integer","maximum":9007199254740991,"minimum":-9007199254740991},{"type":"integer","maximum":9007199254740991,"minimum":-9007199254740991}]},"fraction":{"type":"number"}},"additionalProperties":false}},"dominant":{"type":"string"},"source_url":{"type":"string"},"sample_size":{"type":"integer","maximum":9007199254740991,"minimum":-9007199254740991},"source_format":{"enum":["jpeg","png","gif","webp","tiff","avif","svg"],"type":"string"}},"additionalProperties":false},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xyHGk5D-9hFK_pO54PTEi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts the dominant color palette from an image URL, returning the most common colors ranked by frequency.","exampleAgentPrompt":"Can you extract the top 5 dominant colors from this image — https://example.com/product-banner.jpg — and give me the palette?","exampleUseCases":[{"title":"Brand color extraction from logo","prompt":"Pull the top 6 colors from our company logo at https://mybrand.com/logo.png so I can build a consistent color palette for our design system."},{"title":"Product photo palette for e-commerce","prompt":"Extract the 4 most dominant colors from this product photo at https://shop.example.com/items/sneaker.jpg — I want to use them for the page background and accent colors."},{"title":"Mood board color analysis","prompt":"I have a mood board image at https://assets.myagency.io/moodboard-spring.jpg — can you get me the top 8 colors from it so I can match paint and fabric swatches?"}],"resultDescription":"An ordered list of the most dominant colors in the image, up to the requested maximum (default or specified count), ranked from most to least common. Each color is represented as a color value (e.g. hex code). Fewer colors are returned if the image contains fewer distinct color buckets than requested.","failureModes":["Invalid or unreachable image URL returns an error","Image format not detectable from bytes returns an error","Requested color count outside 1–16 range returns a validation error","Image too large or download timeout may cause failure","Payment verification failure means the call is not charged and not executed"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, per-call color palette extraction from a publicly accessible image URL with no setup or API key required. Ideal for agents that need on-demand color analysis at scale, paying only $0.003 per successful call via x402 micropayment with no subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T23:54:42.616Z","isFirstParty":false,"canonicalSlug":"grist-tools-color-palette-extractor-d9e483c3"}