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"
  }
}

工具参数

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

参数类型必填说明默认值
seedinteger否The seed for the random number generator.—
promptstring是The prompt for image editing.—
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
image_urlsarray是The URLs of the images to use for image-to-image generation or image editing.—
num_imagesinteger否The number of images to generate.1
resolutionenum (0.5K | 1K | 2K | 4K)否The resolution of the image to generate.1K
aspect_ratiostring否The aspect ratio of the generated image. Supports extreme ratios: 4:1, 1:4, 8:1, 1:8.auto
output_formatenum (jpeg | png | webp)否The format of the generated image.png
thinking_levelstring否When set, enables model thinking with the given level ('minimal' or 'high') and includes thoughts in the generation. Omit to disable.—
safety_toleranceenum (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_searchboolean否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_generationsboolean否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