LiteLLMModels

Stable Diffusion XL API Pricing

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

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

Stable Diffusion XL pricing by provider

2 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 Bedrock1024×1024, 50 steps1024-x-1024/50-steps/stability.stable-diffusion-xl-v1$0.0477
Amazon Bedrock1024×1024, max steps1024-x-1024/max-steps/stability.stable-diffusion-xl-v1$0.0877

What Stable Diffusion XL costs in practice

Generating 1,000 images

Amazon Bedrock$40.00

Use Stable Diffusion XL with LiteLLM

Call Stable Diffusion XL 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="1024-x-1024/50-steps/stability.stable-diffusion-xl-v1",
    prompt="A cute baby sea otter",
)
Proxy config.yaml
model_list:
  - model_name: stable-diffusion-xl
    litellm_params:
      model: 1024-x-1024/50-steps/stability.stable-diffusion-xl-v1
      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",
    "prompt": "A cute baby sea otter",
    "n": 1,
    "size": "1024x1024"
  }'

Stable Diffusion XL FAQ

How much does Stable Diffusion XL cost?

Stable Diffusion XL costs $0.04 per image on Amazon Bedrock.

What is the context window of Stable Diffusion XL?

Stable Diffusion XL has a 77-token context window.

Which providers offer Stable Diffusion XL?

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

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

Use the LiteLLM Python SDK with model="1024-x-1024/50-steps/stability.stable-diffusion-xl-v1", 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?

Stable Diffusion XL 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.