FLUX 2 Pro Edit

36.00积分起
ae_flux_2_pro_edit

使用文字指令修改现有图像。可选择输出尺寸以及 JPEG 或 PNG 格式。

图像
36.00积分起

价格说明

36.00积分起
条件费用
首个输出百万像素36.00积分
额外输入或输出每百万像素18.00积分

用量向上取整到整百万像素。

API 调用

通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。

cURL
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_flux_2_pro_edit' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "request_body": {
      "prompt": "Place realistic flames emerging from the top of the coffee cup, dancing above the rim",
      "image_urls": [
        "https://storage.googleapis.com/falserverless/example_inputs/flux2_pro_edit_input.png"
      ]
    }
  }
}'
请求方式
POST
接口地址
/agent-api/v1/tool/execute
鉴权方式
X-Api-Key
超时时间
60 秒
响应示例
{
  "error_no": 0,
  "error_msg": "",
  "result": [
    {
      "type": "text",
      "text": "xxx"
    }
  ],
  "platform_annotations": {
    "source": "AgentEarth",
    "platform_note": "xxx",
    "platform_suggestion": "xxx"
  }
}

工具参数

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

参数类型必填说明默认值
request_bodyobject是暂无参数说明。—
request_body.seedinteger | unknown否The seed to use for the generation.—
request_body.promptstring是The prompt to generate an image from.—
request_body.sync_modeboolean否If `True`, the media will be returned as a data URI and the output data won't be available in the request history.false
request_body.image_sizeobject | string否The size of the generated image. If `auto`, the 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是List of URLs of input images for editing—
request_body.output_formatenum (jpeg | png)否The format of the generated image.jpeg
request_body.safety_toleranceenum (1 | 2 | 3 | 4 | 5)否The safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive.2
request_body.enable_safety_checkerboolean否Whether to enable the safety checker.true