compare/Stable-Diffusion-V1-5-Img2imgvsStable-Diffusion-XL-Base-1.0

Stable-Diffusion-V1-5-Img2img vs Stable-Diffusion-XL-Base-1.0

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-V1-5-Img2img
runwayml/stable-diffusion-v1-5-img2img
Stable-Diffusion-XL-Base-1.0
stabilityai/stable-diffusion-xl-base-1.0
ProviderRunwayStability AI
FamilyStable DiffusionStable Diffusion
Modalityimageimage
Context window
Max output
Released2024-02-272023-11-10
Input price$0.0000 /img$0.0000 /img
Output price
Cache read
Tools
Streaming
Vision
JSON mode
Reasoning
Prompt caching
Stable-Diffusion-V1-5-Img2img
runwayml/stable-diffusion-v1-5-img2img
Full spec →

Stable Diffusion is a latent text-to-image diffusion model capable of generating photo-realistic images. Img2img generate a new image from an input image with Stable Diffusion.

Strengths
  • Text-to-image generation
Stable-Diffusion-XL-Base-1.0
stabilityai/stable-diffusion-xl-base-1.0
Full spec →

Diffusion-based text-to-image generative model by Stability AI. Generates and modify images based on text prompts.

Strengths
  • Text-to-image generation
  • Creative control
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-V1-5-Img2img
client.chat.completions.create(
    model="runwayml/stable-diffusion-v1-5-img2img",
    messages=[{"role":"user","content":"hello"}],
)

# Try Stable-Diffusion-XL-Base-1.0 — same client, same key
client.chat.completions.create(
    model="stabilityai/stable-diffusion-xl-base-1.0",
    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