# Stable Diffusion XL Base 1.0 API Pricing

As of October 10, 2026, Stable Diffusion XL Base 1.0 costs $0 per megapixel on Nscale.

- Page: https://models.litellm.ai/models/stable-diffusion-xl-base-1.0
- Lab: Stability AI
- LiteLLM model name: `nscale/stabilityai/stable-diffusion-xl-base-1.0`
- Added to LiteLLM: May 2025
- 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 |
|---|---|---|---|---|---|---|---|
| Nscale | `nscale/stabilityai/stable-diffusion-xl-base-1.0` | – | – | – | – | – | – |

## Use it with LiteLLM

```python
from litellm import image_generation

response = image_generation(
    model="nscale/stabilityai/stable-diffusion-xl-base-1.0",
    prompt="A cute baby sea otter",
)
```

## FAQ

### How much does Stable Diffusion XL Base 1.0 cost?

Stable Diffusion XL Base 1.0 costs $0 per megapixel on Nscale.

### Which providers offer Stable Diffusion XL Base 1.0?

Stable Diffusion XL Base 1.0 is available from Nscale through LiteLLM, using the model name nscale/stabilityai/stable-diffusion-xl-base-1.0.

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

Use the LiteLLM Python SDK with model="nscale/stabilityai/stable-diffusion-xl-base-1.0", 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 Base 1.0?

Stable Diffusion XL Base 1.0 was added to LiteLLM's model price file in May 2025.

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