Generate Instagram carousel news and YouTube thumbnails based on the brief.
Workflow
Step 1: Brief Analysis
outputs/brief.mdRead- Extract key messages
- Check visual guide (carousel news slides, thumbnail text, color tone)
Step 2: Generate Carousel News
references/card-news-guide.mdReferencetemplates/card-news-prompt.mdLoad template- Organize key messages into 5-7 slides
- Call Nano Banana API
outputs/visuals/card-news/Save to folder
Step 3: Generate Thumbnail
references/thumbnail-guide.mdReferencetemplates/thumbnail-prompt.mdLoad template- Click-inducing thumbnail design
- Call Nano Banana API
outputs/visuals/thumbnail.pngSave as
Carousel News Specs
Composition
- Number of slides: 5-7장
- Size: 1080x1350px (Instagram portrait)
- Ratio: 4:5
Slide Structure
- Slide 1 (Cover): Title + hooking phrase
- Slides 2-6 (Body): Key points (1 slide = 1 point)
- Last slide (CTA): Encourage save/follow
Design Principles
- Large text (readability on mobile)
- Simple background
- Consistent color palette
- Use icons/illustrations
Thumbnail Specs
Size
- Resolution: 1280x720px
- Ratio: 16:9
Components
- Title text (3-5 words)
- Emphasis elements (arrows, circles, etc.)
- Person/product image (if applicable)
- Brand logo (optional)
Design Principles
- High contrast (stand out)
- Large text (visible on mobile)
- Emotion-evoking colors
- Clean composition
API Usage (Placeholder)
# 나노바나나 API 호출 예시
import requests
def generate_image(prompt: str, size: str = "1080x1350"):
"""
나노바나나 3.0 Pro API를 통해 이미지 생성
Args:
prompt: 이미지 생성 프롬프트
size: 이미지 크기 (1080x1350 카드뉴스, 1280x720 썸네일)
Returns:
생성된 이미지 URL
"""
# TODO: 실제 API 키 설정
API_KEY = "YOUR_NANOBANANA_API_KEY"
API_URL = "https://api.nanobanana.com/v3/generate"
response = requests.post(
API_URL,
headers={"Authorization": f"Bearer {API_KEY}"},
json={
"prompt": prompt,
"size": size,
"style": "professional",
"quality": "high"
}
)
return response.json()["image_url"]
Output
Carousel News
outputs/visuals/card-news/slide-01.pngoutputs/visuals/card-news/slide-02.png- ...
outputs/visuals/card-news/slide-07.png
Thumbnail
outputs/visuals/thumbnail.png
Reference Files
references/card-news-guide.md: Carousel news design guidereferences/thumbnail-guide.md: Thumbnail design guidetemplates/card-news-prompt.md: Carousel news prompt templatetemplates/thumbnail-prompt.md: Thumbnail prompt template