ByteDance's 4-step SDXL Lightning โ the most-run model on Replicate (1B+ runs). Near-instant 1024px image generation at one of the lowest prices in the catalog.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "bytedance/sdxl-lightning-4step",
"input": {
"prompt": "self-portrait of a woman, lightning in the background",
"width": 1024,
"height": 1024,
"num_inference_steps": 4
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | No | self-portrait of a woman, lightning in the background | Input prompt |
negative_prompt | string | No | worst quality, low quality | What to avoid in the image |
width | integer | No | 1024 | Output width (256-1280). 1024 or 1280 recommended |
height | integer | No | 1024 | Output height (256-1280). 1024 or 1280 recommended |
num_outputs | integer | No | 1 | Number of images (1-4). Billed per image |
scheduler | string | No | K_EULER | scheduler DDIMDPMSolverMultistepHeunDiscreteKarrasDPMK_EULER_ANCESTRALK_EULERPNDMDPM++2MSDE |
num_inference_steps | integer | No | 4 | Denoising steps (1-10). 4 gives the best results |
guidance_scale | number | No | 0 | Classifier-free guidance scale. Keep 0 for Lightning |
seed | integer | No | 0 | Random seed. Leave blank to randomize |
disable_safety_checker | boolean | No | false | Disable safety checker for generated images |
Common parameters used when calling POST /v1/predictions.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model identifier |
input | object | Yes | - | Object containing the model-specific parameters from the table above |
output_folder | string | No | - | Folder path for output files (max 256 chars, '..' not allowed) |
webhook_url | string | No | - | Webhook URL to call on completion |
is_public | boolean | No | false | If true, output files are also available via permanent public URLs |
Generate a 1024px image in under a second of compute
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "bytedance/sdxl-lightning-4step",
"input": {
"prompt": "self-portrait of a woman, lightning in the background",
"width": 1024,
"height": 1024,
"num_inference_steps": 4
}
}'POST /v1/predictions