• Home
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
Thursday, June 11, 2026
newsaiworld
  • Home
  • Artificial Intelligence
  • ChatGPT
  • Data Science
  • Machine Learning
  • Crypto Coins
  • Contact Us
No Result
View All Result
  • Home
  • Artificial Intelligence
  • ChatGPT
  • Data Science
  • Machine Learning
  • Crypto Coins
  • Contact Us
No Result
View All Result
Morning News
No Result
View All Result
Home Data Science

Google’s Nano-Banana Simply Unlocked a New Period of Picture Technology

Admin by Admin
September 3, 2025
in Data Science
0
Kdn wijaya gemini nano banana scaled.png
0
SHARES
2
VIEWS
Share on FacebookShare on Twitter


nano-banana self portraitnano-banana self portrait
Picture by Writer | Gemini (nano-banana self portrait)

 

# Introduction

 
Picture technology with generative AI has change into a extensively used software for each people and companies, permitting them to immediately create their meant visuals without having any design experience. Basically, these instruments can speed up duties that will in any other case take a big period of time, finishing them in mere seconds.

With the development of expertise and competitors, many trendy, superior picture technology merchandise have been launched, similar to Steady Diffusion, Midjourney, DALL-E, Imagen, and plenty of extra. Every affords distinctive benefits to its customers. Nonetheless, Google not too long ago made a big impression on the picture technology panorama with the discharge of Gemini 2.5 Flash Picture (or nano-banana).

Nano-banana is Google’s superior picture technology and enhancing mannequin, that includes capabilities like lifelike picture creation, a number of picture mixing, character consistency, focused prompt-based transformations, and public accessibility. The mannequin affords far better management than earlier fashions from Google or its opponents.

This text will discover nano-banana’s potential to generate and edit pictures. We are going to exhibit these options utilizing the Google AI Studio platform and the Gemini API inside a Python surroundings.

Let’s get into it.

 

# Testing the Nano-Banana Mannequin

 
To observe this tutorial, you will have to register for a Google account and sign up to Google AI Studio. Additionally, you will want to accumulate an API key to make use of the Gemini API, which requires a paid plan as there isn’t any free tier accessible.

For those who choose to make use of the API with Python, ensure to put in the Google Generative AI library with the next command:

 

As soon as your account is ready up, let’s discover easy methods to use the nano-banana mannequin.

First, navigate to Google AI Studio and choose the Gemini-2.5-flash-image-preview mannequin, which is the nano-banana mannequin we will probably be utilizing.

 
Nano Banana AINano Banana AI
 

With the mannequin chosen, you can begin a brand new chat to generate a picture from a immediate. As Google suggests, a basic precept for getting the most effective outcomes is to describe the scene, not simply record key phrases. This narrative method, describing the picture you envision, sometimes produces superior outcomes.

Within the AI Studio chat interface, you will see a platform just like the one beneath the place you may enter your immediate.

 
Nano Banana AINano Banana AI
 

We are going to use the next immediate to generate a photorealistic picture for our instance.

A photorealistic close-up portrait of an Indonesian batik artisan, arms stained with wax, tracing a flowing motif on indigo material with a canting pen. She works at a picket desk in a breezy veranda; folded textiles and dye vats blur behind her. Late-morning window gentle rakes throughout the material, revealing wonderful wax strains and the grain of the teak. Captured on an 85 mm at f/2 for light separation and creamy bokeh. The general temper is concentrated, tactile, and proud.

 

The generated picture is proven beneath:

 
Nano Banana AINano Banana AI
 

As you may see, the picture generated is lifelike and faithfully adheres to the given immediate. For those who choose the Python implementation, you should utilize the next code to create the picture:

from google import genai
from google.genai import sorts
from PIL import Picture
from io import BytesIO
from IPython.show import show 

# Change 'YOUR-API-KEY' together with your precise API key
api_key = 'YOUR-API-KEY'
shopper = genai.Consumer(api_key=api_key)

