실제로 작동하는 NanoBanana 이미지 생성 프롬프트 템플릿
Source: Dev.to

토큰을 낭비하는 것과 완벽한 이미지를 얻는 것의 차이점? 구글이 이미 검증한 입증된 패턴을 사용하는 것입니다.
저는 구글의 공식 이미지 생성 문서를 방금 발견했는데, 여기에는 전투에서 검증된 프롬프트 템플릿이 가득합니다. 이론이 아니라, 그들이 예시에서 실제로 사용하는 정확한 패턴이며, Python, JavaScript, Go, Java, 그리고 REST에 대한 작동 코드 샘플까지 포함되어 있습니다.
Google’s docs specifically mention using photography terms like “85mm portrait lens” and “golden hour light” to guide the model toward photorealistic results.
구글 문서에서는 모델이 사진처럼 사실적인 결과를 내도록 “85mm 인물 렌즈”, “골든 아워 조명”과 같은 사진 용어를 사용하라고 명시하고 있습니다.
7 핵심 템플릿
1. 포토리얼리즘 사진 공식
템플릿
A photorealistic [shot type] of [subject], [action or expression], set in [environment].
The scene is illuminated by [lighting description], creating a [mood] atmosphere.
Captured with a [camera/lens details], emphasizing [key textures and details].
The image should be in a [aspect ratio] format.
실제 작동 예시
A photorealistic close‑up portrait of an elderly Japanese ceramicist with deep, sun‑etched wrinkles and a warm, knowing smile. He is carefully inspecting a freshly glazed tea bowl. The setting is his rustic, sun‑drenched workshop. The scene is illuminated by soft, golden‑hour light streaming through a window, highlighting the fine texture of the clay. Captured with an 85mm portrait lens, resulting in a soft, blurred background (bokeh). The overall mood is serene and masterful. Vertical portrait orientation.
구글 문서에서는 모델이 사진처럼 사실적인 결과를 내도록 “85mm 인물 렌즈”, “골든 아워 조명”과 같은 사진 용어를 사용하라고 명시하고 있습니다.
2. 스타일화 일러스트 패턴
템플릿
A [style] sticker/illustration of a [subject], featuring [key characteristics] and a [color palette].
The design should have [line style] and [shading style].
The background must be [transparent/specific color].
작동 예시
A kawaii‑style sticker of a happy red panda wearing a tiny bamboo hat. It's munching on a green bamboo leaf. The design features bold, clean outlines, simple cel‑shading, and a vibrant color palette. The background must be white.
스타일 요소를 명확히 제시하세요—“굵은 외곽선”, “셀‑쉐이딩”, “활기찬 색상 팔레트”와 같이—“귀엽게 만들어라” 같은 모호한 형용사는 피합니다.
3. 텍스트 렌더링 템플릿 (이것이 가장 방대함)
템플릿
Create a [image type] for [brand/concept] with the text "[exact text]" in a [font style description].
The design should be [style description], with a [color scheme].
작동 예시
Create a modern, minimalist logo for a coffee shop called 'The Daily Grind'. The text should be in a clean, bold, sans‑serif font. The color scheme is black and white. Put the logo in a circle. Use a coffee bean in a clever way.
텍스트 렌더링은 대부분의 이미지 모델이 실패하는 영역이지만, 폰트 스타일과 배치를 구체적으로 지정하면 Gemini가 잘 처리합니다.
4. 제품 사진 공식
템플릿
A high‑resolution, studio‑lit product photograph of a [product description] on a [background surface].
The lighting is a [lighting setup] to [lighting purpose].
The camera angle is a [angle type] to showcase [specific feature].
Ultra‑realistic, with sharp focus on [key detail]. [Aspect ratio].
작동 예시
A high‑resolution, studio‑lit product photograph of a minimalist ceramic coffee mug in matte black, presented on a polished concrete surface. The lighting is a three‑point softbox setup designed to create soft, diffused highlights and eliminate harsh shadows. The camera angle is a slightly elevated 45‑degree shot to showcase its clean lines. Ultra‑realistic, with sharp focus on the steam rising from the coffee. Square image.
이 패턴은 전자상거래에 적합한 깔끔하고 전문적인 제품 사진을 일관되게 만들어 줍니다.
5. 미니멀리스트 디자인 템플릿
템플릿
A minimalist composition featuring a single [subject] positioned in the [location] of the frame.
The background is a vast, empty [color] canvas, creating significant negative space.
Soft, subtle lighting. [Aspect ratio].
작동 예시
A minimalist composition featuring a single, delicate red maple leaf positioned in the bottom‑right of the frame. The background is a vast, empty off‑white canvas, creating significant negative space for text. Soft, diffused lighting from the top left. Square image.
웹사이트 배경이나 프레젠테이션 슬라이드에 이상적인 디자인입니다.
on slides, or anywhere you need space for text overlay.
6. 순차적 아트 패턴
템플릿
Make a [number]‑panel comic in a [style description]. Put the character in a [type of scene].
(Insert your own working example here.)
7. 추상 개념 프롬프트
템플릿
An abstract representation of [concept] using [visual metaphor] and a [color scheme]. Emphasize [emotion or feeling] through [lighting/texture].
작업 예시
An abstract representation of “data flow” using a river of glowing binary code and a cool blue‑green color scheme. Emphasize calm efficiency through soft, diffused lighting and smooth, flowing textures.
이 일곱 가지 템플릿은 Google 문서에서 직접 발췌한 것입니다. 그대로 사용하거나 자리표시자를 여러분의 창의적 필요에 맞게 조정하세요—Google 모델은 제시된 정확한 용어에 반응하도록 학습되었습니다. 즐거운 프롬프트 작성 되세요! 🚀
작업 예시 (Sequential Art)
Make a 3 panel comic in a gritty, noir art style with high‑contrast black and white inks. Put the character in a humorous scene.
이 방법은 스타일 일관성을 유지하면서 스토리보드나 만화 시퀀스를 만드는 데 놀라울 정도로 효과적입니다.
실시간 정보 템플릿
템플릿
Make a simple but stylish graphic of [recent event/topic]
작업 예시
Make a simple but stylish graphic of last night's Arsenal game in the Champion's League
이 방법은 Gemini가 Google 검색을 통해 현재 정보를 기반으로 생성할 수 있기 때문에 작동합니다.
편집 템플릿 (게임 체인저)
Google의 문서에는 기존 이미지를 편집하기 위한 여러 패턴이 포함되어 있습니다:
요소 추가 / 제거
Using the provided image of [subject], please [add/remove/modify] [element] to/from the scene.
Ensure the change is [description of how the change should integrate].
인페인팅 (특정 부분 변경)
Using the provided image, change only the [specific element] to [new description].
Keep everything else in the image exactly the same, preserving the original style, lighting, and composition.
스타일 전이
Transform the provided photograph of [subject] into the artistic style of [artist/style].
Preserve the original composition but render it with [description of stylistic elements].
다중 이미지 합성
Create a new image by combining the elements from the provided images.
Take the [element from image 1] and place it with/on the [element from image 2].
The final image should be a [description of the final scene].
해상도 현실 점검
Google 문서에서 실제로 명시하고 있는 토큰 비용은 다음과 같습니다:
- Gemini 2.5 Flash: 1024 × 1024 – 1290 tokens (고정 요금)
- Gemini 3 Pro: 1K / 2K / 4K 옵션
- 1K: 1120 tokens
- 2K: 1120 tokens (1K와 동일한 가격 – 이것이 최적의 선택)
- 4K: 2000 tokens
문서에는 명시적으로 “2K images: 1120 tokens (same price as 1K)” 라고 적혀 있습니다 – 즉 2K 해상도는 사실상 무료 업그레이드입니다.
구현 현실
모든 템플릿은 모든 SDK에서 작동합니다. 아래는 사진 템플릿에 대한 Python 버전입니다:
from google import genai
from google.genai import types
client = genai.Client()
response = client.models.generate_content(
model="gemini-2.5-flash-image",
contents=(
"A photorealistic close‑up portrait of an elderly Japanese ceramicist "
"with deep, sun‑etched wrinkles and a warm, knowing smile. He is carefully "
"inspecting a freshly glazed tea bowl. The setting is his rustic, sun‑drenched "
"workshop. The scene is illuminated by soft, golden‑hour light streaming "
"through a window, highlighting the fine texture of the clay. Captured with "
"an 85mm portrait lens, resulting in a soft, blurred background (bokeh). "
"The overall mood is serene and masterful."
),
)
for part in response.parts:
if part.text is not None:
print(part.text)
elif part.inline_data is not None:
image = part.as_image()
image.save("generated_image.png")
핵심 요약
이것은 이론적인 패턴이 아니라 구글이 공식 문서에서 사용하는 정확한 템플릿이며, 작동하는 코드 예시와 검증된 결과를 포함합니다.
핵심 인사이트: 사진작가나 디자이너가 장면을 설명하듯이 서술하고, SEO를 위한 키워드 채우기처럼 하지 마세요.
- 이 검증된 템플릿으로 시작하세요.
- Gemini의 대화형 편집 기능을 활용해 반복 개선하세요.
그 결과는 추측에 비해 훨씬 저렴하고, 훨씬 더 신뢰할 수 있습니다.
