PixAI Platform
API v2 DocumentationModel

List color palette presets

Lists PixAI's official color palettes for colorPalette of POST /v2/image/create. To use one, send the whole preset object with "source": "preset" added.

name is localized: pass ?lang=ja (or ko, en), or an Accept-Language header.

GET
/color-palettes/presets

Authorization

bearerAuth
AuthorizationBearer <token>

In all requests that require authentication

In: header

Response Body

application/json

curl -X GET "https://api.pixai.art/v2/color-palettes/presets"
{
  "palettes": [
    {
      "id": "string",
      "name": "string",
      "palette": {
        "overall": {
          "colors": [
            {
              "hex": "string",
              "ratio": 100
            }
          ]
        },
        "background": {
          "colors": [
            {
              "hex": "string",
              "ratio": 100
            }
          ]
        },
        "character": {
          "colors": [
            {
              "hex": "string",
              "ratio": 100
            }
          ]
        }
      },
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "coverUrl": "string"
    }
  ]
}