hassamdevsy
/
controlnet-inpaint
- Public
- 35.1K runs
Run hassamdevsy/controlnet-inpaint 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
|
None
|
|
prompt |
string
|
None
|
|
negative_prompt |
string
|
None
|
|
mask |
string
|
None
|
|
controlnet_conditioning_scale |
number
|
0.5
Max: 1 |
Controlnet Srength
|
guidance_scale |
number
|
7.5
Max: 20 |
Guidance Scale for prompt
|
num_images_per_prompt |
integer
|
1
Min: 1 Max: 4 |
Number Images to return
|
num_inference_steps |
integer
|
30
Max: 50 |
Images to return
|
{
"type": "object",
"title": "Input",
"required": [
"image",
"prompt",
"negative_prompt",
"mask"
],
"properties": {
"mask": {
"type": "string",
"title": "Mask",
"format": "uri",
"x-order": 3
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 1
},
"guidance_scale": {
"type": "number",
"title": "Guidance Scale",
"default": 7.5,
"maximum": 20,
"minimum": 0,
"x-order": 5,
"description": "Guidance Scale for prompt"
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"x-order": 2
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 30,
"maximum": 50,
"minimum": 0,
"x-order": 7,
"description": "Images to return"
},
"num_images_per_prompt": {
"type": "integer",
"title": "Num Images Per Prompt",
"default": 1,
"maximum": 4,
"minimum": 1,
"x-order": 6,
"description": "Number Images to return"
},
"controlnet_conditioning_scale": {
"type": "number",
"title": "Controlnet Conditioning Scale",
"default": 0.5,
"maximum": 1,
"minimum": 0,
"x-order": 4,
"description": "Controlnet Srength"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "array",
"items": {},
"title": "Output"
}