Inpaint
Inpaint image
Creates 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()
post/inpaint
Request body
Example request
{
"description": "cute dragon",
"image_size": {
"height": 128,
"width": 128
},
"no_background": true
}Response
Successfully generated image
Changes
No recorded changes to this endpoint across all 1 revision of this API.