christophy
/
sdxl-lightning-4step
- Public
- 1 run
Run christophy/sdxl-lightning-4step 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 |
---|---|---|---|
prompt |
string
|
A superhero smiling
|
Input prompt
|
negative_prompt |
string
|
worst quality, low quality
|
Negative Input prompt
|
width |
integer
|
1024
|
Width of output image. Recommended 1024 or 1280
|
height |
integer
|
1024
|
Height of output image. Recommended 1024 or 1280
|
num_outputs |
integer
|
1
Min: 1 Max: 4 |
Number of images to output.
|
scheduler |
string
(enum)
|
K_EULER
Options: DDIM, DPMSolverMultistep, HeunDiscrete, KarrasDPM, K_EULER_ANCESTRAL, K_EULER, PNDM, DPM++2MSDE |
scheduler
|
num_inference_steps |
integer
|
4
Min: 1 Max: 10 |
Number of denoising steps. 4 for best results
|
guidance_scale |
number
|
0
Max: 50 |
Scale for classifier-free guidance. Recommended 7-8
|
seed |
integer
|
Random seed. Leave blank to randomize the seed
|
|
disable_safety_checker |
boolean
|
False
|
Disable safety checker for generated images
|
{
"type": "object",
"title": "Input",
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 8,
"description": "Random seed. Leave blank to randomize the seed"
},
"width": {
"type": "integer",
"title": "Width",
"default": 1024,
"x-order": 2,
"description": "Width of output image. Recommended 1024 or 1280"
},
"height": {
"type": "integer",
"title": "Height",
"default": 1024,
"x-order": 3,
"description": "Height of output image. Recommended 1024 or 1280"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "A superhero smiling",
"x-order": 0,
"description": "Input prompt"
},
"scheduler": {
"enum": [
"DDIM",
"DPMSolverMultistep",
"HeunDiscrete",
"KarrasDPM",
"K_EULER_ANCESTRAL",
"K_EULER",
"PNDM",
"DPM++2MSDE"
],
"type": "string",
"title": "scheduler",
"description": "scheduler",
"default": "K_EULER",
"x-order": 5
},
"num_outputs": {
"type": "integer",
"title": "Num Outputs",
"default": 1,
"maximum": 4,
"minimum": 1,
"x-order": 4,
"description": "Number of images to output."
},
"guidance_scale": {
"type": "number",
"title": "Guidance Scale",
"default": 0,
"maximum": 50,
"minimum": 0,
"x-order": 7,
"description": "Scale for classifier-free guidance. Recommended 7-8"
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "worst quality, low quality",
"x-order": 1,
"description": "Negative Input prompt"
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 4,
"maximum": 10,
"minimum": 1,
"x-order": 6,
"description": "Number of denoising steps. 4 for best results"
},
"disable_safety_checker": {
"type": "boolean",
"title": "Disable Safety Checker",
"default": false,
"x-order": 9,
"description": "Disable safety checker for generated images"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}