ExploreModels
Pricing
Explore

Stable Diffusion XL

All image to image models

Run SDXL at the speed of light

InferenceFrom 1 credit per run

About Stable Diffusion XL

Run SDXL at the speed of light

diffusionhigh-resloraip-adaptercontrolnet

Pricing

A run with the default settings costs 1 credits. The exact cost updates in the playground as you change settings, and you're only charged when you press Run. Failed runs are refunded automatically.

Inputs

image_urlfilerequired

The URL of the image to use as a starting point for the generation.

mask_urlfilerequired

The URL of the mask to use for inpainting.

prompttextarearequired

The prompt to use for generating the image. Be as descriptive as possible for best results.

negative_prompttextareadefault: ""

The negative prompt to use.Use it to address details that you don't want in the image. This could be colors, objects, scenery and even the small details (e.g. moustache, blurry, low resolution).

image_sizeselectdefault: "square_hd"

The size of the generated image.

Options: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9

num_inference_stepsintegerdefault: 25

The number of inference steps to perform.

guidance_scalenumberdefault: 7.5

The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you.

strengthnumberdefault: 0.95

determines how much the generated image resembles the initial image

seedintegerdefault: null

The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time.

sync_modebooleandefault: false

If `True`, the media will be returned as a data URI and the output data won't be available in the request history.

num_imagesintegerdefault: 1

The number of images to generate.

lorasjsondefault: []

The list of LoRA weights to use.

embeddingsjsondefault: []

The list of embeddings to use.

enable_safety_checkerbooleandefault: true

If set to true, the safety checker will be enabled.

safety_checker_versionselectdefault: "v1"

The version of the safety checker to use. v1 is the default CompVis safety checker. v2 uses a custom ViT model.

Options: v1, v2

enable_prompt_expansionbooleandefault: false

If set to true, the prompt will be expanded with additional prompts.

formatselectdefault: "jpeg"

The format of the generated image.

Options: jpeg, png

request_idtextdefault: ""

An id bound to a request, can be used with response to identify the request itself.

More from Stable Diffusion XL

Nano Banana Pro
Nano Banana Pro

Nano Banana Pro is Google's new state-of-the-art image generation and editing model

realismtypography
image-to-image
Nano Banana 2
Nano Banana 2

Nano Banana 2 is Google's new state-of-the-art image generation and editing model

image-to-image
Nano Banana 2.1 Edit
Nano Banana 2.1 Edit

Nano Banana 2.1 Edit by Google transforms reference images using text instructions, with output resolutions up to 4K and optional video or PDF context.

image editingimage to image
image-to-image
GPT Image 2.5 Sunburst Edit
GPT Image 2.5 Sunburst Edit

Editing built for the tightest control, edits scoped precisely to the instruction, with subject and composition preserved across many rounds of revision.

stylizedtransform
image-to-image
GPT Image 2.6 Sunburst Edit✦ new
GPT Image 2.6 Sunburst Edit

Editing built for the tightest control, edits scoped precisely to the instruction, with subject and composition preserved across many rounds of revision.

stylizedtransform
image-to-image
GPT Image 2 API
GPT Image 2 API

GPT Image 2, OpenAI's latest image model, is capable of making fine-grained, detailed edits to images.

gpt-image-2openai
image-to-image
Birefnet Background Removal V2
Birefnet Background Removal V2

bilateral reference framework (BiRefNet) for high-resolution dichotomous image segmentation (DIS)

background removalsegmentation
image-to-image
Nano Banana
Nano Banana

Google's famous original image generation and editing model

image-editing
image-to-image
GPT Image 2.5 Flare Edit
GPT Image 2.5 Flare Edit

Precise image editing that changes only what's asked, keeping subject, composition, and background intact, with reference subjects staying recognizable across styles and successive edits.

stylizedtransform
image-to-image
GPT Image 2.6 Flare Edit✦ new
GPT Image 2.6 Flare Edit

Precise image editing that changes only what's asked, keeping subject, composition, and background intact, with reference subjects staying recognizable across styles and successive edits.

stylizedtransform
image-to-image
Seedream 5.0 Pro Image Editing
Seedream 5.0 Pro Image Editing

Seedream 5.0 Pro is grounded, region-precise image editing model that changes one element while keeping the rest of the frame intact with layer separation, sketch completion, and up to 10 reference images.

realismtypography
image-to-image
SeedVR2
SeedVR2

Use SeedVR2 to upscale your images

upscale
image-to-image