{"uid":"cap_vfCjugEhz6uhqxr8cxP2b","slug":"24k-labs-image-dominant-color-extractor-5384d964","name":"24K Labs Image Dominant Color Extractor","description":"Extract the dominant color palette from an image as hex codes with coverage.","url":"https://api.24klabs.ai/api/image-dominant-color","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"count":{"type":"number"},"image_b64":{"type":"string"}}},"responseSchema":{"type":"json","example":{"palette":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Va5-TWX7y65-TOMcBE5VE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","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, returning hex color codes with their coverage percentages.","exampleAgentPrompt":"Can you pull the dominant color palette from this product photo — https://example.com/product.jpg — and give me the hex codes along with how much of the image each color covers?","exampleUseCases":[{"title":"Brand palette extraction from logo","prompt":"I have a company logo at https://mysite.com/logo.png — can you extract the dominant colors from it and give me the hex codes and their coverage so I can build a consistent color palette?"},{"title":"UI theme generation from hero image","prompt":"Pull the dominant color palette from this hero image https://cdn.myapp.com/hero.jpg and give me the hex codes with percentages so I can theme the UI to match it."},{"title":"E-commerce product color tagging","prompt":"Extract the main colors from this product image at https://store.example.com/shirt.jpg so I can tag the listing with accurate color keywords and hex values."}],"resultDescription":"Returns an array of dominant colors from the image, each with a hex code (e.g. #A3B2C1) and a coverage value indicating what percentage or proportion of the image that color occupies, ordered from most to least dominant.","failureModes":["Invalid or unreachable image URL returns an error","Unsupported image format may result in processing failure","Very small or low-contrast images may yield a limited palette","Network timeout if the image host is slow to respond","Rate limiting if too many requests are made in quick succession"],"whenToPreferThis":"Choose this endpoint when you need to programmatically extract and quantify the dominant colors of any image as hex codes with coverage data — ideal for design tooling, branding pipelines, product tagging, or UI theming. Prefer it over manual color picking or generic vision APIs when you need structured palette output with coverage percentages rather than full scene understanding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:01:39.102Z","isFirstParty":false}