stability-ai / sdxl
A text-to-image generative AI model that creates beautiful images
- Price: $0.002 per image, billed from prepaid credit. Failed runs are free.
- License: CreativeML OpenRAIL++-M
- Source: https://github.com/replicate/cog-sdxl
- Collection: Generate images
- Status: available now
Run stability-ai/sdxl with the API
curl -s https://binerai.biner.dev/v1/predictions \
-H "Authorization: Bearer $BINERAI_TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"stability-ai/sdxl","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 | |
num_inference_steps | integer, default 25 | |
guidance_scale | number, default 7 | |
image | string | Optional input image URL for image-to-image |
prompt_strength | number, default 0.8 | How much to change the input image (image-to-image only) |
seed | integer | Random seed. Leave empty for a random one |
Examples
Example runs from Replicate.
- An astronaut riding a rainbow unicorn, cinematic, dramatic output
- A rainbow coloured bear output
- An astronaut riding a rainbow unicorn, cinematic, dramatic output
- A rainbow coloured tiger output
- Alien invasion output
- A film still of a robot, sci-fi, cool color grading, 70mm, bokeh, cinematic, anamorphic, beautiful output
Description via replicate.