Browse ModelsWavespeed AIFlux Controlnet Union Pro 2.0

Flux Controlnet Union Pro 2.0

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

OutputPrice
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

ParameterTypeRequiredDefaultRangeDescription
promptstringYes-The positive prompt for the generation.
control_imagestringYes--The URL of the control image for ControlNet guidance.
sizestringNo1024*1024256 ~ 1536 per dimensionThe size of the generated media in pixels (width*height).
num_inference_stepsintegerNo281 ~ 50The number of inference steps to perform.
guidance_scalenumberNo3.50.00 ~ 20.00The guidance scale to use for the generation.
controlnet_conditioning_scalenumberNo0.70.00 ~ 2.00The conditioning scale for ControlNet. Higher values make the output follow the control image more closely.
control_guidance_startnumberNo-0.00 ~ 1.00The fraction of total steps at which ControlNet guidance start.
control_guidance_endnumberNo0.80.00 ~ 1.00The fraction of total steps at which ControlNet guidance ends.
lorasarrayNomax 3 itemsList of LoRAs to apply (max 3).
loras[].pathstringYes-Path to the LoRA model
loras[].scalefloatYes-0.0 ~ 4.0Scale of the LoRA model
seedintegerNo--1 ~ 2147483647The random seed to use for the generation.
num_imagesintegerNo11 ~ 4The number of images to generate.
output_formatstringNojpegjpeg, png, webpThe format of the output image.
enable_base64_outputbooleanNofalse-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_modebooleanNofalse-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

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayArray of URLs to the generated content (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.has_nsfw_contentsarrayArray of boolean values indicating NSFW detection for each output
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Request Parameters

ParameterTypeRequiredDefaultDescription
idstringYes-Task ID

Result Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
dataobjectThe prediction data object containing all details
data.idstringUnique identifier for the prediction, the ID of the prediction to get
data.modelstringModel ID used for the prediction
data.outputsstringArray of URLs to the generated content (empty when status is not completed).
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds
© 2025 WaveSpeedAI. All rights reserved.