fmxexpress/fill-anything
Public
1
run
Run fmxexpress/fill-anything with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| image |
string
|
Input image to fill.
|
|
| point_coords |
string
|
750 500
|
Point coordinates in the format 'x y'
|
| point_labels |
integer
|
1
|
Point label (0 for background, 1 for foreground)
|
| text_prompt |
string
|
a teddy bear on a bench
|
Text prompt for inpainting
|
| dilate_kernel_size |
integer
|
50
|
Kernel size for dilation
|
| sam_model_type |
string
|
vit_h
|
Type of SAM model
|
| seed |
integer
|
Random seed for reproducibility
|
{
"type": "object",
"title": "Input",
"required": [
"image"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 6,
"description": "Random seed for reproducibility"
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "Input image to fill."
},
"text_prompt": {
"type": "string",
"title": "Text Prompt",
"default": "a teddy bear on a bench",
"x-order": 3,
"description": "Text prompt for inpainting"
},
"point_coords": {
"type": "string",
"title": "Point Coords",
"default": "750 500",
"x-order": 1,
"description": "Point coordinates in the format 'x y'"
},
"point_labels": {
"type": "integer",
"title": "Point Labels",
"default": 1,
"x-order": 2,
"description": "Point label (0 for background, 1 for foreground)"
},
"sam_model_type": {
"type": "string",
"title": "Sam Model Type",
"default": "vit_h",
"x-order": 5,
"description": "Type of SAM model"
},
"dilate_kernel_size": {
"type": "integer",
"title": "Dilate Kernel Size",
"default": 50,
"x-order": 4,
"description": "Kernel size for dilation"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}