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.
16.81 credits/call
Pricing
16.81 credits/call
| Condition | Charge |
|---|---|
| Each call | 16.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.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
images | array | No | 可选参考图,最多 14 张,按输入顺序使用。 | — |
prompt | string | Yes | 生成或编辑图片的提示词。 | — |
imageSize | enum (1K | 2K | 4K) | No | 可选图像分辨率。 | — |
aspectRatio | enum (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 templateGenerated from the parameter configuration. Replace the sample values before use.
POST
/agent-api/v1/tool/executeX-Api-KeyRequest 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.




