Use the Gemini 3 Pro Image API to create character design sheets to ensure visual consistency throughout the video.
Prompt Best Practices
Before writing character descriptions and generating prompts, please first read the docs/nano-banana.md section starting at line 365 of Prompting guide and strategies to learn the best practices for Gemini image generation.
Core Principles:
"Describe the scene, don't just list keywords. A narrative, descriptive paragraph will almost always produce a better, more coherent image than a list of disconnected words."
Character Description Writing Guide
When writing character description , please follownarrative-style writing:
✅ Recommended:
"A woman in her early twenties, slender, with a pair of clear almond-shaped eyes on an oval face, and a hint of melancholy when her willow-leaf eyebrows slightly frown. She wears a pale cyan embroidered silk skirt, with a matching-color ribbon tied at the waist, appearing dignified yet lively."
❌ Avoid:
"20 years old, female, almond-shaped eyes, willow-leaf eyebrows, cyan skirt"
Key Points:
- Describe appearance, clothing, and temperament in coherent paragraphs
- Include age, physique, facial features, and clothing details
- May add hints of the character's temperament or emotions
Workflow
-
Load the project script
- If no project name is specified, ask the user
- From
projects/{项目名}/scripts/load the script JSON - List the characters that do not have a
character_sheetpath
-
Generate character designs
- For each character:
- Build a detailed prompt based on the description
- Run
.claude/skills/generate-characters/scripts/generate_character.py - Save to
projects/{项目名}/characters/
- For each character:
-
Review checkpoint
- Show each generated character image
- Ask the user whether to approve or regenerate
- Allow adjustment of the description
-
Update the script
- Update the
character_sheetpath in the script JSON - Save the updated script
- Update the
Character Design Prompt Template
一张专业的人物设计参考图,{项目 style}。
人物「[人物名称]」的三视图设计稿。[人物描述 - 叙事式段落]
三个等比例全身像水平排列在纯净浅灰背景上:左侧正面、中间四分之三侧面、右侧纯侧面轮廓。柔和均匀的摄影棚照明,无强烈阴影。
The art style is determined by the project's
stylefield, and does not use fixed "comic/anime" descriptions.
API Usage
Use lib/gemini_client.py:
from lib.gemini_client import GeminiClient
client = GeminiClient()
image = client.generate_image(
prompt=character_prompt,
aspect_ratio="9:16",
output_path=f"projects/{项目名}/characters/{人物名}.png"
)