# Random Color Generator

> Random Color Generator is a paid API for AI agents from x402-zoo.lolagent.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Generates a random RGB and hexadecimal color value for use in design, testing, palettes, and procedural content.

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/random-color
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/random-color-generator-8958f792
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gsSbyKKbQzNLgKAlPNN_8

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 random-color-generator-8958f792
```

Example prompt: Give me a random color — I need both the hex code and the RGB values for a UI design I'm working on.

## When to prefer this

Choose this endpoint when you need a lightweight, on-demand random color with both RGB and hex representations in a single call, especially in contexts where no local randomization logic is available or where you want an external, stateless color source for design tooling, test fixtures, or procedural generation pipelines.

## Known failure modes

- Network or worker errors returning 5xx status
- Payment failure or insufficient funds returning 402
- Malformed response if upstream worker is temporarily unavailable

## How this service works

Generate a random RGB and hexadecimal color for design, tests, palettes and procedural content.

## Output

Returns a randomly generated color with both its RGB component values (red, green, blue integers from 0–255) and the equivalent hexadecimal color string (e.g. #3A7FCD).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {}
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/random-color-generator-8958f792/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-zoo.lolagent.workers.dev](https://www.zero.xyz/host/x402-zoo.lolagent.workers.dev/llms.txt)