immediate = "A photorealistic close-up portrait of an Indonesian batik artisan, arms stained with wax, tracing a flowing motif on indigo material with a canting pen. She works at a picket desk in a breezy veranda; folded textiles and dye vats blur behind her. Late-morning window gentle rakes throughout the material, revealing wonderful wax strains and the grain of the teak. Captured on an 85 mm at f/2 for light separation and creamy bokeh. The general temper is concentrated, tactile, and proud."

response = shopper.fashions.generate_content(
    mannequin="gemini-2.5-flash-image-preview",
    contents=immediate,
)

image_parts = [
    part.inline_data.data
    for part in response.candidates[0].content material.elements
    if half.inline_data
]

if image_parts:
    picture = Picture.open(BytesIO(image_parts[0]))
    # picture.save('your_image.png')
    show(picture)

 

For those who present your API key and the specified immediate, the Python code above will generate the picture.

We’ve seen that the nano-banana mannequin can generate a photorealistic picture, however its strengths prolong additional. As talked about beforehand, nano-banana is especially highly effective for picture enhancing, which we’ll discover subsequent.

Let’s strive prompt-based picture enhancing with the picture we simply generated. We are going to use the next immediate to barely alter the artisan’s look:

Utilizing the offered picture, place a pair of skinny studying glasses gently on the artisan’s nostril whereas she attracts the wax strains. Guarantee reflections look lifelike and the glasses sit naturally on her face with out obscuring her eyes.

 

The ensuing picture is proven beneath:

 
Nano Banana AINano Banana AI
 

The picture above is an identical to the primary one, however with glasses added to the artisan’s face. This demonstrates how nano-banana can edit a picture based mostly on a descriptive immediate whereas sustaining general consistency.

To do that with Python, you may present your base picture and a brand new immediate utilizing the next code:

from PIL import Picture

# This code assumes 'shopper' has been configured from the earlier step
base_image = Picture.open('/path/to/your/photograph.png')
edit_prompt = "Utilizing the offered picture, place a pair of skinny studying glasses gently on the artisan's nostril..."


response = shopper.fashions.generate_content(
    mannequin="gemini-2.5-flash-image-preview",
    contents=[edit_prompt, base_image])

 

Subsequent, let’s take a look at character consistency by producing a brand new scene the place the artisan is trying instantly on the digital camera and smiling:

Generate a brand new and photorealistic picture utilizing the offered picture as a reference for id: the identical batik artisan now trying up on the digital camera with a relaxed smile, seated on the similar picket desk. Medium close-up, 85 mm look with delicate veranda gentle, background jars subtly blurred.

 

The picture result’s proven beneath.

 
Nano Banana AINano Banana AI
 

We have efficiently modified the scene whereas sustaining character consistency. To check a extra drastic change, let’s use the next immediate to see how nano-banana performs.

Create a product-style picture utilizing the offered picture as id reference: the identical artisan presenting a completed indigo batik material, arms prolonged towards the digital camera. Tender, even window gentle, 50 mm look, impartial background litter.

 

The result’s proven beneath.

 
Nano Banana AINano Banana AI
 

The ensuing picture exhibits a very totally different scene however maintains the identical character. This highlights the mannequin’s potential to realistically produce diverse content material from a single reference picture.

Subsequent, let’s strive picture model switch. We are going to use the next immediate to vary the photorealistic picture right into a watercolor portray.

Utilizing the offered picture as id reference, recreate the scene as a fragile watercolor on cold-press paper: unfastened indigo washes for the fabric, delicate bleeding edges on the floral motif, pale umbers for the desk and background. Hold her pose holding the material, light smile, and spherical glasses; let the veranda recede into gentle granulation and visual paper texture.

 

The result’s proven beneath.

 
Nano Banana AINano Banana AI
 

The picture demonstrates that the model has been reworked into watercolor whereas preserving the topic and composition of the unique.

