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.
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"
}
]
}Get the sizes a model version accepts GET
Lists the sizes a model version accepts for `width`/`height` of `POST /v2/image/create`. Despite the path, the parameter is a version ID.
List the versions of a model GET
Lists a model's versions, newest first. Pass a version's `id` as `modelVersionId` or `loras[].modelId` to pin an older version.