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

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "format": "uri"
  },
  "title": "Output"
}