inpaint
Remove or replace elements in an image using a mask and text prompt. Specify mask shape and position to inpaint specific areas, saving results as output files.
Instructions
Inpaint an image using a mask
Input Schema
Name | Required | Description | Default |
---|---|---|---|
image | Yes | Input image path | |
mask_shape | No | Shape of the mask | circle |
output | No | Output filename | inpainted.jpg |
position | No | Position of the mask | center |
prompt | Yes | Text prompt for inpainting |
Input Schema (JSON Schema)
{
"properties": {
"image": {
"description": "Input image path",
"type": "string"
},
"mask_shape": {
"default": "circle",
"description": "Shape of the mask",
"enum": [
"circle",
"rectangle"
],
"type": "string"
},
"output": {
"default": "inpainted.jpg",
"description": "Output filename",
"type": "string"
},
"position": {
"default": "center",
"description": "Position of the mask",
"enum": [
"center",
"ground"
],
"type": "string"
},
"prompt": {
"description": "Text prompt for inpainting",
"type": "string"
}
},
"required": [
"image",
"prompt"
],
"type": "object"
}