Skip to main content
Core.Today
|
ByteDanceFastStandard

SDXL Lightning 4-step

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.

4 credits
per image (num_outputs billed per image)
1B+ runs โ€” the most-run model on Replicate
4-step generation: near-instant results
Up to 1280px output, up to 4 images per request
Negative prompt and scheduler control
One of the lowest prices in the catalog (5 credits/image)

Run it right now

Test this model instantly in the Console Playground โ€” no code required

Sign in to try

Use with AI Assistant

Copy usage instructions for Claude, ChatGPT, or other AI

Quick Start

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
  }
}'

Parameters

ParameterTypeRequiredDefaultDescription
promptstringNoself-portrait of a woman, lightning in the backgroundInput prompt
negative_promptstringNoworst quality, low qualityWhat to avoid in the image
widthintegerNo1024Output width (256-1280). 1024 or 1280 recommended
heightintegerNo1024Output height (256-1280). 1024 or 1280 recommended
num_outputsintegerNo1Number of images (1-4). Billed per image
schedulerstringNoK_EULERscheduler
DDIMDPMSolverMultistepHeunDiscreteKarrasDPMK_EULER_ANCESTRALK_EULERPNDMDPM++2MSDE
num_inference_stepsintegerNo4Denoising steps (1-10). 4 gives the best results
guidance_scalenumberNo0Classifier-free guidance scale. Keep 0 for Lightning
seedintegerNo0Random seed. Leave blank to randomize
disable_safety_checkerbooleanNofalseDisable safety checker for generated images

Common Parameters

Common parameters used when calling POST /v1/predictions.

ParameterTypeRequiredDefaultDescription
modelstringYes-Model identifier
inputobjectYes-Object containing the model-specific parameters from the table above
output_folderstringNo-Folder path for output files (max 256 chars, '..' not allowed)
webhook_urlstringNo-Webhook URL to call on completion
is_publicbooleanNofalseIf true, output files are also available via permanent public URLs

Examples

Instant Concept Art

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
  }
}'

Tips & Best Practices

1Keep num_inference_steps at 4 and guidance_scale at 0 โ€” that's what Lightning is tuned for
2Use it to iterate prompts cheaply, then re-run winners on FLUX or Seedream for final quality
3num_outputs up to 4 for quick variations; billed per image
41024x1024 or 1280x1280 give the best quality

Use Cases

Rapid concept iteration
High-volume image pipelines
Real-time preview generation
Placeholder and mockup art
Prompt experimentation before premium models