Nano Banana 2 API — Generate 4K Images with Up to 14 References on Emix.ai
Run Google's Nano Banana 2 (Gemini 3.1 Flash Image) API on Emix.ai to turn a prompt — and up to 14 reference images — into a clean PNG or JPG at 1K, 2K, or 4K. One endpoint, one Bearer key, one async taskId. Test it free in the Playground, then ship the same call to production. Live now on Emix.ai. POST https://api.emix.ai/api/v1/client/tasks with model: "nano-banana-2". Full reference: docs.emix.ai/market/google/nanobanana2.
Release & API Availability
The Nano Banana 2 API is available now on Emix.ai. Nano Banana 2 is Google's latest text-to-image and image-editing model — released as Gemini 3.1 Flash Image. The model id nano-banana-2 is callable from the unified Emix.ai task endpoint, with the same Bearer auth, the same async task pattern, and the same Get Task Details polling flow as the rest of the Emix.ai catalog — no separate SDK, no waitlist.If you already have an Emix.ai key, you can call nano-banana-2 today — no integration changes required.
Vendor & Model id
Vendor: Google. Model id: nano-banana-2.
Endpoint & Auth
Endpoint: POST https://api.emix.ai/api/v1/client/tasks. Auth: Authorization: Bearer YOUR_API_KEY.
Processing
Asynchronous — the request returns a taskId, results are retrieved from the Get Task Details endpoint or pushed to your callBackUrl webhook.
Docs
docs.emix.ai/market/google/nanobanana2
Playground
emix.ai/playground/nano-banana-2
Availability
Live now on Emix.ai. Existing Emix.ai keys can call nano-banana-2 today with no integration changes.
Key Features of the Nano Banana 2 API
The Nano Banana 2 API on Emix.ai exposes the model's full image-generation surface through a single POST. Every parameter below is enforced by the live API.
Text-to-image, with optional reference editing
Send input.prompt on its own for pure text-to-image, or attach up to 14 reference images via input.image_input for editing, style transfer, character consistency, or multi-reference composition. The combined reference payload can total up to 30 MB across JPEG, PNG, or WebP files.
Long, expressive prompts
input.prompt accepts up to 20,000 characters — enough room for detailed scene briefs, brand guidelines, or shot lists without truncation.
14 aspect ratios + auto
Choose from 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9, or auto (default). Square posts, vertical reels, ultrawide banners, and panorama strips are all first-class.
Three resolution tiers
input.resolution is 1K, 2K, or 4K (default 1K). Pick 4K for print, hero shots, and product photography; 1K for thumbnails and fast iteration.
Async-by-design with webhooks
Submit the task, get a taskId back instantly, and either poll the Get Task Details endpoint or set callBackUrl so Emix.ai POSTs the completed task to your server.
Predictable error codes
401 unauthorized, 402 insufficient credits, 422 validation, 429 rate limited, 433 sub-key limit, 455 service unavailable, 500 server error, 501 generation failed, 505 feature disabled — easy to map to your retry logic.
Why Choose Emix.ai for the Nano Banana 2 API
One key, one endpoint, every model
The same https://api.emix.ai/api/v1/client/tasks route runs Nano Banana 2 and the rest of the Emix.ai catalog. Switch models by changing one string.
Async tasks + webhooks built in
callBackUrl is a first-class field. No glue code, no custom queue.
Free Playground for prompt iteration
Tune prompts, aspect ratio, resolution, and references at emix.ai/playground/nano-banana-2 before you write a line of code — the exact same parameters ship to the API.
Transparent docs
Every parameter, every status code, every limit is published at docs.emix.ai/market/google/nanobanana2.
Credit-based billing
A single account credit balance covers Nano Banana 2 alongside every other model — no per-model contracts.
Nano Banana 2 API vs the Previous Generation
The previous Nano Banana on Emix.ai established the multi-reference workflow. Nano Banana 2 expands the parameter surface that the API actually accepts today. The upgrade path is a one-line change: swap "model": "nano-banana" for "model": "nano-banana-2" and you can immediately use the larger prompt window, the wider aspect-ratio set, 4K output, and up to 14 references.
Quick Start
Four steps from idea to production call.
Step 1 — Online Test
Step 2 — Playground
Step 3 — Get API Access
Step 4 — Send Your First Request
What Can You Build with the Nano Banana 2 API
Brand-consistent campaign art
Pass a logo, a model shot, and a color reference (up to 14 images total, 30 MB) and prompt Nano Banana 2 to compose on-brand posters at 4K.
Product photography at scale
Use 4:5 or 1:1 at 2K–4K for catalog and marketplace listings; switch output_format to png when you need a clean alpha-free deliverable for design review.
Vertical short-form creative
9:16 at 1K or 2K for reels, shorts, and stories, generated asynchronously and delivered via callBackUrl.
Ultra-wide hero banners and panoramas
21:9, 8:1, and 4:1 cover landing-page heroes, banner ads, and cinematic stills.
Reference-driven character & style consistency
Up to 14 references let you lock a character, an environment, and a lighting reference in a single call.
Editorial illustration & comics
The 20,000-character prompt budget is large enough for detailed panel scripts and shot notes.
Bulk asset pipelines
Queue thousands of tasks; let the callBackUrl webhook notify your storage worker the moment each image is ready.