BinerAI · Models · Docs · Pricing

bytedance / sdxl-lightning-4step

SDXL-Lightning by ByteDance: a fast text-to-image model that makes high-quality images in 4 steps

Run bytedance/sdxl-lightning-4step with the API

curl -s https://binerai.biner.dev/v1/predictions \
  -H "Authorization: Bearer $BINERAI_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"model":"bytedance/sdxl-lightning-4step","input":{"prompt":"a red fox in a snowy forest"}}'

Then poll GET https://binerai.biner.dev/v1/predictions/:id or pass a webhook URL. Full reference: API docs.

Input

FieldTypeDescription
promptstringText prompt
negative_promptstringThings to avoid in the image
widthinteger, default 1024Rounded to a multiple of 8
heightinteger, default 1024Rounded to a multiple of 8
num_outputsinteger, default 1
seedintegerRandom seed. Leave empty for a random one

Examples

Example runs from Replicate.

  • A pickup truck going up a mountain switchback output
  • A delicate porcelain teacup sits on a saucer, its surface adorned with intricate blue patterns output
  • In a fantastical scene, a creature with a human head and deer body emanates a green light output
  • a majestic lion stands proudly on a rock, overlooking the vast African savannah output
  • The 90s, a beautiful woman with a radiant smile and long hair, dressed in summer attire output
  • A dolphin leaps through the waves, set against a backdrop of bright blues and teal hues output

Description via replicate.