Image

Nano Banana 2.1

Changed on

Google's latest image model. Pro-level quality at Flash speed.

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

Request

  • Base URL: https://api.krea.ai
  • URL: https://api.krea.ai/generate/image/google/nano-banana-2.1
  • Auth: HTTP bearer

Headers

X-Webhook-URLstring uri

URL to receive a POST request when the job completes. The webhook will receive the job data including results. When signing is configured, deliveries are signed with ECDSA P-256 (ES256); verify them with the keys at https://api.krea.ai/.well-known/jwks.json (see X-Krea-Webhook-* headers). Treat requests without these headers as unauthenticated.

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.

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'
thinking_level'minimal' | 'medium' | 'high'

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
completed_atunknown required
resultunknown required
progressnumber nullable

Changes