{"uid":"cap_hc0RYzH-8W-z_Vg3zeaaq","slug":"api-x402node-dev-39134e45","name":"Random Color Generator with Saturation and Lightness Constraints","description":"Random color generator, random hex, random RGB, random HSL, color picker, batch colors, pleasant random color, vibrant colors. Generate one or more random colors with optional saturation and lightness constraints. Accepts payment on Base or Solana — either network works.","url":"https://api.x402node.dev/color/random","method":"GET","headers":{},"bodySchema":{"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","properties":{"count":{"type":"string","description":"Count (optional)"},"lightness":{"type":"string","description":"Lightness (optional)"},"saturation":{"type":"string","description":"Saturation (optional)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0022","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0022/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0022","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_G5537aoRejD__n9gE7phQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0022","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates one or more random colors (hex, RGB, HSL) with optional saturation and lightness constraints for pleasant or vibrant output","exampleAgentPrompt":"Give me 5 random colors that look vibrant and pleasant — high saturation, somewhere between medium and bright lightness — and return them as hex codes.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing a 'colors' array with one or more random color entries, each including hex, RGB, and/or HSL representations, potentially filtered by saturation and lightness constraints.","failureModes":["Invalid count parameter (non-integer or negative) returns 400 error","Saturation or lightness range values out of 0-100 bounds may return validation error","Payment failure or insufficient USDC balance returns 402 Payment Required","Server-side generation error returns 500"],"whenToPreferThis":"Use this endpoint when you need one or more random colors programmatically — especially when you want to constrain saturation or lightness to ensure pleasant, pastel, or vibrant output rather than getting arbitrary muddy colors. Prefer over manual color picking when building palettes, UI mockups, or generative art pipelines that need randomness with aesthetic guardrails.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:35:11.573Z","isFirstParty":false}