# Vextorium Image Color Palette Extractor

> Vextorium Image Color Palette Extractor is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-16).

Extracts dominant colors from an image (by URL or base64) returning each color's HEX/RGB values and percentage share, plus the average color and light/dark tone classification.

## Facts

- Endpoint: POST https://api.vextorium.com/paleta-imagen-pago?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-image-color-palette-extractor-60590f94
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Dm8xqv-7V-oOjXd-2X2td

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 vextorium-image-color-palette-extractor-60590f94 -d '<json body>'
```

Example prompt: Can you analyze this product photo and give me its dominant colors — I want up to 8 colors with their HEX codes, RGB values, and what percentage of the image each one covers, plus whether the overall tone is light or dark? The image is at https://example.com/product.jpg

## When to prefer this

Choose this endpoint when you need to programmatically extract a structured color palette from any image — particularly for brand palette generation, UI theme derivation, or image cataloguing by color. It is well-suited for cases where you need both precise HEX/RGB values and proportional coverage data, plus a quick light/dark classification, without running a full ML pipeline locally.

## Known failure modes

- Invalid or unreachable image URL returns an error
- Base64 string is malformed or not a valid image format
- colores parameter out of range (must be 2-16) may return error or default to 6
- Very small or uniform images may return fewer colors than requested
- Network timeout if the image URL is slow to load
- Payment not fulfilled returns HTTP 402

## How this service works

Dominant colors of an image (URL or base64) with their share, in HEX and RGB, plus the average color and light/dark tone. For brand palettes, themes or tagging images by color.

## Output

A JSON object containing: an array of dominant colors each with hex string, rgb array [R,G,B], and proporcion_pct (percentage share of the image); a color_medio object with the average image color in hex and rgb; and a tono field indicating 'claro' (light) or 'oscuro' (dark) overall tone.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  },
  "colores": {
   "type": "integer",
   "description": "2-16 (default 6)"
  },
  "base64_img": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tono": "oscuro",
  "colores": [
   {
    "hex": "#0d0f11",
    "rgb": [
     13,
     15,
     17
    ],
    "proporcion_pct": 45.38
   },
   {
    "hex": "#0e1916",
    "rgb": [
     14,
     25,
     22
    ],
    "proporcion_pct": 40.85
   },
   {
    "hex": "#294939",
    "rgb": [
     41,
     73,
     57
    ],
    "proporcion_pct": 9.74
   },
   {
    "hex": "#0b0b0f",
    "rgb": [
     11,
     11,
     15
    ],
    "proporcion_pct": 3.5
   },
   {
    "hex": "#0a1010",
    "rgb": [
     10,
     16,
     16
    ],
    "proporcion_pct": 0.54
   }
  ],
  "color_medio": {
   "hex": "#15211d",
   "rgb": [
    21,
    33,
    29
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vextorium-image-color-palette-extractor-60590f94/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
