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.

Models Version
Get 10% Cashback on Your First Payment (up to $500)
Add funds and get 10% cashback on your first payment (up to $500).
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
| Parameter | Required | Type | Default | Allowed values / range |
|---|---|---|---|---|
prompt | Yesrequired | String | — | — |
| The main instruction for the image generation — a text description of the image you want. | ||||
height | No | Integer | 512 | 512 – 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. | ||||
width | No | Integer | 512 | 512 – 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_steps | No | Integer | 1 | 1 – 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_scale | No | Float | 0 | 0 |
| 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. | ||||
seed | No | Integer | Random | Any 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 |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
SDXL Turbo API Pricing
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.
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.