stability-ai/fast-sdxl
Fast Sdxl is Stability AI's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.
Example output — click Run to generate your own
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
https://api.sandbase.ai/v1/runstability-ai/fast-sdxlInput Schema
6 parameters · 1 required · 5 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Required | The prompt to use for generating the image. Be as descriptive as possible for best results. |
seed | integer | Optional | The same seed and the same prompt given to the same version of Stable Diffusion will output the same image every time. · Default: null |
loras | array | Optional | Default: [] |
aspect_ratio | string | Optional | The aspect ratio of the generated image. · Options: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16 · Default: "16:9" 21:916:93:24:35:41:14:53:42:39:16 |
guidance_scale | number | Optional | Min: 0 · Max: 20 · Default: 7.5 |
num_inference_steps | integer | Optional | Min: 1 · Max: 50 · Default: 25 |
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "stability-ai/fast-sdxl",
"seed": null,
"loras": [],
"prompt": "photo of a rhino dressed suit and tie sitting at a table in a bar with a bar stools, award winning photography, Elke vogelsang",
"aspect_ratio": "16:9",
"guidance_scale": 7.5,
"num_inference_steps": 25
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
Stable Diffusion XL
Stable Diffusion XL occupies a clearly bounded position in a image production pipeline under the route stability-ai/fast-sdxl. It is best evaluated as a named workflow endpoint rather than as a generic substitute for neighboring versions: planners can assign the route to a specific brief, record the chosen revision, and keep approval history tied to one predictable integration surface from intake through delivery.
A practical rollout of Stable Diffusion XL should begin with source-readiness checks, ownership of the submitted material, an agreed budget, and a written definition of the final fast sdxl deliverable. Before automation is enabled, the acceptance pass should verify that the returned asset opens correctly, fits the intended downstream toolchain, satisfies the project’s review criteria, and can be reproduced from the stored request and route identity stability-ai/fast-sdxl.
Highlights
- Distinct output behavior. For Stable Diffusion XL, for Stable Diffusion XL, create without a starting image; the written prompt is the only required field In Stable Diffusion XL, this capability is applied through the exact stability-ai/fast-sdxl workflow with seed as a relevant request control; the seed control exposes the corresponding choice in this route; the seed control exposes the corresponding choice in this route.
- Creative control. For Stable Diffusion XL, for Stable Diffusion XL, pass an array of LoRA weights when the generation needs those adapters In Stable Diffusion XL, this capability is applied through the exact stability-ai/fast-sdxl workflow with loras as a relevant request control; the loras control exposes the corresponding choice in this route; the loras control exposes the corresponding choice in this route.
- Workflow fit. For Stable Diffusion XL, for Stable Diffusion XL, select among ten landscape, square, and portrait ratios In Stable Diffusion XL, this capability is applied through the exact stability-ai/fast-sdxl workflow with prompt as a relevant request control; the prompt control exposes the corresponding choice in this route; the prompt control exposes the corresponding choice in this route.
- Production detail. For Stable Diffusion XL, for Stable Diffusion XL, set both guidance and the number of inference steps within their declared bounds In Stable Diffusion XL, this capability is applied through the exact stability-ai/fast-sdxl workflow with aspect ratio as a relevant request control; the aspect ratio control exposes the corresponding choice in this route; the aspect ratio control exposes the corresponding choice in this route.
Pricing
| Configuration | Price |
|---|---|
| Per request | $0.00125 |
When to Use
| Scenario | Why this model fits |
|---|---|
| Choose Stable Diffusion XL | Use it when the required deliverable is specifically the image result documented for stability-ai/fast-sdxl. |
| Match the source material | Select this route when your inputs naturally map to seed, loras, prompt, aspect_ratio. |
| Use its distinguishing capability | For Stable Diffusion XL, create without a starting image; the written prompt is the only required field In Stable Diffusion XL, this capability is applied through the exact stability-ai/fast-sdxl workflow with seed as a relevant request control; the seed control exposes the corresponding choice in this route |
| Plan repeatable production | For Stable Diffusion XL, pass an array of LoRA weights when the generation needs those adapters In Stable Diffusion XL, this capability is applied through the exact stability-ai/fast-sdxl workflow with loras as a relevant request control; the loras control exposes the corresponding choice in this route |
| Confirm cost and delivery | Use the pricing combinations below and the output contract above when budgeting or automating Stable Diffusion XL jobs. |
Prompt Guide
Build the request around the exact stability-ai/fast-sdxl schema. Start with required fields, then add only the controls needed for the intended output; keep URLs reachable and enum values exactly as shown in Technical Specs.
{
"prompt": "photo of a rhino dressed suit and tie sitting at a table in a bar with a bar stools, award winning photography, Elke vogelsang",
"seed": 0,
"loras": [],
"aspect_ratio": "16:9"
}
Technical Specs
| Specification | Value |
|---|---|
| Model ID | stability-ai/fast-sdxl |
| Execution mode | async |
| Required inputs | prompt |
| Request fields | seed (integer, optional); loras (array, optional); prompt (string, required); aspect_ratio (string, optional, options: 21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16); guidance_scale (number, optional, min 0, max 20); num_inference_steps (integer, optional, min 1, max 50) |
| Output | url (string); content_type (string) |