Lastly, we’ll strive picture fusion, the place we add an object from one picture into one other. For this instance, I’ve generated a picture of a girl’s hat utilizing nano-banana:

 
Nano Banana AINano Banana AI
 

Utilizing the picture of the hat, we’ll now place it on the artisan’s head with the next immediate:

Transfer the identical girl and pose outside in open shade and place the straw hat from the product picture on her head. Align the crown and brim to the pinnacle realistically; bow over her proper ear (digital camera left), ribbon tails drifting softly with gravity. Use delicate sky gentle as key with a delicate rim from the brilliant background. Keep true straw and lace texture, pure pores and skin tone, and a plausible shadow from the brim over the brow and high of the glasses. Hold the batik material and her arms unchanged. Hold the watercolor model unchanged.

 

This course of merges the hat photograph with the bottom picture to generate a brand new picture, with minimal modifications to the pose and general model. In Python, use the next code:

from PIL import Picture

# This code assumes 'shopper' has been configured from step one
base_image = Picture.open('/path/to/your/photograph.png')
hat_image = Picture.open('/path/to/your/hat.png')
fusion_prompt = "Transfer the identical girl and pose outside in open shade and place the straw hat..."

response = shopper.fashions.generate_content(
    mannequin="gemini-2.5-flash-image-preview",
    contents=[fusion_prompt, base_image, hat_image])

 

For greatest outcomes, use a most of three enter pictures. Utilizing extra could cut back output high quality.

That covers the fundamentals of utilizing the nano-banana mannequin. For my part, this mannequin excels when you’ve got present pictures that you just wish to rework or edit. It is particularly helpful for sustaining consistency throughout a collection of generated pictures.

Strive it for your self and do not be afraid to iterate, as you usually will not get the proper picture on the primary strive.

 

# Wrapping Up

 
Gemini 2.5 Flash Picture, or nano-banana, is the most recent picture technology and enhancing mannequin from Google. It boasts highly effective capabilities in comparison with earlier picture technology fashions. On this article, we explored easy methods to use nano-banana to generate and edit pictures, highlighting its options for sustaining consistency and making use of stylistic modifications.

I hope this has been useful!
 
 

Cornellius Yudha Wijaya is an information science assistant supervisor and information author. Whereas working full-time at Allianz Indonesia, he likes to share Python and information suggestions by way of social media and writing media. Cornellius writes on quite a lot of AI and machine studying subjects.

READ ALSO

Native Agentic Programming on the Low-cost: Claude Code + Ollama + Gemma4

SpaceX’s Valuation Assumes Years of Excellent Execution, The Margin for Error Is Razor-Skinny |


nano-banana self portraitnano-banana self portrait
Picture by Writer | Gemini (nano-banana self portrait)

 

# Introduction

 
Picture technology with generative AI has change into a extensively used software for each people and companies, permitting them to immediately create their meant visuals without having any design experience. Basically, these instruments can speed up duties that will in any other case take a big period of time, finishing them in mere seconds.

With the development of expertise and competitors, many trendy, superior picture technology merchandise have been launched, similar to Steady Diffusion, Midjourney, DALL-E, Imagen, and plenty of extra. Every affords distinctive benefits to its customers. Nonetheless, Google not too long ago made a big impression on the picture technology panorama with the discharge of Gemini 2.5 Flash Picture (or nano-banana).

Nano-banana is Google’s superior picture technology and enhancing mannequin, that includes capabilities like lifelike picture creation, a number of picture mixing, character consistency, focused prompt-based transformations, and public accessibility. The mannequin affords far better management than earlier fashions from Google or its opponents.

This text will discover nano-banana’s potential to generate and edit pictures. We are going to exhibit these options utilizing the Google AI Studio platform and the Gemini API inside a Python surroundings.

Let’s get into it.

 

# Testing the Nano-Banana Mannequin

 
To observe this tutorial, you will have to register for a Google account and sign up to Google AI Studio. Additionally, you will want to accumulate an API key to make use of the Gemini API, which requires a paid plan as there isn’t any free tier accessible.

