Skip to content
Home

Nano Banana 2

nano_banana_2

Google Nano Banana 2 provides image generation through the Gemini API, supporting text-to-image, image editing, and multi-image composition.

POST /v1/queue/nano_banana_2 # Create task
GET /v1/queue/nano_banana_2/requests/{request_id}/status # Check status
GET /v1/queue/nano_banana_2/requests/{request_id}/response # Get result
PUT /v1/queue/nano_banana_2/requests/{request_id}/cancel # Cancel task
Terminal window
curl --location "https://cloud.seaart.ai/model/v1/queue/nano_banana_2" \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"prompt": "A red apple on a white table, clean studio lighting, simple background.",
"image_urls": [
"https://image.cdn2.seaart.me/2026-06-01/d8ejq1de878c739e2lrg/995ff4fe1eeec10a06c3c7a172862733.webp"
]
}'
prompt string required

Image generation prompt

For realistic scenes, use photography terms such as camera angle, lens type, lighting, and detail level

For stylized illustrations, stickers, icons, or assets, clearly describe the style and ask for a transparent background when needed

For text inside the image, state the exact text, font style, and overall design

For product mockups and commercial photography, describe a clean professional product shot suitable for ecommerce, ads, or branding

For minimal layouts and negative space, describe where text or marketing content should be overlaid later

Length: 1 - 2500 characters

image_urls string[]

Input image URLs used as reference images or visual context, with up to 3 images supported

aspect_ratio string

Output image aspect ratio

Allowed values: 1:8, 1:4, 1:1, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9

image_size string

Output image size tier

Allowed values: 512, 1K, 2K, 4K

resolution string

Output image resolution

Allowed values: 0.5K, 1K, 2K, 4K

Default: 1K

response_modalities string[]

Controls which response modalities the model returns

By default, the model returns text and image responses: ["Text", "Image"]; pass ["Image"] to return only images without text

{
"request_id": "mmsu_01hxyz...",
"response_url": "https://cloud.seaart.ai/model/v1/queue/nano_banana_2/requests/mmsu_01hxyz.../response",
"status_url": "https://cloud.seaart.ai/model/v1/queue/nano_banana_2/requests/mmsu_01hxyz.../status",
"cancel_url": "https://cloud.seaart.ai/model/v1/queue/nano_banana_2/requests/mmsu_01hxyz.../cancel",
"queue_position": 0
}
FieldTypeDescription
request_idstringTask ID used for all follow-up operations.
response_urlstringURL to fetch the final result.
status_urlstringURL to query task status.
cancel_urlstringURL to cancel the task.
queue_positionintCurrent queue position.