Hunyuan Hy Wu Edit

120.00积分/百万像素
ae_hy_wu_edit

使用文字指令和最多三张参考图像编辑图像,例如更换服装或组合视觉元素。

图像
120.00积分/百万像素

价格说明

图片编辑普通模式每百万像素120.00积分,思考模式每百万像素180.00积分。费用按实际处理像素及所选模式计算。

120.00积分/百万像素

工具参数

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

参数类型必填说明默认值
request_bodyobject是暂无参数说明。—
request_body.seedinteger | unknown否Random seed for reproducible results. If None, a random seed is used.—
request_body.promptstring是The text prompt describing the desired edit. Supports both English and Chinese. Use specific instructions like 'Replace the clothing on figure 1 with the outfit from figure 2'.—
request_body.sync_modeboolean否If True, the media will be returned as a data URI.false
request_body.image_sizeobject | string否The desired size of the generated image. If auto, image size will be determined by the model.auto
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.image_urlsarray是URLs of input images for editing. Typically 2 images: the base image and the reference image. Supports up to 3 images.—
request_body.num_imagesinteger否The number of images to generate.1
request_body.output_formatenum (jpeg | png)否The format of the generated image.png
request_body.enable_thinkingboolean否Enable thinking mode. The model reasons about the edit before generating, producing higher quality results at the cost of longer inference time. Disable for faster results on straightforward edits.true
request_body.num_inference_stepsinteger否Number of diffusion denoising steps.30
request_body.enable_safety_checkerboolean否If set to true, the safety checker will be enabled.true

调用示例

提交任务并查询完成结果

POST/agent-api/v1/tool/executeX-Api-Key

先提交任务,再用返回的 task_id 查询,直至完成。

请求代码request.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_hy_wu_edit' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "enable_thinking": false,
      "image_size": {
        "height": 1418,
        "width": 832
      },
      "image_urls": [
        "https://agentearth.ai/fileserver/file/cc6ed968-1ea9-4a6b-b864-7d702dfe44a3.jpg",
        "https://agentearth.ai/fileserver/file/54fdd3cc-3e04-4e21-b5fd-12f402d1a20b.jpg"
      ],
      "num_images": 1,
      "output_format": "png",
      "prompt": "以第一张图作为底图,保持整张海报的背景、金色圣光、城堡、巨大数字、驴、白绵羊、以及所有文字与整体版式完全不变。只做两处修改:1) 把第一张图中骑驴女生的深色长裤改成黑色丝袜,黑色丝袜包裹住她的双腿,贴合腿部线条,露出腿部曲线;2) 从第二张图提取那个银白色长发、身穿黑金色战甲长袍、披暗红色披风的男子形象,把他添加到第一张图里女生身后的同一头驴背上,两人同骑这一头驴。男子坐在女生正后方,用双臂从后面紧紧环抱女生的腰部,下巴贴近女生肩头,神情冷峻。保持男子银白长发、黑金战甲长袍、暗红披风等形象特征与第二张图一致。"
    }
  }
}'
返回示例response.json
JSON部分内容
{
  "description": "task accepted; poll the result via query_tool with this task_id",
  "query_tool": "ae_get_result",
  "status": "created",
  "task_id": "234f5a02-b734-4d15-ae87-46143952fd47"
}

返回示例仅展示部分内容,不代表完整响应;复制内容为合法 JSON。