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_body | object | 是 | 暂无参数说明。 | — |
request_body.seed | integer | unknown | 否 | The seed to use for the generation. | — |
request_body.prompt | string | 是 | The prompt to generate an image from. | — |
request_body.sync_mode | boolean | 否 | 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_size | object | string | 否 | The size of the generated image. If `auto`, the size will be determined by the model. | auto |
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.image_urls | array | 是 | List of URLs of input images for editing | — |
request_body.output_format | enum (jpeg | png) | 否 | The format of the generated image. | jpeg |
request_body.safety_tolerance | enum (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_checker | boolean | 否 | Whether to enable the safety checker. | true |

