Introduction
In the world of AI image generation, precision is key. The Gemini Nano Banano method provides a structured approach to defining image prompts that yield consistent, high-quality results. This method utilizes a comprehensive six-element framework to ensure every aspect of the image is clearly defined.
The Gemini Nano Banano Framework
To create effective images, use the following six-element framework for your prompts:
-
Subject: The main focus of the image.
-
Composition: Camera movements, framing, and perspective.
-
Action: What is happening in the scene.
-
Setting/Location: The environment where the scene takes place.
-
Style: The art type, look, and feel (e.g., photorealistic, stylized, oil painting).
-
Technical Specifications: Aspect ratio, camera lens, shadow, and lighting details.
Example: Fantasy Role Playing Game Image
Let’s apply this framework to create an image for a fantasy role-playing game.
-
Subject: A battle-hardened elven ranger.
-
Composition: Low angle shot, looking up at the hero to make them look powerful.
-
Action: Drawing a glowing magical bow, ready to fire.
-
Setting/Location: A dense, ancient forest with bioluminescent plants at twilight.
-
Style: Digital fantasy concept art, highly detailed, similar to World of Warcraft or Dungeons & Dragons illustrations.
-
Technical Specifications: 16:9 aspect ratio, dramatic lighting, volumetric fog, sharp focus on the character, blurred background.
Final Prompt
Based on the framework, here is the effective prompt:
"A battle-hardened elven ranger drawing a glowing magical bow, ready to fire. Low angle shot looking up at the hero. Set in a dense, ancient forest with bioluminescent plants at twilight. Digital fantasy concept art style, highly detailed. 16:9 aspect ratio, dramatic lighting with volumetric fog, sharp focus on the character, blurred background."
JSON Representation
When integrating with APIs or storing prompts programmatically, it is often useful to represent the framework in a structured JSON format.
{
"prompt_framework": "Gemini Nano Banano",
"elements": {
"subject": "A battle-hardened elven ranger",
"composition": "Low angle shot, looking up at the hero",
"action": "Drawing a glowing magical bow, ready to fire",
"setting": "A dense, ancient forest with bioluminescent plants at twilight",
"style": "Digital fantasy concept art, highly detailed",
"technical_specifications": {
"aspect_ratio": "16:9",
"lighting": "dramatic lighting, volumetric fog",
"focus": "sharp focus on the character, blurred background"
}
},
"final_prompt": "A battle-hardened elven ranger drawing a glowing magical bow, ready to fire. Low angle shot looking up at the hero. Set in a dense, ancient forest with bioluminescent plants at twilight. Digital fantasy concept art style, highly detailed. 16:9 aspect ratio, dramatic lighting with volumetric fog, sharp focus on the character, blurred background."
}
Advanced Capabilities (Nano Banano Pro)
Advanced models, often referred to as Nano Banano Pro, introduce powerful features that extend beyond basic prompting. The following sections detail seven essential tips to master these capabilities, offering a structured approach to image generation.
Tip 1: Define the Canvas Resolution
Specifying the resolution and aspect ratio is crucial for predictable results. Nano Banano Pro supports standard resolutions (e.g., 1K, 2K, 4K). Define these parameters explicitly to ensure the output matches your specific requirements.
Template Prompt:
{
"scene": "[describe what you want]",
"resolution": "4K",
"aspect_ratio": "16:9",
"style": "[visual style]"
}
Example Prompt:
{
"scene": "futuristic AI workspace with holographic screens showing code",
"resolution": "4K",
"aspect_ratio": "16:9",
"style": "cinematic lighting, cyberpunk aesthetic, ultra-detailed"
}
Tip 2: Use Text Rendering Parameters
Nano Banano Pro offers high-fidelity text rendering capabilities. To utilize this, explicitly define the text content, position, and font style within the text_elements parameter.
Template Prompt:
{
"scene": "[your image description]",
"text_elements": [
{
"text": "[exact text to render]",
"position": "[where in image]",
"font_style": "[typography style]",
"language": "[if not English]"
}
]
}
Example Prompt:
{
"scene": "minimalist tech poster with gradient background",
"text_elements": [
{
"text": "AI Revolution 2025",
"position": "center, upper third",
"font_style": "bold, futuristic sans-serif, glowing effect",
"size": "large headline"
},
{
"text": "The future is now",
"position": "center, lower third",
"font_style": "elegant script, smaller subtitle"
}
]
}
Tip 3: Master the Reference Image System
The model supports up to 14 reference images. Use the reference_images array to specify exactly which elements (e.g., color, shape) should be extracted from each uploaded reference. image_id corresponds to the identifier of the uploaded image.
Template Prompt:
{
"scene": "[what to create]",
"reference_images": [
{
"image_id": 1,
"extract": "[what to use from this image]",
"apply_to": "[where in final image]"
},
{
"image_id": 2,
"extract": "[element to extract]",
"apply_to": "[placement]"
}
]
}
Example Prompt:
{
"scene": "product marketing image for AI headphones",
"reference_images": [
{
"image_id": 1,
"extract": "color palette and lighting style",
"apply_to": "entire composition"
},
{
"image_id": 2,
"extract": "product shape and design details",
"apply_to": "center focus"
},
{
"image_id": 3,
"extract": "background texture and mood",
"apply_to": "background layer"
}
],
"blend_style": "seamless product photography"
}
Tip 4: Control Camera and Lighting Like a Pro
Nano Banano Pro includes professional-grade camera controls. You can specify parameters such as angle, focal length, depth of field, and lighting conditions.
Template Prompt:
{
"scene": "[subject description]",
"camera": {
"angle": "[perspective]",
"focal_length": "[lens type]",
"depth_of_field": "[focus style]"
},
"lighting": {
"type": "[lighting setup]",
"time_of_day": "[if applicable]",
"mood": "[atmosphere]"
}
}
Example prompt:
{
"scene": "AI engineer working at futuristic desk with multiple holographic displays",
"camera": {
"angle": "over-the-shoulder, slightly elevated",
"focal_length": "50mm portrait lens",
"depth_of_field": "shallow, subject in sharp focus, background slightly blurred"
},
"lighting": {
"type": "dramatic side lighting with blue accent lights",
"time_of_day": "late night",
"mood": "focused, tech-noir atmosphere",
"shadows": "deep but not harsh"
},
"color_grade": "cool tones, teal and orange color scheme"
}
Tip 5: Use Thinking Mode for Complex Compositions
For complex compositions like infographics or diagrams, enabling thinking mode allows the model to plan the layout and reasoning before generation.
Template Prompt:
{
"mode": "thinking",
"composition": "[complex scene description]",
"reasoning_requirements": [
"[spatial relationship to consider]",
"[visual hierarchy priority]",
"[technical accuracy needed]"
],
"visual_goal": "[what makes this successful]"
}
Example prompt:
{
"mode": "thinking",
"composition": "technical infographic explaining how RAG systems work",
"reasoning_requirements": [
"arrange flowchart elements logically from left to right",
"show data flow with clear arrows and labels",
"include 5 distinct components: user query, embedding, vector database, retrieval, LLM generation",
"ensure all text labels are legible and accurately describe each step"
],
"visual_goal": "educational clarity with professional design",
"color_scheme": "tech blue and white with orange accents for emphasis",
"text_rendering": "clean sans-serif, hierarchy from large titles to small labels"
}
Tip 6: Add Character Consistency Parameters
To maintain character consistency across multiple images, define specific character attributes and assign them a character_id. Nano Banano Pro can maintain up to 5 unique characters.
Template Prompt:
{
"scene": "[scene description]",
"characters": [
{
"character_id": 1,
"description": "[detailed appearance]",
"consistency_priority": "high",
"reference_image_id": "[if using reference]"
}
],
"character_interactions": "[how they relate in scene]"
}
Example prompt:
{
"scene": "tech startup team brainstorming in modern office",
"characters": [
{
"character_id": 1,
"description": "Asian female engineer, mid-20s, black hair in ponytail, wearing blue hoodie and glasses, confident expression",
"consistency_priority": "high",
"position": "center, gesturing at whiteboard"
},
{
"character_id": 2,
"description": "Latino male developer, early-30s, beard, casual t-shirt, focused expression",
"consistency_priority": "high",
"position": "left side, typing on laptop"
}
],
"character_interactions": "collaborative and engaged, both focused on same project",
"maintain_across_series": true
}
Tip 7: Leverage Google Search Grounding
Nano Banano Pro can leverage Google Search for real-time data grounding, which is ideal for creating accurate maps, charts, and content based on current events.
Template Prompt:
{
"scene": "[scene requiring factual data]",
"grounding": {
"enabled": true,
"search_query": "[what to verify/look up]",
"data_requirements": "[specific facts needed]"
},
"visual_style": "[how to present the data]"
}
Example prompt:
{
"scene": "infographic showing current AI model pricing comparison",
"grounding": {
"enabled": true,
"search_query": "latest pricing for GPT-4, Claude Sonnet, Gemini Pro",
"data_requirements": [
"current per-token prices",
"monthly subscription costs",
"rate limits and quotas"
],
"verify_accuracy": true
},
"visual_style": "clean comparison table with brand colors",
"layout": "horizontal bar chart with pricing tiers clearly labeled",
"text_rendering": "all prices must be legible and accurate to search results"
}
Style Transfer
The style transfer feature allows you to apply the aesthetic of a reference image to a new scene. You can selectively transfer elements like color palette or lighting.
Template Prompt:
{
"scene": "[new content to create]",
"style_transfer": {
"reference_image_id": "[image to copy style from]",
"transfer_elements": {
"color_palette": true,
"lighting_setup": true,
"texture_style": true,
"composition_rules": true
},
"intensity": "[0-100%]"
}
}
Example:
{
"scene": "new product photo of wireless earbuds on marble surface",
"style_transfer": {
"reference_image_id": 1,
"transfer_elements": {
"color_palette": true,
"lighting_setup": true,
"texture_style": false,
"composition_rules": true
},
"intensity": "85%",
"specific_attributes": [
"soft diffused lighting from top-left",
"minimal shadows with subtle gradient",
"cool-toned color grading with slight blue tint",
"clean negative space on right third"
]
},
"preserve_from_new_scene": "product details and branding must remain accurate"
}
Conclusion
By breaking down your image definition into these core components, the Gemini Nano Banano method ensures that the AI understands not just the subject, but the context and style required for your specific use case.