---
last_updated: 2026-12-05
source_url: https://opper.ai/stability-ai/sdxl-turbo
title: "SDXL Turbo by Stability AI"
description: "SDXL Turbo by Stability AI: distilled, real-time text-to-image generation in 1-4 steps using Adversarial Diffusion Distillation."
---

# SDXL Turbo

By [Stability AI](https://opper.ai/stability-ai).

Released 28 Nov 2023 · [Announcement](https://stability.ai/news-updates/stability-ai-sdxl-turbo) · [All Stability AI releases](https://opper.ai/model-releases/stability-ai)

SDXL Turbo is a distilled version of SDXL 1.0 optimized for real-time image synthesis. Built with Adversarial Diffusion Distillation (ADD), it generates 512x512 images from text prompts in just 1 to 4 sampling steps, beating a 50-step configuration of standard SDXL with only 4 steps.

The model runs without guidance scaling or negative prompts and functions as both a text-to-image and image-to-image model, making it suited to real-time applications, artistic workflows, and interactive generative use cases. Its adversarial training combines single-step efficiency with diffusion-based quality while avoiding the artifacts often seen in other distillation methods.

SDXL Turbo works best for general imagery and has known limitations with legible text rendering and the generation of faces and people. It is open-weight and available for both non-commercial and commercial use through Stability AI's licensing program.

## Available routes

SDXL Turbo runs on 1 route through the Opper gateway. Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=deepinfra%2Fstabilityai%2Fsdxl-turbo.

| Provider | Model id | Region | Zero data retention | Training | Price |
| --- | --- | --- | --- | --- | --- |
| [DeepInfra](https://opper.ai/provider/deepinfra) | `deepinfra/stabilityai/sdxl-turbo` | US (United States) | Yes | No | $0.0002 / megapixel |

## Key info

- Model id: `deepinfra/stabilityai/sdxl-turbo`
- Input: Text, Image
- Output: Image
- Features: none listed
- Pricing: $0.0002 / megapixel
- Billing: Per megapixel
- Released: 28 Nov 2023
- US residency available
- Zero data retention on pay-as-you-go
- No training by default

## Pricing

Usage-based pricing, billed per megapixel, not by token.

| Variant | Price |
| --- | --- |
| Standard | $0.0002 / megapixel |

## Data handling per route

Each route hosting SDXL Turbo has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

### DeepInfra — United States

Zero data retention: nothing is logged, held for abuse monitoring or used for training. No training on customer data. US; SCCs.

- Zero data retention: Yes. Nothing is logged, held for abuse monitoring or used for training.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: No classifier
- Transfer mechanism: SCCs

Verified by Opper on 2026-10-19.

## Get started

Call SDXL Turbo through the Opper gateway with one API key. Image models run on Opper's images endpoint: POST /v3/images returns the image in the response, as base64 by default.

See the [Opper images guide](https://docs.opper.ai/build/multimodal/images) and the [Opper multimodal skill](https://skills.opper.ai/opper-multimodal/SKILL.md).

SDXL Turbo is a premium model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

### Set it up with your agent

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Use curl to download, read and follow: https://skills.opper.ai/opper-multimodal/SKILL.md Generate an image with SDXL Turbo
```

### Or call it directly

cURL:

```bash
curl -s https://api.opper.ai/v3/images \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepinfra/stabilityai/sdxl-turbo",
    "prompt": "A watercolor lighthouse on a cliff at sunrise",
    "size": "1024x1024"
  }' \
  | jq -r '.data[0].b64_json' | base64 --decode > image.png
```

JavaScript:

```javascript
import { writeFile } from "node:fs/promises";

const res = await fetch("https://api.opper.ai/v3/images", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.OPPER_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "deepinfra/stabilityai/sdxl-turbo",
    "prompt": "A watercolor lighthouse on a cliff at sunrise",
    "size": "1024x1024"
  }),
});
const { data } = await res.json();
// Each image comes back as base64 (b64_json) unless you ask for a url
await writeFile("image.png", Buffer.from(data[0].b64_json, "base64"));
```

## Use SDXL Turbo in your apps

Pick your tool to see how to run it on SDXL Turbo through Opper.

- [Claude Code](https://opper.ai/apps/claude-code/sdxl-turbo)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/sdxl-turbo)
- [Codex](https://opper.ai/apps/codex/sdxl-turbo)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/sdxl-turbo)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/sdxl-turbo)
- [Aider](https://opper.ai/apps/aider/sdxl-turbo)
- [Goose](https://opper.ai/apps/goose/sdxl-turbo)
- [Droid](https://opper.ai/apps/droid/sdxl-turbo)
- [OpenCode](https://opper.ai/apps/opencode/sdxl-turbo)
- [Pi](https://opper.ai/apps/pi/sdxl-turbo)
- [OpenClaw](https://opper.ai/apps/openclaw/sdxl-turbo)
- [Hermes](https://opper.ai/apps/hermes/sdxl-turbo)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/sdxl-turbo)
- [OmniRoute](https://opper.ai/apps/omniroute/sdxl-turbo)
- [Cursor](https://opper.ai/apps/cursor/sdxl-turbo)
- [Cline](https://opper.ai/apps/cline/sdxl-turbo)
- [Continue](https://opper.ai/apps/continue/sdxl-turbo)
- [Kilo Code](https://opper.ai/apps/kilo-code/sdxl-turbo)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/sdxl-turbo)
- [Zed](https://opper.ai/apps/zed/sdxl-turbo)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/sdxl-turbo)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/sdxl-turbo)
- [n8n](https://opper.ai/apps/n8n/sdxl-turbo)
- [LibreChat](https://opper.ai/apps/librechat/sdxl-turbo)
- [Open WebUI](https://opper.ai/apps/open-webui/sdxl-turbo)
- [See all apps](https://opper.ai/apps)

## Other models from Stability AI

- [Stable Audio 2.5](https://opper.ai/stability-ai/stable-audio-2-5)
