푸들푸들

[ComfyUI] Nano Banana(Gemini 2.5 Flash Image) 적용 본문

SELF-STUDY/AI

[ComfyUI] Nano Banana(Gemini 2.5 Flash Image) 적용

COCO_develop 2025. 9. 8. 16:41

Nano Banana를 ComfyUI에서 실행할 수 있는 workflow

https://github.com/ShmuelRonen/ComfyUI-NanoBanano

 

GitHub - ShmuelRonen/ComfyUI-NanoBanano: A ComfyUI custom node for Google's Gemini 2.5 Flash Image (aka "Nano Banana") model - t

A ComfyUI custom node for Google's Gemini 2.5 Flash Image (aka "Nano Banana") model - the state-of-the-art image generation and editing AI that went viral for its incredible quality a...

github.com

-> example_workflows/nano banano.json

custom_nodes에 Nanobanana 가져오기

git clone https://github.com/ShmuelRonen/ComfyUI-NanoBanano.git

 

https://aistudio.google.com/apikey

 

로그인 - Google 계정

이메일 또는 휴대전화

accounts.google.com

-> Gemini API 키 만들고 결제 설정까지 완료해야함(90일 무료)

쉘(teminal)에 환경변수 등록

export GOOGLE_API_KEY="발급받은키"
export GEMINI_API_KEY="$GOOGLE_API_KEY"

 

**오류

NANO BANANA OPERATION LOG Operation: 
GENERATE Reference Images: 0 
Batch Count: 1 
Temperature: 0.7 
Quality: high 
Aspect Ratio: 1:1 
Character Consistency: True 
Safety Filters: False 
Note: Output resolution determined by API (max ~1024px) 
Prompt: Generate a high-quality, photorealistic image of: A simple 512x512 abstract pattern. . in square format. Use the highest quality settings available.... 

google.genai not available, using requests fallback No images were generated. 
Check the log above for details.

-> NanoBanana가 google.genai 모듈을 못 찾아서 “requests fallback” 으로 내려가고, 그 경로에서 이미지 생성이 실패하는 상황

 

->ComfyUI 실행하는 가상환경(.venv)에서:

pip install -U google-genai google-generativeai requests pillow numpy

 

 

 

 

 

* (수채화 풍, 파스텔 톤, 흐르는 붓질, 손으로 그린 듯한 질감)

Reimagine the hero in a watercolor painting style, soft pastel tones, flowing brushstrokes, and a hand-painted texture.

 

*(16:9으로 확장, 전장을 거대한 폐허가 된 미래 도시 풍경)

Expand the canvas to a cinematic 16:9 frame, extending the battlefield into a vast ruined futuristic cityscape.

얼굴이 바뀜

 

* (갑옷에 푸른빛 에너지 라인, 방패에서 은은한 오라, 불꽃이 튀는 효과 배경)

Enhance the armor with glowing blue energy lines, make the shield emit a faint aura, and add sparks in the background.