# Vextorium Image Palette Extractor

> Vextorium Image 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-15).

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

## Facts

- Endpoint: POST https://api.vextorium.com/v1/image-palette?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-image-palette-extractor-e6a2f310
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m54Hs5_wVh4XIhjgwjq5l

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-palette-extractor-e6a2f310 -d '<json body>'
```

Example prompt: Can you extract the 8 dominant colors from this image — https://example.com/my-logo.png — and tell me their HEX codes, RGB values, percentage share, and whether the overall tone is light or dark?

## When to prefer this

Choose this endpoint when you need to programmatically extract a structured color palette from any image — either by URL or base64 — and require both HEX and RGB formats, percentage breakdowns, an average color, and light/dark tone classification. Ideal for brand palette automation, UI theme generation, image tagging pipelines, or any workflow where color data needs to feed downstream design or categorization logic.

## Known failure modes

- Image URL is inaccessible or returns a non-200 response
- Base64 string is malformed or not a valid image format
- colors parameter outside 2-16 range causes validation error
- Image too large may cause timeout or processing error
- Neither url nor base64_img provided results in missing input error

## 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 (up to 2-16) each with hex code, RGB array, and ratio_pct (percentage share); an avg_color object with hex and RGB of the overall average color; and a tone string indicating whether the image is light or dark.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tone": "oscuro",
  "colors": [
   {
    "hex": "#0d0f11",
    "rgb": [
     13,
     15
    ],
    "ratio_pct": 45.38
   },
   {
    "hex": "#0e1916",
    "rgb": [
     14,
     25
    ],
    "ratio_pct": 40.85
   }
  ],
  "avg_color": {
   "hex": "#15211d",
   "rgb": [
    21,
    33
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vextorium-image-palette-extractor-e6a2f310/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)
