# 24K Labs Image Dominant Color Extractor

> 24K Labs Image Dominant Color Extractor is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-13).

Extracts the dominant color palette from an image, returning hex color codes with their coverage percentages.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/image-dominant-color
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-image-dominant-color-extractor-5384d964
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vfCjugEhz6uhqxr8cxP2b

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 24k-labs-image-dominant-color-extractor-5384d964 -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Extract the dominant color palette from an image as hex codes with coverage.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "count": {
   "type": "number"
  },
  "image_b64": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "palette": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-image-dominant-color-extractor-5384d964/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
