LiteLLMModels

Stable Diffusion XL V0 API Pricing

As of October 10, 2026, Stable Diffusion XL V0 costs $0.018 per image on Amazon Bedrock. It has a 77-token context window.

By Stability AIModel ID 512-x-512/50-steps/stability.stable-diffusion-xl-v0Prices updated Checked
Per image
$0.018
Context window
77 tokens
Providers
1
Added to LiteLLM
February 2024

Stable Diffusion XL V0 pricing by provider

4 listings across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

ProviderModel name in LiteLLMPer imageContext
Amazon Bedrock512×512, 50 steps512-x-512/50-steps/stability.stable-diffusion-xl-v0$0.01877
Amazon Bedrock512×512, max steps512-x-512/max-steps/stability.stable-diffusion-xl-v0$0.03677
Amazon Bedrockmax×max, 50 stepsmax-x-max/50-steps/stability.stable-diffusion-xl-v0$0.03677
Amazon Bedrockmax×max, max stepsmax-x-max/max-steps/stability.stable-diffusion-xl-v0$0.07277

What Stable Diffusion XL V0 costs in practice

Generating 1,000 images

Amazon Bedrock$18.00

Use Stable Diffusion XL V0 with LiteLLM

Call Stable Diffusion XL V0 through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/images/generations. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import image_generation

response = image_generation(
    model="512-x-512/50-steps/stability.stable-diffusion-xl-v0",
    prompt="A cute baby sea otter",
)
Proxy config.yaml
model_list:
  - model_name: stable-diffusion-xl-v0
    litellm_params:
      model: 512-x-512/50-steps/stability.stable-diffusion-xl-v0
      aws_region_name: os.environ/AWS_REGION_NAME
Call the proxy
curl http://0.0.0.0:4000/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-1234" \
  -d '{
    "model": "stable-diffusion-xl-v0",
    "prompt": "A cute baby sea otter",
    "n": 1,
    "size": "1024x1024"
  }'

Stable Diffusion XL V0 FAQ

How much does Stable Diffusion XL V0 cost?

Stable Diffusion XL V0 costs $0.018 per image on Amazon Bedrock.

What is the context window of Stable Diffusion XL V0?

Stable Diffusion XL V0 has a 77-token context window.

Which providers offer Stable Diffusion XL V0?

Stable Diffusion XL V0 is available from Amazon Bedrock through LiteLLM, using the model name 512-x-512/50-steps/stability.stable-diffusion-xl-v0.

How do I call Stable Diffusion XL V0 with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="512-x-512/50-steps/stability.stable-diffusion-xl-v0", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/images/generations from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

When did LiteLLM add Stable Diffusion XL V0?

Stable Diffusion XL V0 was added to LiteLLM's model price file in February 2024.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request.

LiteLLM docs: Amazon Bedrock.

Provider pages: Amazon Bedrock.