API v2 DocumentationModel
List the versions of a model
Lists a model's versions, newest first. Pass a version's id as modelVersionId or loras[].modelId to pin an older version.
Authorization
bearerAuth AuthorizationBearer <token>
In all requests that require authentication
In: header
Path Parameters
modelId*string
The model ID.
Query Parameters
baseModelType?string
Only versions for this base model type.
Value in
"ANY_LORA" | "ANY_MODEL" | "ANY_NON_SDXL_LORA" | "ANY_NON_USER_LORA" | "ANY_SDXL_LORA" | "ANY_USER_LORA" | "ANY_VAE" | "CHAT" | "DIT5A_MODEL_INTERNAL" | "DIT7A_LORA" | "DIT7A_MODEL" | "DIT7A_VAE" | "DIT7B_LORA" | "DIT7B_MODEL" | "DIT7B_VAE" | "DIT7C_LORA" | "DIT7C_MODEL" | "DIT7C_VAE" | "DIT7D_LORA" | "DIT7D_MODEL" | "DIT7D_VAE" | "DIT7_LORA" | "DIT7_MODEL" | "DIT7_VAE" | "DIT9_LORA" | "DIT9_MODEL" | "DIT9_VAE" | "LORA" | "MMDIT26A_MODEL" | "MMDIT26B_MODEL" | "MULTI_LORA" | "SD3_MEDIUM_MODEL" | "SDXL_LORA" | "SDXL_MODEL" | "SDXL_VAE" | "SD_V1_MODEL" | "UNKNOWN_LORA" | "UNKNOWN_MODEL" | "USER_DIT26A_MODEL" | "USER_DIT26B_MODEL" | "USER_LORA" | "USER_MULTI_LORA" | "USER_SDXL_LORA" | "VAE" | "VIDEO_MODEL" | "VIDEO_MODEL_LORA" | "Z_IMAGE_V1_MODEL"Response Body
application/json
application/json
curl -X GET "https://api.pixai.art/v2/generation-model/string/versions"[
{
"id": "string",
"modelId": "string",
"modelTitle": "string",
"name": "string",
"modelType": "string",
"loraBaseModelType": "string",
"loraBaseModelId": "string",
"status": "string",
"extra": {
"triggerWords": "string"
},
"mediaId": "string"
}
]{
"code": "string",
"status": 0,
"message": "string",
"data": {},
"defined": true
}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.
Search models and LoRAs GET
Searches the PixAI Model Market. Use it to find a base model for `modelVersionId`, or LoRAs for `loras` of `POST /v2/image/create`.