Inpaint image
Changed onCreates a pixel art image based on the provided parameters. Called "Inpaint" in the plugin.
Supported image size:
- Maximum area 200x200
Supported features:
- Inpainting
- Init image
- Forced palette
- Transparent background
Using the Python client:
import pixellab
client = pixellab.Client(secret="YOUR_API_TOKEN")
response = client.inpaint(
description="boy with wings",
image_size=dict(width=16, height=16),
inpainting_image=image_of_boy_without_wings,
mask_image=mask_image,
)
response.image.pil_image()
Request
- Base URLhttps://api.pixellab.ai/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"description": "cute dragon",
"image_size": {
"height": 128,
"width": 128
},
"no_background": true
}Response
Successfully generated image
Changes
- breaking
added the new required request property
/ - breaking
added the new required request property
/ - breaking
the
request property type changed from no type toobject - breaking
the
request property type changed from no type toobject - breaking
the response property
/became optional for the status - breaking
response property
usage/usdlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
removed from the
request propertyallOflist - warning
added the new
generationsenum value to the/response property for the response status - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added
subschema #2to therequest propertyanyOflist - info
added
subschema #2to therequest propertyanyOflist - info
added
subschema #2to therequest propertyanyOflist - info
added
subschema #2to therequest propertyanyOflist - info
added
subschema #2to therequest propertyanyOflist - info
added
subschema #2to therequest propertyanyOflist - info
added
subschema #2to therequest propertyanyOflist - info
request property
list-of-types was widened by adding typesnullto media typeapplication/json - info
added the optional property
/to the response with the status - info
the
response property const valuebase64was added for the status - info
removed the
base64enum value from the/response property for the response status
- breaking