I haven’t been too lively in utilizing AI to generate photos. Principally as a result of not one of the AI instruments thus far are capable of ship the extent of high quality I search in my photos. And so, the onus of producing photos for my blogs principally 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 technology mannequin from the home of Gemini known as. Greater than a picture technology, 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 photos 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 nicely, I personally know a dozen AI fanatics who will likely be past excited to present it a attempt. In case you’re one such aficionado of AI picture technology, right here is all you want 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 technology and modifying mannequin by Google. It comes as an replace to the a lot hailed Gemini 2.0 Flash Picture picture technology 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 photos 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 photos.”
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 photos will relate to this. Particular person picture prompts often serve you nicely. However as quickly as you need a specific component proven as it’s throughout a set of photos, virtually 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 totally different environments, showcase a single product from a number of angles in new settings, or generate constant model property, all whereas preserving the topic.”
Has it nailed it? Discover out shortly in my hands-on experiment with the mannequin.
Immediate primarily based picture modifying
That is very like “photoshopping” a selected component in/ out of a picture, however via 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 individual from a photograph,” and way more, as Google claims.
The exact native edits with pure language prompts make it a robust AI mannequin, supplied it does it nicely. Don’t you are worried. We will it attempt 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 photos” as per Google, which principally means you possibly can fuse photos with a single immediate now. Put an individual who missed the occasion in a bunch photograph, place an object right into a scene, or another use you possibly can consider. All with a easy immediate.
Fingers-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 actual 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 skill 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 through the Gemini app or web site for particular person customers.
For Particular person Customers
You may merely obtain the app in your cellphone, or go to gemini.google.com and entry the mannequin by choosing 2.5 Flash on the prime and clicking on “Create Photos” beneath the Instruments part.
For Builders
Builders can entry the identical via Gemini API and Google AI Studio, whereas enterprise shoppers can entry the device via Vertex AI.
For entry via 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 could have PIL (Pillow) put in for picture processing:
pip set up google-generativeai pillow
This command will import all required libraries at the beginning of your script for easy execution.
2. Authenticate Your API Entry
Arrange authentication by exporting your API key (if required) as an setting variable or authenticating through cloud id suppliers, so the genai SDK can entry Google’s Generative AI endpoints:
import os
os.environ["GOOGLE_API_KEY"] = ""
Guarantee that your API account is lively and has adequate 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 technology methodology:
from google import genai
shopper = genai.Consumer()
immediate = "Create an image of a nano banana dish in a flowery 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 via 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 shouldn't be None:
print(half.textual content)
elif half.inline_data shouldn't be None:
picture = Picture.open(BytesIO(half.inline_data.knowledge))
picture.save("generated_image.png")
For entry via Google AI Studio, merely use the “construct mode” on Google AI Studio right here. As soon as on the platform, you possibly can merely enter a immediate to design the form of picture technology/ modifying app primarily based on Gemini 2.5 Flash Picture you need. Suppose face-swap or clothe-swap.
Gemini Flash 2.5 Picture Fingers-on
Since AI picture technology utilizing prompts is fairly easy, I made a decision to attempt the brand new Gemini Flash 2.5 Picture throughout its USPs, apart from, after all, primary picture technology. Take a look at the outcomes for your self:
1. Producing new photos
Listed below are two photos I generated utilizing Gemini 2.5 Professional Flash. One among a 25-year outdated 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 light-weight 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 an everyday 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 photos, correct depictions of the immediate, and the truth that I by no means talked about within the immediate to make the pictures too sensible.
2. Merging Photos
For consistency, I performed round with these two photos for the remainder of assessments. So I requested the mannequin to merge the 2 photos of the boy and the canine in a scenic background. Right here is the immediate:
Immediate: present the boy and the canine taking part in in an enormous open subject in opposition to the backdrop of a river flowing in a valley and snow-capped mountains on the opposite aspect of the river
Output:
It took a while for the AI mannequin to search out its technique to the appropriate 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 searching for. However as soon as I did, boy was I impressed! Every little thing 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 Enhancing
After picture technology 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 attempt. It appears evident that Google has labored massively on the nano-banana, particularly within the areas the place it highlights it to excel.
4. Sustaining Character Consistency
Onto the hardest half for most AI fashions. Truthfully, I used to be fairly sceptical about this one USP. So naturally, I used to be additionally most excited to attempt it out. I requested the mannequin to alter your entire setting within the image to that of a seaside. Right here is the immediate:
Immediate: present the boy and the canine working as they’re in a seaside as an alternative of the present setting. the boy is now sporting shorts and a vest, and has a tattoo throughout his left-arm
Output:
Nothing wanting 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 outcome, the brand new picture mannequin was capable of replicate the small print of the boy and the canine with virtually full accuracy. For those who look carefully, the slight distinction that you’ll discover will likely be that within the boy’s coiffure. Relaxation the whole lot appears to be like virtually precisely much like me as within the earlier setting. I even tried the “tattoo on one-arm” concept to see how Gemini executes it. All I can say is Kudos to the mannequin for a job nicely performed!
To check Gemini 2.5 Flash Picture on an app for repeated picture technology and modifying, we used the next immediate on Google AI Studio’s “construct mode”
Immediate: Create a Strive on App, the place customers can add their photos and take a look at numerous garments to see how they give the impression of being in them.
With a single collection 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 skill of the mannequin. I can foresee n-number of eventualities 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 attempt our arms on such new AI fashions to check the boundaries of their capabilities. So, be sure 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 luxuriate in expert-curated content material.