# 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-14).

Extracts the dominant color palette from an image and returns hex color codes with their coverage percentages.

## Facts

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

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-a17287aa -d '<json body>'
```

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

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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

## Output

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.

## 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-a17287aa/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)
