Iclight V2

120.00积分/百万像素
ae_iclight_v2

根据文本描述的新光照条件,为现有图像重新打光。

图像
120.00积分/百万像素

价格说明

每百万像素(MP)收取120.00积分。按实际成功返回的图片计费。按实际像素比例计费。1MP按1,000,000像素计。

120.00积分/百万像素

工具参数

未传入的可选参数将使用平台默认值。

参数类型必填说明默认值
request_bodyobject是暂无参数说明。—
request_body.cfgnumber否The real classifier-free-guidance scale for the generation.1
request_body.seedinteger否 The same seed and the same prompt given to the same version of the model will output the same image every time. —
request_body.promptstring是The prompt to generate an image from.—
request_body.image_urlstring是URL of image to be used for relighting—
request_body.sync_modeboolean否 If set to true, the function will wait for the image to be generated and uploaded before returning the response. This will increase the latency of the function but it allows you to get the image directly in the response without going through the CDN. false
request_body.image_sizeobject | string否The size of the generated image.—
request_body.image_size.widthinteger否The width of the generated image.512
request_body.image_size.heightinteger否The height of the generated image.512
request_body.num_imagesinteger否The number of images to generate.1
request_body.hr_downscalenumber否暂无参数说明。0.5
request_body.enable_hr_fixboolean否Use HR fixfalse
request_body.output_formatenum (jpeg | png)否The format of the generated image.jpeg
request_body.guidance_scalenumber否 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. 5
request_body.initial_latentenum (None | Left | Right | Top | Bottom)否 Provide lighting conditions for the model None
request_body.lowres_denoisenumber否Strength for low-resolution pass.0.98
request_body.mask_image_urlstring否URL of mask to be used for ic-light conditioning image—
request_body.highres_denoisenumber否Strength for high-resolution pass. Only used if enable_hr_fix is True.0.95
request_body.negative_promptstring否Negative Prompt for the image""
request_body.num_inference_stepsinteger否The number of inference steps to perform.28
request_body.background_thresholdnumber否Threshold for the background removal algorithm. A high threshold will produce sharper masks. Note: This parameter is currently deprecated and has no effect on the output.0.67
request_body.enable_safety_checkerboolean否If set to true, the safety checker will be enabled.true

调用示例

参数模板

根据参数配置生成,使用前请替换示例值。

POST/agent-api/v1/tool/executeX-Api-Key
请求代码request.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_iclight_v2' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "prompt": "perfume bottle in a volcano surrounded by lava.",
      "image_url": "https://storage.googleapis.com/falserverless/iclight-v2/bottle.png"
    }
  }
}'

暂无返回示例。