# Relaystation Dominant Color Extractor

> Relaystation Dominant Color Extractor is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Extracts the dominant color of an image and returns it as a hex code and RGB values for use in theming and palette generation.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/image/dominant-color
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-dominant-color-extractor-86e74c1c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U4ZJNRv6X59B8Dz3Swjys

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 relaystation-dominant-color-extractor-86e74c1c -d '<json body>'
```

Example prompt: What's the dominant color in this image — can you give me the hex code and RGB values? Here's the image URL: https://example.com/my-logo.png

## When to prefer this

Choose this endpoint when you need a fast, cheap, single-call dominant color extraction from any image — especially for UI theming, auto-palette generation, or product color tagging. It is priced per-call at $0.0002 with a 1¢ minimum, making it cost-effective for both single requests and batches. Prefer this over full image analysis endpoints when you only need color data, not object detection or scene understanding.

## Known failure modes

- Invalid or unreachable image URL returns an error
- Unsupported image format may cause processing failure
- Payment insufficient or x402 flow incomplete blocks the call
- Very complex or multi-colored images may return a color that appears non-dominant visually
- Large images may incur higher latency

## How this service works

$0.0002/call. Get an image's dominant color as hex/RGB — theming and palettes from any picture. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns the dominant color of the submitted image as both a hex string (e.g. #3A7BD5) and RGB values (e.g. {r: 58, g: 123, b: 213}), suitable for direct use in theming, palette generation, or color tagging workflows.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {}
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-dominant-color-extractor-86e74c1c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
