zylim0702
/
stable-diffusion-xl-base-1.0-inpainting
Stable diffusion XL with flexible image width and height
- Public
- 130 runs
Run zylim0702/stable-diffusion-xl-base-1.0-inpainting 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 for inpainting
|
|
mask |
string
|
mask Image for inpainting
|
|
prompt |
string
|
Input prompt for inpainting
|
|
guidance_scale |
number
|
8
Max: 20 |
guidance scale fot inpainting
|
num_inference_steps |
integer
|
20
Max: 50 |
number of inference steps for inpainting
|
strength |
number
|
0.99
Max: 1 |
strength fot inpainting
|
resize |
boolean
|
False
|
resize to 1024x1024 fot inpainting
|
{
"type": "object",
"title": "Input",
"required": [
"image",
"mask",
"prompt"
],
"properties": {
"mask": {
"type": "string",
"title": "Mask",
"format": "uri",
"x-order": 1,
"description": "mask Image for inpainting"
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "input Image for inpainting"
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 2,
"description": "Input prompt for inpainting"
},
"resize": {
"type": "boolean",
"title": "Resize",
"default": false,
"x-order": 6,
"description": "resize to 1024x1024 fot inpainting"
},
"strength": {
"type": "number",
"title": "Strength",
"default": 0.99,
"maximum": 1,
"minimum": 0,
"x-order": 5,
"description": "strength fot inpainting"
},
"guidance_scale": {
"type": "number",
"title": "Guidance Scale",
"default": 8,
"maximum": 20,
"minimum": 0,
"x-order": 3,
"description": "guidance scale fot inpainting"
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 20,
"maximum": 50,
"minimum": 0,
"x-order": 4,
"description": "number of inference steps for inpainting"
}
}
}
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"
}