For those who choose to make use of the API with Python, ensure to put in the Google Generative AI library with the next command:

 

As soon as your account is ready up, let’s discover easy methods to use the nano-banana mannequin.

First, navigate to Google AI Studio and choose the Gemini-2.5-flash-image-preview mannequin, which is the nano-banana mannequin we will probably be utilizing.

 
Nano Banana AINano Banana AI
 

With the mannequin chosen, you can begin a brand new chat to generate a picture from a immediate. As Google suggests, a basic precept for getting the most effective outcomes is to describe the scene, not simply record key phrases. This narrative method, describing the picture you envision, sometimes produces superior outcomes.

Within the AI Studio chat interface, you will see a platform just like the one beneath the place you may enter your immediate.

 
Nano Banana AINano Banana AI
 

We are going to use the next immediate to generate a photorealistic picture for our instance.

A photorealistic close-up portrait of an Indonesian batik artisan, arms stained with wax, tracing a flowing motif on indigo material with a canting pen. She works at a picket desk in a breezy veranda; folded textiles and dye vats blur behind her. Late-morning window gentle rakes throughout the material, revealing wonderful wax strains and the grain of the teak. Captured on an 85 mm at f/2 for light separation and creamy bokeh. The general temper is concentrated, tactile, and proud.

 

The generated picture is proven beneath:

 
Nano Banana AINano Banana AI
 

As you may see, the picture generated is lifelike and faithfully adheres to the given immediate. For those who choose the Python implementation, you should utilize the next code to create the picture:

from google import genai
from google.genai import sorts
from PIL import Picture
from io import BytesIO
from IPython.show import show 

# Change 'YOUR-API-KEY' together with your precise API key
api_key = 'YOUR-API-KEY'
shopper = genai.Consumer(api_key=api_key)

immediate = "A photorealistic close-up portrait of an Indonesian batik artisan, arms stained with wax, tracing a flowing motif on indigo material with a canting pen. She works at a picket desk in a breezy veranda; folded textiles and dye vats blur behind her. Late-morning window gentle rakes throughout the material, revealing wonderful wax strains and the grain of the teak. Captured on an 85 mm at f/2 for light separation and creamy bokeh. The general temper is concentrated, tactile, and proud."

response = shopper.fashions.generate_content(
    mannequin="gemini-2.5-flash-image-preview",
    contents=immediate,
)

image_parts = [
    part.inline_data.data
    for part in response.candidates[0].content material.elements
    if half.inline_data
]

if image_parts:
    picture = Picture.open(BytesIO(image_parts[0]))
    # picture.save('your_image.png')
    show(picture)

 

For those who present your API key and the specified immediate, the Python code above will generate the picture.

We’ve seen that the nano-banana mannequin can generate a photorealistic picture, however its strengths prolong additional. As talked about beforehand, nano-banana is especially highly effective for picture enhancing, which we’ll discover subsequent.

Let’s strive prompt-based picture enhancing with the picture we simply generated. We are going to use the next immediate to barely alter the artisan’s look:

Utilizing the offered picture, place a pair of skinny studying glasses gently on the artisan’s nostril whereas she attracts the wax strains. Guarantee reflections look lifelike and the glasses sit naturally on her face with out obscuring her eyes.

 

The ensuing picture is proven beneath:

 
Nano Banana AINano Banana AI
 

The picture above is an identical to the primary one, however with glasses added to the artisan’s face. This demonstrates how nano-banana can edit a picture based mostly on a descriptive immediate whereas sustaining general consistency.

To do that with Python, you may present your base picture and a brand new immediate utilizing the next code:

from PIL import Picture

# This code assumes 'shopper' has been configured from the earlier step
base_image = Picture.open('/path/to/your/photograph.png')
edit_prompt = "Utilizing the offered picture, place a pair of skinny studying glasses gently on the artisan's nostril..."


response = shopper.fashions.generate_content(
    mannequin="gemini-2.5-flash-image-preview",
    contents=[edit_prompt, base_image])

 

Subsequent, let’s take a look at character consistency by producing a brand new scene the place the artisan is trying instantly on the digital camera and smiling:

Generate a brand new and photorealistic picture utilizing the offered picture as a reference for id: the identical batik artisan now trying up on the digital camera with a relaxed smile, seated on the similar picket desk. Medium close-up, 85 mm look with delicate veranda gentle, background jars subtly blurred.

 

The picture result’s proven beneath.

 
Nano Banana AINano Banana AI
 

We have efficiently modified the scene whereas sustaining character consistency. To check a extra drastic change, let’s use the next immediate to see how nano-banana performs.

Create a product-style picture utilizing the offered picture as id reference: the identical artisan presenting a completed indigo batik material, arms prolonged towards the digital camera. Tender, even window gentle, 50 mm look, impartial background litter.

 

The result’s proven beneath.

 
Nano Banana AINano Banana AI
 

The ensuing picture exhibits a very totally different scene however maintains the identical character. This highlights the mannequin’s potential to realistically produce diverse content material from a single reference picture.

Subsequent, let’s strive picture model switch. We are going to use the next immediate to vary the photorealistic picture right into a watercolor portray.

Utilizing the offered picture as id reference, recreate the scene as a fragile watercolor on cold-press paper: unfastened indigo washes for the fabric, delicate bleeding edges on the floral motif, pale umbers for the desk and background. Hold her pose holding the material, light smile, and spherical glasses; let the veranda recede into gentle granulation and visual paper texture.

 

The result’s proven beneath.

 
Nano Banana AINano Banana AI
 

The picture demonstrates that the model has been reworked into watercolor whereas preserving the topic and composition of the unique.

Lastly, we’ll strive picture fusion, the place we add an object from one picture into one other. For this instance, I’ve generated a picture of a girl’s hat utilizing nano-banana:

 
Nano Banana AINano Banana AI
 

Utilizing the picture of the hat, we’ll now place it on the artisan’s head with the next immediate:

Transfer the identical girl and pose outside in open shade and place the straw hat from the product picture on her head. Align the crown and brim to the pinnacle realistically; bow over her proper ear (digital camera left), ribbon tails drifting softly with gravity. Use delicate sky gentle as key with a delicate rim from the brilliant background. Keep true straw and lace texture, pure pores and skin tone, and a plausible shadow from the brim over the brow and high of the glasses. Hold the batik material and her arms unchanged. Hold the watercolor model unchanged.

 

This course of merges the hat photograph with the bottom picture to generate a brand new picture, with minimal modifications to the pose and general model. In Python, use the next code:

from PIL import Picture

# This code assumes 'shopper' has been configured from step one
base_image = Picture.open('/path/to/your/photograph.png')
hat_image = Picture.open('/path/to/your/hat.png')
fusion_prompt = "Transfer the identical girl and pose outside in open shade and place the straw hat..."

response = shopper.fashions.generate_content(
    mannequin="gemini-2.5-flash-image-preview",
    contents=[fusion_prompt, base_image, hat_image])

 

For greatest outcomes, use a most of three enter pictures. Utilizing extra could cut back output high quality.

That covers the fundamentals of utilizing the nano-banana mannequin. For my part, this mannequin excels when you’ve got present pictures that you just wish to rework or edit. It is particularly helpful for sustaining consistency throughout a collection of generated pictures.

Strive it for your self and do not be afraid to iterate, as you usually will not get the proper picture on the primary strive.

 

# Wrapping Up

 
Gemini 2.5 Flash Picture, or nano-banana, is the most recent picture technology and enhancing mannequin from Google. It boasts highly effective capabilities in comparison with earlier picture technology fashions. On this article, we explored easy methods to use nano-banana to generate and edit pictures, highlighting its options for sustaining consistency and making use of stylistic modifications.

