{"uid":"cap_hhXwbe2VuSOyJIm2y7Y0e","slug":"24k-labs-image-dominant-color-extractor-a17287aa","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/v1/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_fJxtOpaywG_5orUuu_8bz","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 and returns hex color codes with their coverage percentages.","exampleAgentPrompt":"Can you pull the dominant color palette from this product image — https://example.com/product.jpg — and give me the hex codes along with how much of the image each color covers?","exampleUseCases":[{"title":"Brand color extraction from logo","prompt":"I have a logo image at https://mybrand.com/logo.png — can you extract the dominant colors from it and give me the hex codes so I can build a consistent color palette for our design system?"},{"title":"E-commerce product color tagging","prompt":"Pull the dominant color palette from this product photo at https://shop.example.com/sneaker.jpg and tell me what percentage of the image each color covers — I need to tag the product listing with its main colors."},{"title":"Website background color matching","prompt":"I want to match my website background to the main color in this hero image at https://mysite.com/hero.webp — what's the dominant hex color and how much of the image does it take up?"}],"resultDescription":"Returns a list of dominant colors extracted from the image, each represented as a hex color code (e.g. #3A7BD5) paired with a coverage value indicating what percentage or proportion of the image that color occupies, ordered by dominance.","failureModes":["Invalid or unreachable image URL returns an error","Unsupported image format may cause processing failure","Very low-contrast or monochrome images may return fewer palette entries","Network timeout if image file is too large or slow to fetch","Malformed request body returns a 400 error"],"whenToPreferThis":"Choose this endpoint when you need to programmatically extract the actual color composition of an image with exact hex codes and coverage data — ideal for design automation, brand color extraction, product tagging, or any workflow where you need quantified color dominance rather than a human description of image colors.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:41:56.148Z","isFirstParty":false}