BinerAI · Models · Docs · Pricing

stability-ai / sdxl

A text-to-image generative AI model that creates beautiful images

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

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
num_inference_stepsinteger, default 25
guidance_scalenumber, default 7
imagestringOptional input image URL for image-to-image
prompt_strengthnumber, default 0.8How much to change the input image (image-to-image only)
seedintegerRandom 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.