Flux Controlnet Union Pro 2.0
Playground
Try it on WavespeedAI!Flux ControlNet Union Pro 2.0 enables simultaneous Canny, Depth, Soft Edge, Pose, and Grayscale conditioning for precise image control. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Features
FLUX ControlNet Union Pro 2.0 — wavespeed-ai/flux-controlnet-union-pro-2.0
FLUX ControlNet Union Pro 2.0 is a ControlNet-guided image generation model that lets you lock in structure using a control image while still following your text prompt for style and details. Upload a control_image (e.g., pose/shape/edge-like guidance), describe what you want to create, and the model generates images that respect the control geometry—ideal for pose fidelity, layout consistency, and repeatable compositions. It also supports optional LoRAs (up to 3) to further steer style.
Key capabilities
- ControlNet-guided generation using a required control_image
- Strong structure fidelity: keeps pose/layout consistent across generations
- Prompt-driven styling: change appearance, materials, lighting, and mood while keeping geometry
- Fine control over when/how much control is applied via conditioning and guidance range
- LoRA support (up to 3) for consistent styles or specialized looks
Use cases
- Pose-locked character generation from a silhouette/pose control image
- Recreating the same composition in multiple art styles for A/B creative testing
- Storyboarding with consistent framing and character blocking
- Product mockups with fixed layout and controllable styling
- Batch generation with a “house style” using LoRAs while keeping geometry stable
Pricing
| Output | Price |
|---|---|
| Per image | $0.03 |
Inputs
- prompt (required): what to generate (subject, scene, style)
- control_image (required): the structural guide image
Parameters
Core:
- prompt: text instruction for content and style
- control_image: structural guidance image
- width / height: output size
- num_inference_steps: sampling steps (higher can improve detail but increases latency)
- guidance_scale: prompt adherence strength
- seed: fixed value for reproducibility; change for variation
- num_images: number of outputs per run
- output_format: jpeg or png
- enable_base64_output: return BASE64 instead of URL (API only)
- enable_sync_mode: wait for generation and return results directly (API only)
ControlNet:
- controlnet_conditioning_scale: strength of control_image guidance (higher = stricter structure)
- control_guidance_start: when control starts applying (0–1 timeline)
- control_guidance_end: when control stops applying (0–1 timeline)
LoRA (up to 3 items):
-
loras: list of LoRA entries (max 3)
- path: owner/model-name or a direct .safetensors URL
- scale: LoRA strength (start moderate and adjust)
Prompting guide
A reliable pattern is “structure + subject + style”:
Template: Using the control image for pose/layout, generate [subject] in [scene]. Style: [style cues]. Lighting: [lighting cues]. Keep composition consistent with the control image.
Example prompts
- Using the control image for pose, generate a robot giving a speech at a podium, cinematic lighting, shallow depth of field, high detail, realistic materials.
- Using the control image for layout, generate a fantasy wizard on a stage, glowing runes, volumetric fog, dramatic rim light, illustrated style.
- Using the control image for silhouette, generate a sleek product hero shot with glossy reflections and a clean studio background.
Reference
Authentication
For authentication details, please refer to the Authentication Guide.
API Endpoints
Submit Task & Query Result
# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/flux-controlnet-union-pro-2.0" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
"size": "1024*1024",
"num_inference_steps": 28,
"guidance_scale": 3.5,
"controlnet_conditioning_scale": 0.7,
"control_guidance_start": 0,
"control_guidance_end": 0.8,
"loras": [],
"seed": 0,
"num_images": 1,
"output_format": "jpeg",
"enable_base64_output": false,
"enable_sync_mode": false
}'
# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"
Parameters
Task Submission Parameters
Request Parameters
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| prompt | string | Yes | - | The positive prompt for the generation. | |
| control_image | string | Yes | - | - | The URL of the control image for ControlNet guidance. |
| size | string | No | 1024*1024 | 256 ~ 1536 per dimension | The size of the generated media in pixels (width*height). |
| num_inference_steps | integer | No | 28 | 1 ~ 50 | The number of inference steps to perform. |
| guidance_scale | number | No | 3.5 | 0.00 ~ 20.00 | The guidance scale to use for the generation. |
| controlnet_conditioning_scale | number | No | 0.7 | 0.00 ~ 2.00 | The conditioning scale for ControlNet. Higher values make the output follow the control image more closely. |
| control_guidance_start | number | No | - | 0.00 ~ 1.00 | The fraction of total steps at which ControlNet guidance start. |
| control_guidance_end | number | No | 0.8 | 0.00 ~ 1.00 | The fraction of total steps at which ControlNet guidance ends. |
| loras | array | No | max 3 items | List of LoRAs to apply (max 3). | |
| loras[].path | string | Yes | - | Path to the LoRA model | |
| loras[].scale | float | Yes | - | 0.0 ~ 4.0 | Scale of the LoRA model |
| seed | integer | No | - | -1 ~ 2147483647 | The random seed to use for the generation. |
| num_images | integer | No | 1 | 1 ~ 4 | The number of images to generate. |
| output_format | string | No | jpeg | jpeg, png, webp | The format of the output image. |
| enable_base64_output | boolean | No | false | - | If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API. |
| enable_sync_mode | boolean | No | false | - | If set to true, the function will wait for the result to be generated and uploaded before returning the response. It allows you to get the result directly in the response. This property is only available through the API. |
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Array of URLs to the generated content (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.has_nsfw_contents | array | Array of boolean values indicating NSFW detection for each output |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |
Result Request Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | - | Task ID |
Result Response Parameters
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data | object | The prediction data object containing all details |
| data.id | string | Unique identifier for the prediction, the ID of the prediction to get |
| data.model | string | Model ID used for the prediction |
| data.outputs | string | Array of URLs to the generated content (empty when status is not completed). |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |