Google Nano Banana 2.1

16.81 credits/call
ae_nano_banana_2_1

Use Nano Banana 2.1 to generate or edit one image. Enter a description of the image or edit in `prompt`. You can add up to 14 reference images with `images`, set the output aspect ratio with `aspectRatio`, and choose 1K, 2K, or 4K resolution with `imageSize`. Submission returns a task ID. Pass it to `ae_get_result` to check progress and get the image URL when the task completes.

Image
16.81 credits/call

Pricing

16.81 credits/call
ConditionCharge
Each call16.81 credits/call

The fixed fee covers all supported resolutions and any reference images included with the call.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
imagesarrayNo可选参考图,最多 14 张,按输入顺序使用。—
promptstringYes生成或编辑图片的提示词。—
imageSizeenum (1K | 2K | 4K)No可选图像分辨率。—
aspectRatioenum (auto | 1:1 | 16:9 | 9:16 | 4:3 | 3:4 | 3:2 | 2:3 | 5:4 | 4:5 | 21:9)No可选输出宽高比,auto 由服务选择。—

Invocation example

Parameter template

Generated from the parameter configuration. Replace the sample values before use.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_nano_banana_2_1' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "prompt": "xxx"
  }
}'

No response example available yet.