xiankgx
/
lcm-lora-sd-img2img
LCM-LoRA Lycon Dreamshaper8 img2img
Run xiankgx/lcm-lora-sd-img2img 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.
|
|
strength |
number
|
0.8
Max: 1 |
Amount of noise to add to the input image.
|
prompt |
string
|
A textual description of what to generate.
|
|
negative_prompt |
string
|
A textual description of what to avoid in the generation. Set guidance_scale > 1.0 to enable.
|
|
guidance_scale |
integer
|
1
Min: 1 Max: 2 |
None
|
steps |
integer
|
4
|
None
|
seed |
integer
|
-1
|
None
|
{
"type": "object",
"title": "Input",
"required": [
"image",
"prompt"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": -1,
"x-order": 6
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "Input image."
},
"steps": {
"type": "integer",
"title": "Steps",
"default": 4,
"x-order": 5
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 2,
"description": "A textual description of what to generate."
},
"strength": {
"type": "number",
"title": "Strength",
"default": 0.8,
"maximum": 1,
"minimum": 0,
"x-order": 1,
"description": "Amount of noise to add to the input image."
},
"guidance_scale": {
"type": "integer",
"title": "Guidance Scale",
"default": 1,
"maximum": 2,
"minimum": 1,
"x-order": 4
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"x-order": 3,
"description": "A textual description of what to avoid in the generation. Set guidance_scale > 1.0 to enable."
}
}
}
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"
}