# GeekVault Dominant Colors Extractor

> GeekVault Dominant Colors Extractor is a paid API for AI agents from api.geekvault.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Analyzes an uploaded image file and returns the dominant colors as hex codes with pixel counts

## Facts

- Endpoint: POST https://api.geekvault.dev/img-tools/v1/dominant-colors?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/geekvault-dominant-colors-extractor-1c6af774
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-nFN2BLndEh6tTZ-rpfn9

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 geekvault-dominant-colors-extractor-1c6af774 -d '<json body>'
```

Example prompt: Can you analyze this image and tell me what the dominant colors are, with their hex codes?

## When to prefer this

Choose this endpoint when you need a fast, no-signup, pay-per-call dominant color extraction from an image without subscribing to a full computer vision platform. Ideal for lightweight design tooling, automated catalog tagging, or one-off palette extraction tasks where you want to pay $0.003 USDC per call via x402 rather than committing to a monthly API subscription.

## Known failure modes

- Invalid or malformed image file returns an error
- Empty or missing 'file' field causes a 400 bad request
- Unsupported image format may result in processing failure
- Very large image files may time out or exceed size limits
- Non-image binary data passed as file will fail analysis

## How this service works

Network, docs, image, web, and dev utility tools paid per call via x402. No signup, no API keys, no subscriptions — just USDC on Base.

## Output

Returns an array of dominant colors, each with a hex code string (e.g. '#FF5733') and an integer pixel count indicating how many pixels in the image correspond to that color, ordered from most to least dominant.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "file"
 ],
 "properties": {
  "file": {
   "type": "array"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "colors"
 ],
 "properties": {
  "colors": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "hex",
     "count"
    ],
    "properties": {
     "hex": {
      "type": "string"
     },
     "count": {
      "type": "integer",
      "format": "int32",
      "minimum": 0
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/geekvault-dominant-colors-extractor-1c6af774/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.geekvault.dev](https://www.zero.xyz/host/api.geekvault.dev/llms.txt)
