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.
Authorization
bearerAuth AuthorizationBearer <token>
In all requests that require authentication
In: header
Query Parameters
modelPreset*string
Length
1 <= lengthResponse 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"
}Create an inpaint, outpaint or redraw task POST
Edits an existing image:
Create an image-to-video task POST
Animates an image into a video with PixAI's Tsubaki video model. The video starts on `firstFrameMediaId` and, when you send `lastFrameMediaId`, ends on it. The output keeps the first frame's aspect ratio.