---
title: "Extract Image Colors"
method: POST
path: "/extract-colors"
tags: ["Classification"]
---

# Extract Image Colors

`POST /extract-colors`

Extract the key colors from an image to understand its visual style and palette.
The service analyzes an image and returns up to five prominent colors, including dominant foreground and background tones.

## Response `200`

Success.

- object
  - `data` string[] — The colors with highest usage in the image.
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required
- `403` — Forbidden
- `404` — Not Found
- `405` — Method Not Allowed
- `413` — Request Entity Too Large
- `415` — Unsupported Media Type
- `422` — Unprocessable Entity
- `429` — Too Many Requests
- `431` — Request Header Fields Too Large
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/picsart/apis/picsart-programmable-image-apis.md) · [All operations](https://skmtc.net/picsart/apis/picsart-programmable-image-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/picsart/picsart-programmable-image-apis/revisions/726b2a637ae8/schema)
