v12

OpenAPI 3.1.02026-08-031000506.8 KB
Image

Nano Banana 2

Cheaper quality version of Nano Banana.

post/generate/image/google/nano-banana-2

Headers

X-Webhook-URLstring uri

URL to receive a POST request when the job completes. The webhook will receive the job data including results.

Request body

promptstring required
widthnumber

Width of the generated image.

heightnumber

Height of the generated image.

image_urlsstring[]

Image prompts to use for the generation. If provided, style images are ignored.

aspect_ratio'4:1' | '21:9' | '1:1' | '4:3' | '3:2' | '2:3' | '5:4' | '4:5' | '3:4' | '16:9' | '9:16' | '1:4' | '1:8'
resolution'1K' | '2K' | '4K'

Response

The resulting job data. This will be returned in a pending state until the job is completed. See /jobs/{id} for retrieving the results.

job_idstring uuid required
status'backlogged' | 'queued' | 'scheduled' | 'processing' | 'sampling' | 'intermediate-complete' | 'completed' | 'failed' | 'cancelled' required
created_atstring date-time required
{"stackTrail":"paths:/generate/image/google/nano-banana-2:post:responses:200:content:application/json:schema:properties:completed_at","oasType":"schema","type":"unknown"}
{"stackTrail":"paths:/generate/image/google/nano-banana-2:post:responses:200:content:application/json:schema:properties:result","oasType":"schema","type":"unknown"}