LiteLLMLiteLLM/ MODELS

Stable Diffusion XL API Pricing

By Stability AI · 1 provider1024-x-1024/50-steps/stability.stable-diffusion-xl-v1
Price
$0.04 per image
Context
77 tokens

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

Prices updated Checked

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.

Stable Diffusion XL prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
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 $LITELLM_API_KEY" \
  -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. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change.

LiteLLM docs: Amazon Bedrock.

Provider pages: Amazon Bedrock.