Google Nano Banana 2.1
prompt alone to generate an image, or add reference_images to edit them, combine them, or keep a character or product consistent across new scenes. It renders at 1K, 2K or 4K, in 14 aspect ratios from 8:1 banners to 1:8 vertical strips.
Key capabilities
- Generation and editing in one endpoint: Text-to-image, or edit and compose up to 14
reference_images - Name your references in the prompt: Each reference is captioned
Image 1,Image 2… by default, so the prompt can say “place the product from Image 1 on the table in Image 2”. Send your owntextcaption to name it differently - Wide aspect ratio range: 14 ratios from
8:1to1:8, plusautoto follow your reference images - Thinking level:
thinking_level(minimal,medium,high) trades generation time for better handling of complex prompts - Google Search grounding:
use_google_search_toolgrounds the image on current web results - Resolutions:
1K,2Kand4K. Resolution is the only parameter that changes the price - Prompt range: 2 to 12,000 characters
- Async processing: Webhook notification or polling for task completion
Use cases
- Product visuals: Place a product from a reference photo in new scenes and settings
- Character consistency: Keep the same person or mascot across a campaign from a few reference images
- Image editing: Change backgrounds, lighting, style or objects in an existing image with a text instruction
- Banners and panels: Generate ultra-wide
8:1/4:1headers or tall1:4/1:8panels natively, without cropping - Grounded imagery: Images of real places, landmarks or recent products with Google Search grounding
API operations
Create an image with the POST endpoint, then track it with the list and status endpoints. Generation returns a task ID for async polling or webhook notification.POST /v1/ai/text-to-image/nano-banana-2-1
GET /v1/ai/text-to-image/nano-banana-2-1
GET /v1/ai/text-to-image/nano-banana-2-1/{task-id}
Parameters
Output sizes
The output is about 1, 4 or 16 megapixels at1K, 2K and 4K, shaped to the requested ratio. Measured examples:
Frequently Asked Questions
What is Nano Banana 2.1 and how does it work?
What is Nano Banana 2.1 and how does it work?
prompt (2-12,000 characters), optionally with up to 14 reference_images, and receive a task ID immediately. Poll the task endpoint or configure a webhook_url to receive the generated image URL when processing completes. Each request generates one image.How do I refer to a specific reference image in the prompt?
How do I refer to a specific reference image in the prompt?
Image 1, Image 2 and so on, so you can write prompts such as “put the jacket from Image 2 on the person in Image 1”. If you set your own text on a reference, that caption is used instead, and you can refer to the image by it (for example "text": "the logo" and “turn the logo into a neon sign”).How do I keep the aspect ratio of my reference image?
How do I keep the aspect ratio of my reference image?
aspect_ratio to auto. With reference images the model follows their ratio, including ratios outside the preset list: a 900x1050 reference returns a 960x1120 image. Without reference images, auto lets the model pick the ratio that best fits the prompt. If you omit aspect_ratio entirely you get the default, 1:1.What does thinking_level change?
What does thinking_level change?
high helps with complex compositions and prompts with many constraints; minimal returns faster. When omitted, the model uses medium. It does not change the price.What does Google Search grounding do?
What does Google Search grounding do?
use_google_search_tool is true, the model uses Google Search to ground the image on real-world information. Use it for prompts about real places, landmarks, current events or recent products. It does not change the price.Can I set a seed to reproduce an image?
Can I set a seed to reproduce an image?
What reference image formats are supported?
What reference image formats are supported?
mime_type is optional: when omitted it is derived from the image. Plain http:// URLs are rejected.How much does Nano Banana 2.1 cost?
How much does Nano Banana 2.1 cost?
resolution: 1K, 2K or 4K. Reference images, thinking_level and Google Search grounding do not change it. See the Pricing page for current rates.What are the rate limits for Nano Banana 2.1?
What are the rate limits for Nano Banana 2.1?
How is Nano Banana 2.1 different from Nano Banana Pro and Pro Flash?
How is Nano Banana 2.1 different from Nano Banana Pro and Pro Flash?
8:1, 4:1, 1:4 and 1:8 aspect ratios and the thinking_level control. Nano Banana Pro and Nano Banana Pro Flash remain available with their own parameters.Best practices
- Name what you reference: Refer to references by their caption (
Image 1,Image 2) or give them a descriptivetext, especially when combining several images - Use
autofor edits: When editing a single reference,autokeeps its proportions instead of forcing a preset ratio - Pick the resolution last: Iterate at
1Kand render the final asset at2Kor4K - Raise
thinking_levelfor complex prompts: Usehighfor multi-object compositions and dense instructions; keepminimalfor quick drafts - Production integration: Use
webhook_urlinstead of polling for scalable applications - Error handling: Implement retry logic with exponential backoff for 503 errors
Related APIs
- Nano Banana Pro Flash: Fast Gemini 3.1 Flash generation with Google Search grounding
- Magnific One: Image model with art direction built in
- Mystic: Magnific’s proprietary image generation with LoRA style control