Get the sizes a model version accepts
Lists the sizes a model version accepts for width/height of POST /v2/image/create. Despite the path, the parameter is a version ID.
A custom width/height must fall inside one range's minWidth–maxWidth and minHeight–maxHeight and be a multiple of its step. Presets are ready-made sizes and may lie outside those bounds. Entries whose accessStatus is membership_required need a higher membership tier than your account has.
Authorization
bearerAuth In all requests that require authentication
In: header
Path Parameters
The model version ID.
Response Body
application/json
application/json
curl -X GET "https://api.pixai.art/v2/generation-model/string/size-config"{
"ranges": [
{
"name": "string",
"minWidth": 0,
"maxWidth": 0,
"minHeight": 0,
"maxHeight": 0,
"step": 0,
"accessStatus": "available",
"presets": [
{
"id": "string",
"width": 0,
"height": 0,
"ratioLabel": "string",
"accessStatus": "available"
}
]
}
]
}{
"code": "string",
"status": 0,
"message": "string",
"data": {},
"defined": true
}Get a model version GET
Reads one model version by its version ID, the ID that generation endpoints take. Use it to look up a LoRA's trigger words and base model before generating.
List color palette presets GET
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.