compare/Stable-Diffusion-XL-LightningvsStable-Diffusion-V1-5-Inpainting

Stable-Diffusion-XL-Lightning vs Stable-Diffusion-V1-5-Inpainting

Pricing, context window, capabilities, and release date — pulled from each provider's public docs. Both are available via the same AIgateway OpenAI-compatible endpoint; flip the model string to switch.

RUN BOTH LIVE

Paste a prompt. Watch them race.

Both models stream in parallel through your own AIgateway key. Tokens, latency, and cost update as they arrive.

Sign in to runLive streaming uses your own key. It's free to sign up.
 Stable-Diffusion-XL-Lightning
bytedance/stable-diffusion-xl-lightning
Stable-Diffusion-V1-5-Inpainting
runwayml/stable-diffusion-v1-5-inpainting
ProviderByteDanceRunway
FamilyStable DiffusionStable Diffusion
Modalityimageimage
Context window
Max output
Released2024-02-272024-02-27
Input price$0.0000 /img$0.0000 /img
Output price
Cache read
Tools
Streaming
Vision
JSON mode
Reasoning
Prompt caching
Stable-Diffusion-XL-Lightning
bytedance/stable-diffusion-xl-lightning
Full spec →

SDXL-Lightning is a lightning-fast text-to-image generation model. It can generate high-quality 1024px images in a few steps.

Strengths
  • Text-to-image generation
  • Creative control
Stable-Diffusion-V1-5-Inpainting
runwayml/stable-diffusion-v1-5-inpainting
Full spec →

Stable Diffusion Inpainting is a latent text-to-image diffusion model capable of generating photo-realistic images given any text input, with the extra capability of inpainting the pictures by using a mask.

Strengths
  • Text-to-image generation
SWITCH BETWEEN THEM

One key, both models, one line different.

# pip install aigateway-py openai
# aigateway-py: sub-accounts, evals, replays, jobs, webhook verify.
# openai SDK: chat/embeddings/images/audio — drop-in compat per our SDK's own guidance.
from openai import OpenAI

client = OpenAI(
    base_url="https://api.aigateway.sh/v1",
    api_key="sk-aig-...",
)

# Try Stable-Diffusion-XL-Lightning
client.chat.completions.create(
    model="bytedance/stable-diffusion-xl-lightning",
    messages=[{"role":"user","content":"hello"}],
)

# Try Stable-Diffusion-V1-5-Inpainting — same client, same key
client.chat.completions.create(
    model="runwayml/stable-diffusion-v1-5-inpainting",
    messages=[{"role":"user","content":"hello"}],
)
Get an AIgateway keyAdd a third model

Compare with another

Stable-Diffusion-XL-Lightning vs Stable-Diffusion-XL-Base-1.0
bytedance/stable-diffusion-xl-lightning · stabilityai/stable-diffusion-xl-base-1.0
Stable-Diffusion-XL-Lightning vs Stable-Diffusion-V1-5-Img2img
bytedance/stable-diffusion-xl-lightning · runwayml/stable-diffusion-v1-5-img2img
Stable-Diffusion-V1-5-Inpainting vs Stable-Diffusion-XL-Base-1.0
runwayml/stable-diffusion-v1-5-inpainting · stabilityai/stable-diffusion-xl-base-1.0
Stable-Diffusion-V1-5-Img2img vs Stable-Diffusion-V1-5-Inpainting
runwayml/stable-diffusion-v1-5-img2img · runwayml/stable-diffusion-v1-5-inpainting