SDXL 1.0 API, SDXL Turbo, 1.0 Lightning API: Pricing, Documentation

by Stability AI

SDXL (Stable Diffusion XL) by Stability AI delivers high-resolution image generation with improved composition and photorealism over previous versions. Through Pixazo's API, developers can access SDXL variants including Lightning and Turbo for different speed and quality tradeoffs. The API supports the widely-adopted SDXL ecosystem, ensuring compatibility with existing workflows and fine-tuned models.

Get API Key
SDXL API

Models Version

WELCOME BONUS

Get 10% Cashback on Your First Payment (up to $500)

Add funds and get 10% cashback on your first payment (up to $500).

Claim Your Cashback →

SDXL Turbo API Documentation

https://gateway.pixazo.ai/sdxlTurbo/v2/getData

SDXL Turbo Get Image - Stable Diffusion XL Turbo V2 API

Request Code

POST https://gateway.pixazo.ai/sdxlTurbo/v2/getData
Content-Type: application/json
Cache-Control: no-cache
Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY

{
  "prompt": "Create a detailed illustration of a sparrow perched on a branch. The bird should be depicted with its distinctive brown and gray feathers, a small beak, and bright, curious eyes. Surround the sparrow with a vibrant background of spring leaves and soft sunlight filtering through the trees, capturing the essence of a tranquil morning in nature.",
  "height": 768,
  "width": 768,
  "num_inference_steps": 1,
  "guidance_scale": 0,
  "seed": 42
}
import requests

url = "https://gateway.pixazo.ai/sdxlTurbo/v2/getData"
headers = {
    "Content-Type": "application/json",
    "Cache-Control": "no-cache",
    "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
}
data = {
    "prompt": "Create a detailed illustration of a sparrow perched on a branch. The bird should be depicted with its distinctive brown and gray feathers, a small beak, and bright, curious eyes. Surround the sparrow with a vibrant background of spring leaves and soft sunlight filtering through the trees, capturing the essence of a tranquil morning in nature.",
    "height": 768,
    "width": 768,
    "num_inference_steps": 1,
    "guidance_scale": 0,
    "seed": 42
}

response = requests.post(url, json=data, headers=headers)
print(response.json())
const url = "https://gateway.pixazo.ai/sdxlTurbo/v2/getData";
const headers = {
  "Content-Type": "application/json",
  "Cache-Control": "no-cache",
  "Ocp-Apim-Subscription-Key": "YOUR_SUBSCRIPTION_KEY"
};
const data = {
  "prompt": "Create a detailed illustration of a sparrow perched on a branch. The bird should be depicted with its distinctive brown and gray feathers, a small beak, and bright, curious eyes. Surround the sparrow with a vibrant background of spring leaves and soft sunlight filtering through the trees, capturing the essence of a tranquil morning in nature.",
  "height": 768,
  "width": 768,
  "num_inference_steps": 1,
  "guidance_scale": 0,
  "seed": 42
};

fetch(url, {
  method: "POST",
  headers: headers,
  body: JSON.stringify(data)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
curl -v -X POST "https://gateway.pixazo.ai/sdxlTurbo/v2/getData" \
  -H "Content-Type: application/json" \
  -H "Cache-Control: no-cache" \
  -H "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY" \
  --data-raw '{
    "prompt": "Create a detailed illustration of a sparrow perched on a branch. The bird should be depicted with its distinctive brown and gray feathers, a small beak, and bright, curious eyes. Surround the sparrow with a vibrant background of spring leaves and soft sunlight filtering through the trees, capturing the essence of a tranquil morning in nature.",
    "height": 768,
    "width": 768,
    "num_inference_steps": 1,
    "guidance_scale": 0,
    "seed": 42
  }'

Output

{
  "output": "https://d3re0c8wemxg38.cloudfront.net/output_mme/8891449d-7bbd-4150-9a56-86ff51378640.jpeg",
  "status": "complete",
  "message": "In progress"
}

Request Parameters - SDXL Turbo Get Image

ParameterRequiredTypeDefaultAllowed values / range
promptYesrequiredString——
The main instruction for the image generation — a text description of the image you want.
heightNoInteger512512 – 1024
The height of the output image, in pixels. SDXL Turbo natively generates 512×512 and gives its best results at that size; 768 or 1024 also work but quality may degrade.
widthNoInteger512512 – 1024
The width of the output image, in pixels. SDXL Turbo natively generates 512×512 and gives its best results at that size; 768 or 1024 also work but quality may degrade.
num_inference_stepsNoInteger11 – 4
Number of refinement (denoising) steps. SDXL Turbo is a distilled model: a single step is enough for a high-quality image, and 2–4 steps refine it slightly. Higher values only add latency without improving quality.
guidance_scaleNoFloat00
Controls how closely the output follows your prompt (classifier-free guidance). SDXL Turbo was trained without guidance, so this must be 0 — non-zero values degrade the image. Use the prompt itself to steer the result.
seedNoIntegerRandomAny integer
Random seed that controls the generation's randomness. Reuse the same seed with identical settings to reproduce the same result; leave it empty for a different output each time.

Example Request

{
  "prompt": "Create a detailed illustration of a sparrow perched on a branch. The bird should be depicted with its distinctive brown and gray feathers, a small beak, and bright, curious eyes. Surround the sparrow with a vibrant background of spring leaves and soft sunlight filtering through the trees, capturing the essence of a tranquil morning in nature.",
  "height": 768,
  "width": 768,
  "num_inference_steps": 1,
  "guidance_scale": 0,
  "seed": 42
}

Response

{
  "output": "https://d3re0c8wemxg38.cloudfront.net/output_mme/8891449d-7bbd-4150-9a56-86ff51378640.jpeg",
  "status": "complete",
  "message": "In progress"
}

Request Headers

Header Value
Content-Type application/json
Cache-Control no-cache
Ocp-Apim-Subscription-Key YOUR_SUBSCRIPTION_KEY

Response Handling

Common status codes for SDXL Turbo Get Image.

Code Meaning
200 Success
Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
Too Many Requests
500 Internal Server Error

SDXL Turbo API Pricing

Your request will cost $0.003 per generation.
2. SDXL Base 1.0

SDXL Base 1.0 API Documentation

SDXL Base 1.0 was retired on 24 November 2026, after its model provider permanently shut the model down. Requests to this API now return 410 Model retired, and no credits are deducted.

Recommended alternative: FLUX.2 Klein 4B, a fast, low-cost text-to-image model from Black Forest Labs, with output sizes from 512×512 up to 2048×2048.

Switching only needs your request sent to the FLUX.2 Klein 4B endpoint with the same Pixazo API key. See the FLUX.2 Klein 4B documentation for request examples.

3. SDXL Lightning

SDXL Lightning API Documentation

SDXL Lightning was retired on 24 November 2026, after its model provider permanently shut the model down. Requests to this API now return 410 Model retired, and no credits are deducted.

Recommended alternative: FLUX.2 Klein 4B, a fast, low-cost text-to-image model from Black Forest Labs, with output sizes from 512×512 up to 2048×2048.

Switching only needs your request sent to the FLUX.2 Klein 4B endpoint with the same Pixazo API key. See the FLUX.2 Klein 4B documentation for request examples.