Skip to content
AI Color

Colors API

A free JSON API for color palettes and color data. No key, no signup, no rate-limit headaches for normal use. CORS is open, so you can call it directly from the browser.

GET/api/v1/palettes

List palettes, filtered by tag or search term.

Query parameters

tag
Filter to one collection, e.g. `boho`.
q
Free-text search across names and tags.
sort
`popular` (default), `trending` or `newest`.
page
Page number, starting at 1.
limit
Results per page, 1 to 50. Defaults to 20.

Example

curl "https://www.ai-color.app/api/v1/palettes?tag=boho&limit=3"
GET/api/v1/colors/{hex}

Full detail for a single color, including shades and contrast.

Query parameters

hex
Six or three digit hex code, with or without the leading hash.

Example

curl "https://www.ai-color.app/api/v1/colors/6d28d9"

Response shape

List endpoints return a `data` array and a `meta` object with pagination. Single-resource endpoints return the object directly. Errors return an `error` string with the appropriate status code.

{
  "data": [
    {
      "slug": "boho-faded-terrace-9k2m4x",
      "name": "Boho Faded Terrace",
      "colors": ["#f3e6d6", "#d9a273", "#b4653f", "#7a4a35", "#3a2b24"],
      "tags": ["boho", "earthy", "warm"],
      "likes": 312,
      "url": "https://www.ai-color.app/palette/boho-faded-terrace-9k2m4x"
    }
  ],
  "meta": { "page": 1, "perPage": 20, "total": 480, "totalPages": 24 }
}

Embeddable palettes

If you would rather not touch the API, every palette can be embedded as an iframe. Paste the snippet below into any page and swap the slug for the palette you want.

<iframe src="https://www.ai-color.app/embed/boho-faded-terrace-9k2m4x" width="100%" height="220" style="border:0" loading="lazy" title="Color palette"></iframe>

Colors API FAQ

Do I need an API key?

No. Both endpoints are open, require no registration, and send permissive CORS headers so you can call them straight from a browser.

What are the rate limits?

Around 120 requests per minute per IP. Responses are cached at the edge for an hour, so a normal application will rarely come close to the limit.

Can I use the API commercially?

Yes, free of charge. A link back to www.ai-color.app is appreciated but not required. Colors themselves are not copyrightable, and the palette data is released for unrestricted use.

Is there a rate-limited or paid tier?

Not currently. If you need volumes beyond the public limit, get in touch and we will work something out.