PixAI Platform
API v2 DocumentationImage

Get the limits of an inpaint preset

Returns the size limits and redraw presets of an inpaint modelPreset. An unknown preset answers null fields rather than an error. No authentication is needed.

GET
/gen-task/inpaint/constraints

Authorization

bearerAuth
AuthorizationBearer <token>

In all requests that require authentication

In: header

Query Parameters

modelPreset*string
Length1 <= length

Response Body

application/json

curl -X GET "https://api.pixai.art/v2/gen-task/inpaint/constraints?modelPreset=v1"
{
  "modelPreset": "string",
  "constraints": {
    "minWidth": 0,
    "maxWidth": 0,
    "minHeight": 0,
    "maxHeight": 0,
    "maxPixels": 0,
    "dimensionStep": 0
  },
  "sdeditPresets": {
    "property1": {},
    "property2": {}
  },
  "defaultSdeditPreset": "string"
}