bytedance / sdxl-lightning-4step
SDXL-Lightning by ByteDance: a fast text-to-image model that makes high-quality images in 4 steps
- Price: $0.002 per image, billed from prepaid credit. Failed runs are free.
- License: CreativeML OpenRAIL++-M
- Source: https://github.com/lucataco/cog-sdxl-lightning-4step
- Collection: Generate images
- Status: available now
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
| Field | Type | Description |
|---|---|---|
prompt | string | Text prompt |
negative_prompt | string | Things to avoid in the image |
width | integer, default 1024 | Rounded to a multiple of 8 |
height | integer, default 1024 | Rounded to a multiple of 8 |
num_outputs | integer, default 1 | |
seed | integer | Random 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.