Ae · Nano · Banana · 2 · Edit
10.00积分/次
ae_nano_banana_2_edit
使用文字指令编辑、变换或组合一张或多张图像。
10.00积分/次
价格说明
10.00积分/次
API 调用
通过统一工具网关发起同步请求,鉴权和计费由 AgentEarth 处理。
cURL
curl --request POST \
--url 'https://api.agentearth.ai/v1/tools/run' \
--header 'Authorization: Bearer $AGENTEARTH_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"tool": "ae_nano_banana_2_edit",
"input": {
"seed": "xxx",
"prompt": "xxx",
"sync_mode": "false",
"image_urls": "xxx",
"num_images": "1",
"resolution": "1K",
"aspect_ratio": "auto",
"output_format": "png",
"thinking_level": "xxx",
"safety_tolerance": "4",
"enable_web_search": "false",
"limit_generations": "true"
}
}'- 请求方式
- POST
- 接口地址
- /v1/tools/run
- 鉴权方式
- Bearer Token
- 超时时间
- 60 秒
- 当前版本
- —
响应示例
{
"error_no": 0,
"error_msg": "",
"result": [
{
"type": "text",
"text": "xxx"
}
],
"platform_annotations": {
"source": "AgentEarth",
"platform_note": "xxx",
"platform_suggestion": "xxx"
}
}工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
seed | integer | 否 | The seed for the random number generator. | — |
prompt | string | 是 | The prompt for image editing. | — |
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 |
image_urls | array | 是 | The URLs of the images to use for image-to-image generation or image editing. | — |
num_images | integer | 否 | The number of images to generate. | 1 |
resolution | enum (0.5K | 1K | 2K | 4K) | 否 | The resolution of the image to generate. | 1K |
aspect_ratio | string | 否 | The aspect ratio of the generated image. Supports extreme ratios: 4:1, 1:4, 8:1, 1:8. | auto |
output_format | enum (jpeg | png | webp) | 否 | The format of the generated image. | png |
thinking_level | string | 否 | When set, enables model thinking with the given level ('minimal' or 'high') and includes thoughts in the generation. Omit to disable. | — |
safety_tolerance | enum (1 | 2 | 3 | 4 | 5 | 6) | 否 | The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict. | 4 |
enable_web_search | boolean | 否 | Enable web search for the image generation task. This will allow the model to use the latest information from the web to generate the image. | false |
limit_generations | boolean | 否 | Experimental parameter to limit the number of generations from each round of prompting to 1. Set to `True` to to disregard any instructions in the prompt regarding the number of images to generate and ignore any intermediate images generated by the model. This may affect generation quality. | true |
