stability-ai/sdxl-controlnet-union
Sdxl Controlnet Union 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.
PNG, JPEG, WebP, or GIF · 20 MiB maximum
PNG, JPEG, WebP, or GIF · 20 MiB maximum
PNG, JPEG, WebP, or GIF · 20 MiB maximum
PNG, JPEG, WebP, or GIF · 20 MiB maximum
PNG, JPEG, WebP, or GIF · 20 MiB maximum
PNG, JPEG, WebP, or GIF · 20 MiB maximum
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/sdxl-controlnet-unionInput Schema
24 parameters · 1 required · 23 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 | object[] | Optional | The list of LoRA weights to use. · Default: [] |
format | string | Optional | The format of the generated image. · Options: jpeg, png · Default: "jpeg" jpegpng |
embeddings | object[] | Optional | The list of embeddings to use. · Default: [] |
request_id | string | Optional | An id bound to a request, can be used with response to identify the request itself. · 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 21:916:93:24:35:41:14:53:42:39:16 |
expand_prompt | boolean | Optional | If set to true, the prompt will be expanded with additional prompts. · Default: false |
guidance_scale | number | Optional | The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. · Min: 0 · Max: 20 · Default: 7.5 |
teed_image_url | string | Optional | The URL of the control image. · Default: null |
canny_image_url | string | Optional | The URL of the control image. · Default: null |
depth_image_url | string | Optional | The URL of the control image. · Default: null |
teed_preprocess | boolean | Optional | Whether to preprocess the teed image. · Default: true |
canny_preprocess | boolean | Optional | Whether to preprocess the canny image. · Default: true |
depth_preprocess | boolean | Optional | Whether to preprocess the depth image. · Default: true |
normal_image_url | string | Optional | The URL of the control image. · Default: null |
normal_preprocess | boolean | Optional | Whether to preprocess the normal image. · Default: true |
openpose_image_url | string | Optional | The URL of the control image. · Default: null |
num_inference_steps | integer | Optional | The number of inference steps to perform. · Min: 1 · Max: 70 · Default: 35 |
openpose_preprocess | boolean | Optional | Whether to preprocess the openpose image. · Default: true |
safety_checker_version | string | Optional | The version of the safety checker to use. v1 is the default CompVis safety checker. v2 uses a custom ViT model. · Options: v1, v2 · Default: "v1" v1v2 |
segmentation_image_url | string | Optional | The URL of the control image. · Default: null |
segmentation_preprocess | boolean | Optional | Whether to preprocess the segmentation image. · Default: true |
controlnet_conditioning_scale | number | Optional | The scale of the controlnet conditioning. · Min: 0 · Max: 1 · Default: 0.5 |
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/sdxl-controlnet-union",
"seed": null,
"loras": [],
"format": "jpeg",
"prompt": "Ice fortress, aurora skies, polar wildlife, twilight",
"embeddings": [],
"request_id": "",
"expand_prompt": false,
"guidance_scale": 7.5,
"teed_image_url": "https://fal-cdn.batuhan-941.workers.dev/files/rabbit/MiN_j3St9B8esJleCZKMU.jpeg",
"canny_image_url": "https://fal-cdn.batuhan-941.workers.dev/files/rabbit/MiN_j3St9B8esJleCZKMU.jpeg",
"depth_image_url": "https://fal-cdn.batuhan-941.workers.dev/files/rabbit/MiN_j3St9B8esJleCZKMU.jpeg",
"teed_preprocess": true,
"canny_preprocess": true,
"depth_preprocess": true,
"normal_image_url": "https://fal-cdn.batuhan-941.workers.dev/files/rabbit/MiN_j3St9B8esJleCZKMU.jpeg",
"normal_preprocess": true,
"openpose_image_url": "https://fal-cdn.batuhan-941.workers.dev/files/rabbit/MiN_j3St9B8esJleCZKMU.jpeg",
"num_inference_steps": 35,
"openpose_preprocess": true,
"safety_checker_version": "v1",
"segmentation_image_url": "https://fal-cdn.batuhan-941.workers.dev/files/rabbit/MiN_j3St9B8esJleCZKMU.jpeg",
"segmentation_preprocess": true,
"controlnet_conditioning_scale": 0.5
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
SDXL ControlNet Union
SDXL ControlNet Union occupies a clearly bounded position in a image production pipeline under the route stability-ai/sdxl-controlnet-union. 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 SDXL ControlNet Union should begin with source-readiness checks, ownership of the submitted material, an agreed budget, and a written definition of the final sdxl controlnet union 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/sdxl-controlnet-union.
Highlights
- Distinct output behavior. For SDXL ControlNet Union, for SDXL ControlNet Union, provide any of the declared edge, depth, normal, pose, or segmentation references In SDXL ControlNet Union, this capability is applied through the exact stability-ai/sdxl-controlnet-union 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 SDXL ControlNet Union, for SDXL ControlNet Union, enable or disable preprocessing independently for every conditioning input In SDXL ControlNet Union, this capability is applied through the exact stability-ai/sdxl-controlnet-union 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 SDXL ControlNet Union, for SDXL ControlNet Union, keep the prompt required while adding structural condition images as needed In SDXL ControlNet Union, this capability is applied through the exact stability-ai/sdxl-controlnet-union workflow with format as a relevant request control; the format control exposes the corresponding choice in this route; the format control exposes the corresponding choice in this route.
- Production detail. For SDXL ControlNet Union, for SDXL ControlNet Union, set num_inference_steps between 1 and 70 In SDXL ControlNet Union, this capability is applied through the exact stability-ai/sdxl-controlnet-union 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.
Pricing
| Configuration | Price |
|---|---|
| Per request | $0.00125 |
When to Use
| Scenario | Why this model fits |
|---|---|
| Choose SDXL ControlNet Union | Use it when the required deliverable is specifically the image result documented for stability-ai/sdxl-controlnet-union. |
| Match the source material | Select this route when your inputs naturally map to seed, loras, format, prompt. |
| Use its distinguishing capability | For SDXL ControlNet Union, provide any of the declared edge, depth, normal, pose, or segmentation references In SDXL ControlNet Union, this capability is applied through the exact stability-ai/sdxl-controlnet-union workflow with seed as a relevant request control; the seed control exposes the corresponding choice in this route |
| Plan repeatable production | For SDXL ControlNet Union, enable or disable preprocessing independently for every conditioning input In SDXL ControlNet Union, this capability is applied through the exact stability-ai/sdxl-controlnet-union 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 SDXL ControlNet Union jobs. |
Prompt Guide
Build the request around the exact stability-ai/sdxl-controlnet-union 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": "Ice fortress, aurora skies, polar wildlife, twilight",
"seed": 0,
"loras": [],
"format": "jpeg"
}
Technical Specs
| Specification | Value |
|---|---|
| Model ID | stability-ai/sdxl-controlnet-union |
| Execution mode | async |
| Required inputs | prompt |
| Request fields | seed (integer, optional); loras (array, optional); format (string, optional, options: jpeg / png); prompt (string, required); embeddings (array, optional); request_id (string, optional); 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); expand_prompt (boolean, optional); guidance_scale (number, optional, min 0, max 20); teed_image_url (string, optional); canny_image_url (string, optional); depth_image_url (string, optional); teed_preprocess (boolean, optional); canny_preprocess (boolean, optional); depth_preprocess (boolean, optional); normal_image_url (string, optional); normal_preprocess (boolean, optional); openpose_image_url (string, optional); num_inference_steps (integer, optional, min 1, max 70); openpose_preprocess (boolean, optional); safety_checker_version (string, optional, options: v1 / v2); segmentation_image_url (string, optional); segmentation_preprocess (boolean, optional); controlnet_conditioning_scale (number, optional, min 0, max 1) |
| Output | url (string); content_type (string) |