I hope this has been useful!
 
 

Cornellius Yudha Wijaya is an information science assistant supervisor and information author. Whereas working full-time at Allianz Indonesia, he likes to share Python and information suggestions by way of social media and writing media. Cornellius writes on quite a lot of AI and machine studying subjects.

Tags: EraGenerationGooglesImageNanoBananaUnlocked

Related Posts

Kdn shittu local agentic programming on the cheap.png
Data Science

Native Agentic Programming on the Low-cost: Claude Code + Ollama + Gemma4

June 10, 2026
Spacex xai ipo merger smartphone announcement.jpg1 1.png
Data Science

SpaceX’s Valuation Assumes Years of Excellent Execution, The Margin for Error Is Razor-Skinny |

June 9, 2026
Kdn why do llms corrupt your documents when you delegate feature.png
Data Science

Why Do LLMs Corrupt Your Paperwork When You Delegate?

June 9, 2026
Github copilot pricing tiers ai credits 2026.png
Data Science

GitHub Copilot Simply Acquired Costly for the Customers Who Used It Most |

June 8, 2026
Kdn what the agentic era means for data science.png
Data Science

What the Agentic Period Means for Knowledge Science

June 7, 2026
Kdn 3 spacy tricks for efficient text processing entity recognition feature.png
Data Science

3 SpaCy Methods for Environment friendly Textual content Processing & Entity Recognition

June 7, 2026
Next Post
Generating moving graph video ezgif.com video to gif converter.gif

Stochastic Differential Equations and Temperature — NASA Local weather Information pt. 2

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

POPULAR NEWS

Gemini 2.0 Fash Vs Gpt 4o.webp.webp

Gemini 2.0 Flash vs GPT 4o: Which is Higher?

January 19, 2025
Chainlink Link And Cardano Ada Dominate The Crypto Coin Development Chart.jpg

Chainlink’s Run to $20 Beneficial properties Steam Amid LINK Taking the Helm because the High Creating DeFi Challenge ⋆ ZyCrypto

May 17, 2025
Image 100 1024x683.png

Easy methods to Use LLMs for Highly effective Computerized Evaluations

August 13, 2025
Blog.png

XMN is accessible for buying and selling!

October 10, 2025
0 3.png

College endowments be a part of crypto rush, boosting meme cash like Meme Index

February 10, 2025

EDITOR'S PICK

3070x1400 Pro Raf Blog Hero.png

Kraken Professional added to the Kraken referral program – earn rewards for inviting pals

April 25, 2025
Ead7201a cde5 49d7 ac93 38fff4057682 1.png

GENIUS is obtainable for buying and selling!

May 17, 2026
Kdn chugani feature engineering n8n feature.png

AI-Powered Characteristic Engineering with n8n: Scaling Information Science Intelligence

August 8, 2025
Screenshot 2025 12 29 at 10.46.22 am.jpg

Overcoming Nonsmoothness and Management Chattering in Nonconvex Optimum Management Issues

December 30, 2025

About Us

Welcome to News AI World, your go-to source for the latest in artificial intelligence news and developments. Our mission is to deliver comprehensive and insightful coverage of the rapidly evolving AI landscape, keeping you informed about breakthroughs, trends, and the transformative impact of AI technologies across industries.

Categories

  • Artificial Intelligence
  • ChatGPT
  • Crypto Coins
  • Data Science
  • Machine Learning

Recent Posts

  • Mastercard Launches AI Funds with Ripple and RLUSD
  • Methods to Prepare a Scoring Mannequin within the Age of Synthetic Intelligence
  • The way to Refactor Code with Claude Code
  • Home
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy

© 2024 Newsaiworld.com. All rights reserved.

No Result
View All Result
  • Home
  • Artificial Intelligence
  • ChatGPT
  • Data Science
  • Machine Learning
  • Crypto Coins
  • Contact Us

© 2024 Newsaiworld.com. All rights reserved.

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?