You're looking at a specific version of this model. Jump to the model overview.
aaronhayes /sam2-infill-anything:622920c3
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
|
|
infill_prompt |
string
|
Prompt to infill image
|
|
infill_negative_prompt |
string
|
deformed, distorted, blurry, bad light, extra buildings, extra structures, buildings, overexposed, oversaturated, fake, animated, cartoon
|
Negative prompt for infill image
|
mask_prompt |
string
|
Prompt for SAM2 mask generation
|
|
mask_threshold |
number
|
0.5
|
Threshold for mask generation, higher values lead to more restrictive masks
|
steps |
integer
|
20
|
Interference steps
|
cfg |
number
|
9.5
|
Classifier-free guidance scale balances creativity and prompt adherence. Higher values results in images matching the prompt more closely.
|
denoise |
number
|
0.85
|
The amount of denoise applied, lower values will maintain the structure of the input image
|
output_format |
string
(enum)
|
jpg
Options: webp, jpg, png |
Format of the output images
|
output_quality |
integer
|
95
Max: 100 |
Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality.
|
seed |
integer
|
Set a seed for reproducibility. Random by default.
|
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{'items': {'format': 'uri', 'type': 'string'},
'title': 'Output',
'type': 'array'}