# 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.

- Page: https://models.litellm.ai/models/stable-diffusion-xl-v0
- Lab: Stability AI
- LiteLLM model name: `512-x-512/50-steps/stability.stable-diffusion-xl-v0`
- Context window: 77 tokens
- Added to LiteLLM: February 2024
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| Amazon Bedrock (512×512, 50 steps) | `512-x-512/50-steps/stability.stable-diffusion-xl-v0` | – | – | – | $0.018 | – | 77 |
| Amazon Bedrock (512×512, max steps) | `512-x-512/max-steps/stability.stable-diffusion-xl-v0` | – | – | – | $0.036 | – | 77 |
| Amazon Bedrock (max×max, 50 steps) | `max-x-max/50-steps/stability.stable-diffusion-xl-v0` | – | – | – | $0.036 | – | 77 |
| Amazon Bedrock (max×max, max steps) | `max-x-max/max-steps/stability.stable-diffusion-xl-v0` | – | – | – | $0.072 | – | 77 |

## Cost examples

Generating 1,000 images:

- Amazon Bedrock: $18.00

## Use it with LiteLLM

```python
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",
)
```

## 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.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
