Google Nano Banana 2

16.81 credits/call
ae_nano_banana_2

Use Nano Banana 2 to generate or edit one image. Enter what you want to create or change in prompt. To guide generation or supply an image to edit, pass URLs or Base64-encoded images in images, in the order you want them used. This tool accepts up to 10 reference images per request at any supported imageSize (1K, 2K, or 4K). Set aspectRatio to choose the output proportions, or select auto to let the service choose. Submission returns a task ID. Use it with ae_get_result to check progress and get the image link when the task is complete.

Image
16.81 credits/call

Pricing

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

You are charged only when image generation or editing succeeds. Output resolution and reference images do not affect the charge.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
imagesarrayNo可选参考图,最多 10 张,按输入顺序使用。—
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 | 1:4 | 4:1 | 1:8 | 8:1)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' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "prompt": "xxx"
  }
}'

No response example available yet.

Guides using this tool

See how this tool fits into real workflows