Iclight V2
120.00积分/百万像素
ae_iclight_v2
根据文本描述的新光照条件,为现有图像重新打光。
120.00积分/百万像素
价格说明
每百万像素(MP)收取120.00积分。按实际成功返回的图片计费。按实际像素比例计费。1MP按1,000,000像素计。
120.00积分/百万像素
工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
request_body | object | 是 | 暂无参数说明。 | — |
request_body.cfg | number | 否 | The real classifier-free-guidance scale for the generation. | 1 |
request_body.seed | integer | 否 | The same seed and the same prompt given to the same version of the model will output the same image every time. | — |
request_body.prompt | string | 是 | The prompt to generate an image from. | — |
request_body.image_url | string | 是 | URL of image to be used for relighting | — |
request_body.sync_mode | boolean | 否 | 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_size | object | string | 否 | The size of the generated image. | — |
request_body.image_size.width | integer | 否 | The width of the generated image. | 512 |
request_body.image_size.height | integer | 否 | The height of the generated image. | 512 |
request_body.num_images | integer | 否 | The number of images to generate. | 1 |
request_body.hr_downscale | number | 否 | 暂无参数说明。 | 0.5 |
request_body.enable_hr_fix | boolean | 否 | Use HR fix | false |
request_body.output_format | enum (jpeg | png) | 否 | The format of the generated image. | jpeg |
request_body.guidance_scale | number | 否 | 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_latent | enum (None | Left | Right | Top | Bottom) | 否 | Provide lighting conditions for the model | None |
request_body.lowres_denoise | number | 否 | Strength for low-resolution pass. | 0.98 |
request_body.mask_image_url | string | 否 | URL of mask to be used for ic-light conditioning image | — |
request_body.highres_denoise | number | 否 | Strength for high-resolution pass. Only used if enable_hr_fix is True. | 0.95 |
request_body.negative_prompt | string | 否 | Negative Prompt for the image | "" |
request_body.num_inference_steps | integer | 否 | The number of inference steps to perform. | 28 |
request_body.background_threshold | number | 否 | 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_checker | boolean | 否 | 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"
}
}
}'暂无返回示例。






