How to Write JSON Prompts for Gemini Nano Banana

Most people prompt Gemini Nano Banana like they’re texting a friend: “make a cool picture of a robot.”
That works… but it won’t get you the sharp, consistent, high-quality results you’re looking for.
Nano Banana actually understands something much better: JSON-structured prompts.
Think of JSON as the blueprint for your AI request.
When you use it, you’re not just tossing ideas into the air — you’re giving Gemini clear instructions, piece by piece.
In this guide, I’ll show you exactly how to write JSON prompts for Gemini Nano Banana, starting from the basics all the way to polished, production-ready examples.
ALSO READ: How to Research With ChatGPT Projects (Step-by-Step for Entrepreneurs)

Why JSON Prompts Work Better in Gemini Nano Banana
Plain text prompts are vague.
JSON prompts are precise.
Here’s why JSON makes a difference:
- Cleaner output: Nano Banana processes structured data more reliably.
- Sharper images: Clear categories = fewer weird AI artifacts.
- Control: Define style, environment, composition, and technical details separately.
- Repeatability: Once you’ve got a JSON format you like, you can reuse it for consistent results.
If you’ve ever been frustrated by “almost right” images, JSON is how you fix that.
The Anatomy of a JSON Prompt

At its core, a Gemini Nano Banana JSON prompt looks like this:
{
"style": {},
"technical": {},
"materials": {},
"environment": {},
"composition": {},
"quality": {}
}
Each block tells Gemini something specific:
- style → the look and feel
- technical → camera-like details
- materials → textures, fabrics, surfaces
- environment → the setting or background
- composition → how it’s arranged in the frame
- quality → resolution and polish
Now let’s break each part down with examples.
Style Comes First
Style is the mood. Do you want cinematic drama? Documentary realism? A surreal oil painting? Start here.
Example:
"style": {
"primary": "photorealistic",
"rendering_quality": "high-resolution",
"lighting": "natural"
}
- primary defines the artistic base (photorealistic, cinematic, painterly, surreal).
- rendering_quality ensures clarity.
- lighting sets the atmosphere.
Add Technical Details (Think Like a Camera)
.webp)
This is where you play photographer. Depth of field, aperture, exposure — all the details that make an image pop.
Example:
"technical": {
"aperture": "f/1.8",
"depth_of_field": "shallow",
"exposure": "balanced"
}
With these, you can make Gemini behave like you’re holding a DSLR.
Define Materials (What Things Are Made Of)
If you’re generating products, environments, or props, specify the materials.
Example:
"materials": {
"primary": "oak wood",
"secondary": "glass",
"texture": "smooth"
}
This is crucial for product mockups or design visuals where surfaces matter.
Add Environment (Where the Scene Lives)
.webp)
Gemini needs context.
Is your subject on a beach, in a café, or in space?
Example:
"environment": {
"location": "modern office",
"time_of_day": "sunset",
"weather": "clear"
}
Environment helps Nano Banana build the background and vibe.
Set Composition (How It’s Arranged)
Composition controls how the subject is framed.
Example:
"composition": {
"framing": "rule of thirds",
"angle": "low-angle shot",
"focus_subject": "center"
}
This is where you tell Gemini whether you want a portrait close-up, a wide landscape, or a cinematic angle.
Finish With Quality Settings

Finally, give Gemini the polish instructions.
Example:
"quality": {
"resolution": "4K",
"sharpness": "ultra-sharp",
"post_processing": "cinematic grading"
}
This ensures your images don’t just look “good enough” — they look production-ready.
Putting It All Together
Here’s a complete JSON prompt that combines everything:
{
"style": {
"primary": "photorealistic",
"rendering_quality": "high-resolution",
"lighting": "soft natural light"
},
"technical": {
"aperture": "f/1.8",
"depth_of_field": "shallow",
"exposure": "balanced"
},
"materials": {
"primary": "stainless steel",
"secondary": "glass",
"texture": "polished"
},
"environment": {
"location": "urban café",
"time_of_day": "morning",
"weather": "clear"
},
"composition": {
"framing": "rule of thirds",
"angle": "eye-level",
"focus_subject": "coffee cup on table"
},
"quality": {
"resolution": "4K",
"sharpness": "crisp",
"post_processing": "cinematic color grading"
}
}
Output:

Beginner Mistakes to Avoid
- Mixing plain text with JSON. Keep the prompt purely JSON.
- Forgetting braces. One missing bracket = invalid prompt.
- Overstuffing details. If you contradict yourself (“low-light” + “bright exposure”), Gemini gets confused.
Pro Tips for Better JSON Prompts

- Start with style, then add layers.
- Keep prompts modular — swap “environment” blocks to reuse.
- Always use Thinking Mode in Gemini for smarter, step-by-step reasoning.
- Test small tweaks: one change in aperture or lighting can transform the output.
JSON vs Plain Text Prompts
When should you use JSON and when should you stick to text?
- JSON: when you need precision, repeatability, or polished images.
- Plain text: when you’re brainstorming, experimenting, or exploring.
Pro workflow: Start in plain text to test ideas → switch to JSON for your final outputs.
Real-World Use Cases
Entrepreneurs and creators can use JSON prompts for:
- Product photography mockups (without expensive shoots).
- Marketing visuals (ad campaigns, social posts).
- Branded design assets (logos, style-consistent graphics).
- Storytelling (consistent characters across multiple images).
Conclusion
If plain text prompts are casual notes, JSON prompts are blueprints.
Gemini Nano Banana understands them better, giving you sharper, cleaner, and more professional images.
Start small: write a JSON prompt with just style + environment.
Then layer in technical, materials, and composition.
And if you want plug-and-play JSON templates that already work out of the box, grab my Complete AI Bundle.
It includes 30,000+ prompts, custom structures, and workflows you can adapt instantly.

10 ChatGPT Prompts That Help Small Businesses Decide Which Equipment to Buy
Artificial intelligence, particularly ChatGPT, offers tailored insights by analyzing specific business needs, budget constraints, and market trends. This article explores 10 practical ChatGPT prompts designed to help small businesses decide which equipment to buy, ensuring smarter investments and optimized operations.











