{"uid":"cap_r5ShZbgPeOoNaZCdBXMK_","slug":"fastapi-online-color-palette-extractor-d0918648","name":"fastapi.online Color Palette Extractor","description":"Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.","url":"https://api.fastapi.online/color-palette","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"Image file (PNG/JPEG/WebP)"},"num_colors":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BkWSSWXfH0pJGruADhrKH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts a dominant color palette from an uploaded image file, returning a set of representative colors.","exampleAgentPrompt":"Can you extract the 5 dominant colors from this product photo and give me their hex codes?","exampleUseCases":[{"title":"Brand color extraction from logo","prompt":"I have a PNG of our company logo — can you pull out the 6 main colors from it so I can build a style guide?"},{"title":"Design palette from photography","prompt":"Extract the top 8 dominant colors from this landscape photo so I can use them as inspiration for a website color scheme."},{"title":"Product photo color matching","prompt":"What are the 4 primary colors in this product image? I need the hex values to match them in our e-commerce listing."}],"resultDescription":"Returns a list of dominant colors extracted from the uploaded image, likely as hex codes or RGB values, representing the most prominent colors present in the image. The number of colors returned corresponds to the num_colors parameter supplied.","failureModes":["Unsupported image format (not PNG/JPEG/WebP) returns an error","Image file too large may time out or be rejected","Invalid or missing file input returns a 400 or validation error","num_colors set to an unreasonably high number may produce degraded results","Payment failure or missing x402 payment header blocks the request"],"whenToPreferThis":"Choose this endpoint when you need a quick, affordable, per-call color palette extraction from an image without requiring a signup or subscription. It is especially useful for design automation pipelines, product catalog enrichment, or brand analysis tasks where you want dominant hex color codes extracted programmatically from image files.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:02:25.407Z","isFirstParty":false}