More modelsWavespeed aiFlux controlnet union pro 2.0

Generate image with wavespeed-ai/flux-controlnet-union-pro-2.0

Generates an image using the wavespeed-ai/flux-controlnet-union-pro-2.0 model.

POST
/api/v1/model/generateImage
AuthorizationBearer <token>

API key is required to authorize requests. Obtain a key from your AtlasCloud dashboard.

In: header

modelstring

model name

seed?integer

The random seed to use for the generation.

Default0
size?string

The size of the generated media in pixels (width*height).

loras?array<LoraWeight>

List of LoRAs to apply (max 3).

Default[]
Itemsitems <= 3
promptstring

The prompt to generate an image from.

num_images?integer

The number of images to generate.

Default1
Range1 <= value <= 4
control_image?string

The URL of the control image for ControlNet guidance.

output_format?string

The format of the output image.

Value in"jpeg" | "png" | "webp"
guidance_scale?number

The guidance scale to use for the generation.

Default3.5
Range0 <= value <= 20
enable_sync_mode?boolean

If set to true, the function will wait for the image to be generated and uploaded before returning the response. It allows you to get the image directly in the response. This property is only available through the API.

Defaultfalse
num_inference_steps?integer

The number of inference steps to perform.

Default28
Range1 <= value <= 50
control_guidance_end?number

The fraction of total steps at which ControlNet guidance ends.

Default0.8
Range0 <= value <= 1
enable_base64_output?boolean

If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.

Defaultfalse
enable_safety_checker?boolean

If set to true, the safety checker will be enabled.

Defaulttrue
control_guidance_start?number

The fraction of total steps at which ControlNet guidance start.

Default0
Range0 <= value <= 1
controlnet_conditioning_scale?number

The conditioning scale for ControlNet. Higher values make the output follow the control image more closely.

Default0.7
Range0 <= value <= 2

Response Body

curl -X POST "https://api.atlascloud.ai/api/v1/model/generateImage" \  -H "Content-Type: application/json" \  -d '{    "model": "wavespeed-ai/flux-controlnet-union-pro-2.0",    "prompt": "A robot is giving a speech."  }'
{
  "id": "string",
  "urls": {},
  "model": "string",
  "status": "string",
  "outputs": [
    "string"
  ],
  "created_at": "2019-08-24T14:15:22Z",
  "has_nsfw_contents": [
    true
  ]
}