I haven’t been too lively in utilizing AI to generate pictures. Principally as a result of not one of the AI instruments so far are capable of ship the extent of high quality I search in my pictures. And so, the onus of producing pictures for my blogs largely falls on my teammate and an distinctive graphic designer Armaan. Although for this specific weblog, I gave Armaan a break. All because of Google’s new “Nano-Banana” aka Gemini 2.5 Flash Picture.
That’s what the most recent picture era mannequin from the home of Gemini is named. Greater than a picture era, the Gemini 2.5 Flash Picture or nano-banana comes as a picture modifying mannequin. Why? The replace now lets you mix a number of pictures right into a single picture. No less than that’s what it claims to do, as talked about in a Google weblog introducing the brand new Gemini image-gen mannequin.
If it does what it says and does it effectively, I personally know a dozen AI lovers who will probably be past excited to provide it a strive. In case you’re one such aficionado of AI picture era, right here is all it’s good to know in regards to the new Gemini 2.5 Flash Picture, together with a hands-on experiment I attempted on it.
What’s Gemini 2.5 Flash Picture?
In a nutshell, Gemini 2.5 Flash Picture is a brand new picture era and modifying mannequin by Google. It comes as an replace to the a lot hailed Gemini 2.0 Flash Picture picture era mannequin, making it quicker and higher, with added image-editing options.
For context, the brand new Gemini 2.5 Flash Picture can mix a number of pictures into one, keep character consistency, and make focused transformations in a picture. As Google places it, the mannequin makes use of Gemini’s “world information to generate and edit pictures.”
Allow us to discover these options in a bit extra element.
Gemini 2.5 Flash Picture Options
Preserve character consistency
Nearly anybody who has used AI to generate pictures will relate to this. Particular person picture prompts normally serve you effectively. However as quickly as you desire a specific ingredient proven as it’s throughout a set of pictures, nearly all recognized AI fashions falter.
Google claims to have labored on that, with the brand new Gemini 2.5 Flash Picture. Here’s what it says for the nano-banana’s functionality on this regard:
“Now you can place the identical character into completely different environments, showcase a single product from a number of angles in new settings, or generate constant model belongings, all whereas preserving the topic.”
Has it nailed it? Discover out shortly in my hands-on experiment with the mannequin.
Immediate based mostly picture modifying
That is very like “photoshopping” a selected ingredient in/ out of a picture, however by means of easy prompts. Gemini 2.5 Flash Picture can “blur the background of a picture, take away a stain in a t-shirt, take away a complete particular person from a photograph,” and far more, as Google claims.
The exact native edits with pure language prompts make it a robust AI mannequin, offered it does it effectively. Don’t you are concerned. We will it strive it out in our hands-on quickly sufficient.
Multi-image fusion
This appears to be the brand new hot-new replace for the Gemini 2.5 Flash Picture. The nano-banana can “perceive and merge a number of enter pictures” as per Google, which principally means you’ll be able to fuse pictures with a single immediate now. Put an individual who missed the occasion in a bunch picture, place an object right into a scene, or another use you’ll be able to consider. All with a easy immediate.
Arms-on loading. Keep tuned!
Native world information
As I identified in my article – Why AI Lacks Widespread Sense, AI fashions lack a deep, semantic understanding of the true world. Nearly the entire aesthetic-images they produce are a results of their coaching knowledge. Google claims to have bypassed this, as the brand new nano-banana mannequin “advantages from Gemini’s world information.”
With out sharing any additional info on how this was made doable, Google says that this capacity unlocks new use-cases for the Gemini 2.5 Flash Picture mannequin. No worries, we are going to try it out for all its price quickly.
However earlier than that, right here is how one can entry the brand new Gemini Flash 2.5 Picture
Gemini Flash 2.5 Picture Accessibility
The brand new Google nano-banana or the Gemini Flash 2.5 Picture is out there proper now by way of the Gemini app or web site for particular person customers.
For Particular person Customers
You possibly can merely obtain the app in your telephone, or go to gemini.google.com and entry the mannequin by deciding on 2.5 Flash on the high and clicking on “Create Photos” underneath the Instruments part.
For Builders
Builders can entry the identical by means of Gemini API and Google AI Studio, whereas enterprise purchasers can entry the instrument by means of Vertex AI.
For entry by means of API, comply with these steps:
1. Set up Required Libraries
Set up the most recent model of the Google Generative AI SDK utilizing pip, and guarantee you have got PIL (Pillow) put in for picture processing:
pip set up google-generativeai pillow
This command will import all required libraries firstly of your script for clean execution.
2. Authenticate Your API Entry
Arrange authentication by exporting your API key (if required) as an surroundings variable or authenticating by way of cloud id suppliers, so the genai SDK can entry Google’s Generative AI endpoints:
import os
os.environ["GOOGLE_API_KEY"] = ""
Be sure that your API account is lively and has enough quota for requests.
3. Configure and Name the Mannequin
Initialize the shopper, set the mannequin to “gemini-2.5-flash-image-preview”, and cross a related immediate utilizing the SDK’s content material era technique:
from google import genai
shopper = genai.Consumer()
immediate = "Create an image of a nano banana dish in a elaborate restaurant with a Gemini theme"
response = shopper.fashions.generate_content(
mannequin="gemini-2.5-flash-image-preview",
contents=[prompt],
)
4. Parse and Save the Generated Picture
Iterate by means of the response to test for textual content and picture outputs, then save the generated picture utilizing PIL:
from PIL import Picture
from io import BytesIO
for half in response.candidates.content material.components:
if half.textual content is just not None:
print(half.textual content)
elif half.inline_data is just not None:
picture = Picture.open(BytesIO(half.inline_data.knowledge))
picture.save("generated_image.png")
For entry by means of Google AI Studio, merely use the “construct mode” on Google AI Studio right here. As soon as on the platform, you’ll be able to merely enter a immediate to design the form of picture era/ modifying app based mostly on Gemini 2.5 Flash Picture you need. Assume face-swap or clothe-swap.
Gemini Flash 2.5 Picture Arms-on
Since AI picture era utilizing prompts is fairly simple, I made a decision to strive the brand new Gemini Flash 2.5 Picture throughout its USPs, apart from, in fact, primary picture era. Take a look at the outcomes for your self:
1. Producing new pictures
Listed below are two pictures I generated utilizing Gemini 2.5 Professional Flash. One in all a 25-year previous boy from the hills of Himachal Pradesh, and one other of a Gaddi canine. Listed below are the prompts:
Immediate 1: give me a portrait picture of an indian boy, across the age of 25, hailing from Himachal Pradesh. The boy has dense, black hair and lightweight inexperienced eyes, and is sporting a brilliant cool strong White shirt
Immediate 2: give me a portrait picture of a pahadi gaddi canine, black in color with a thick fur and a much bigger dimension as in comparison with a daily road canine
Output:
Whereas the outcomes clearly appear AI-generated, I might give 10/10 to nano-banana for the outcomes. That is merely due to the tremendous prime quality of pictures, correct depictions of the immediate, and the truth that I by no means talked about within the immediate to make the photographs too life like.
2. Merging Photos
For consistency, I performed round with these two pictures for the remainder of exams. So I requested the mannequin to merge the 2 pictures of the boy and the canine in a scenic background. Right here is the immediate:
Immediate: present the boy and the canine enjoying in an enormous open subject towards the backdrop of a river flowing in a valley and snow-capped mountains on the opposite facet of the river
Output:
It took a while for the AI mannequin to seek out its strategy to the suitable output. With the preliminary outcomes having a bit off proportions, there was a back and forth of prompts and outcomes earlier than I discovered what I used to be in search of. However as soon as I did, boy was I impressed! All the things all the way down to the final element was as correct as I had talked about and as aesthetic as I might’ve requested for.
3. Picture Modifying
After picture era and merger, comes the modifying half. To check these out, I first requested Gemini Flash 2.5 Picture so as to add a small hut within the picturesque scene. Right here is the immediate:
Immediate: on this picture, present a small shed close to the river at a distance
Output:
Flawless execution within the first strive. It appears evident that Google has labored massively on the nano-banana, particularly within the areas the place it highlights it to excel.
Immediate: present the boy and the canine working as they’re in a seaside as a substitute of the present setting. the boy is now sporting shorts and a vest, and has a tattoo throughout his left-arm
Output:
Nothing in need of spectacular, Gemini 2.5 Flash Picture managed to do a fairly first rate job. Although it took repeated makes an attempt to reach at an aesthetic end result, the brand new picture mannequin was capable of replicate the main points of the boy and the canine with nearly full accuracy. In case you look carefully, the slight distinction that you’ll discover will probably be that within the boy’s coiffure. Relaxation all the pieces appears to be like nearly precisely much like me as within the earlier setting. I even tried the “tattoo on one-arm” thought to see how Gemini executes it. All I can say is Kudos to the mannequin for a job effectively performed!
To check Gemini 2.5 Flash Picture on an app for repeated picture era and modifying, we used the next immediate on Google AI Studio’s “construct mode”
Immediate: Create a Attempt on App, the place customers can add their photos and take a look at varied garments to see how they give the impression of being in them.
With a single sequence of image-generation and modifying on the brand new Gemini 2.5 Flash Picture, the updates and the improved capabilities are just about evident to me. What I’m particularly thrilled about is the brand new picture merging capacity of the mannequin. I can foresee n-number of situations the place that may be useful for me personally. As for many different content material creators on the market, picture modifying and character consistency on the brand new Gemini 2.5 Flash Picture will show to be a game-changer.
We often strive our fingers on such new AI fashions to check the bounds of their capabilities. So, ensure that to remain tuned to this house to be up to date with the most recent on the planet of AI.
Technical content material strategist and communicator with a decade of expertise in content material creation and distribution throughout nationwide media, Authorities of India, and personal platforms
Login to proceed studying and revel in expert-curated content material.
Welcome to Imtheai, your trusted source for everything related to Artificial Intelligence. Our mission is to explore, simplify, and share the transformative power of AI in a way that empowers individuals, businesses, and communities to embrace the future of technology.