Spaces:
Sleeping
Sleeping
Quick Start Guide
Get up and running with Character Forge in 5 minutes!
Step 1: Get Your API Key
- Visit https://aistudio.google.com/app/apikey
- Sign in with your Google account
- Click "Create API Key" β "Create API key in new project"
- Copy your key (starts with
AIzaSy...) - Keep it safe and secret!
Cost: ~$0.03 per image | Free tier available
Step 2: Choose Your Installation
Option A: Local Installation (Recommended)
Windows:
# Install
install.bat
# Set your API key
set GEMINI_API_KEY=your-key-here
# Run
start.bat
Linux/Mac:
# Install
chmod +x install.sh
./install.sh
# Set your API key
export GEMINI_API_KEY=your-key-here
# Run
chmod +x start.sh
./start.sh
Open browser: http://localhost:8501
Option B: HuggingFace Spaces (Online)
- Go to https://huggingface.co/spaces
- Click "Create new Space"
- Upload Character Forge files
- Add API key in Repository Secrets
- Launch!
See: HUGGINGFACE_DEPLOYMENT.md for detailed instructions
Step 3: Create Your First Character Sheet
- Open the app (localhost:8501 or your HF Space)
- Click "π₯ Character Forge" in the sidebar
- Upload a clear photo (face or full body)
- Click "Generate Character Sheet"
- Wait 2-3 minutes
- Download your complete character sheet!
Result: 5 professionally composed views of your character
Step 4: Use Your Character Sheet
Your character sheet can be used for:
- β Consistent character generation in new scenes
- β Multi-character compositions
- β Animation reference
- β Game development
- β Storyboarding
Features Overview
π₯ Character Forge
Create complete character sheets from one image
- Upload 1 image β Get 5 views
- Front/side faces + front/side/back body
- Auto-composited into single sheet
- 2-3 minutes total time
π¬ Composition Assistant
Smart multi-image composition
- Upload 1-3 images
- Auto-detection of image types
- AI-generated composition prompts
- Professional results
πΈ Standard Interface
Direct image generation
- Text-to-image
- Image-to-image
- Multiple aspect ratios
- Temperature control
π Library
Save and organize your assets
- Characters
- Backgrounds
- Styles
- Quick reuse
Tips for Success
For Character Sheets
β DO:
- Use clear, well-lit photos
- Front-facing works best
- Simple backgrounds preferred
- High resolution helps
β DON'T:
- Use blurry images
- Too much background clutter
- Extreme angles
- Multiple people in frame
For Best Quality
Temperature Settings:
- 0.0-0.3: Consistent, follows prompt closely
- 0.4-0.6: Balanced (recommended)
- 0.7-1.0: Creative, more variation
Prompts:
- Be specific and descriptive
- Include style keywords ("photorealistic", "digital art")
- Mention lighting and composition
- Add detail about mood and atmosphere
Cost Management
Optimize your usage:
- Preview before generating
- Use lower temperature for consistency (fewer retries)
- Batch similar tasks together
- Save good results to library for reuse
Typical costs with Gemini API:
- Single image: ~$0.03
- Character sheet: ~$0.15 (5 images)
- Composition: ~$0.03-0.06 (1-2 images)
Common Use Cases
Game Development
- Create character sheets for all NPCs
- Generate environment backgrounds
- Create texture variations
- Compose characters into scenes
Animation
- Generate character reference sheets
- Create background art
- Develop style references
- Storyboard scene composition
Creative Projects
- Illustrate stories
- Concept art development
- Visual worldbuilding
- Character design iteration
Troubleshooting
"API Key Not Set"
Solution:
- Set environment variable before running
- OR enter key in sidebar when app starts
- OR use HF Spaces Repository Secrets
"Generation Failed"
Possible causes:
- Content policy violation (try rephrasing)
- Rate limit (wait a moment)
- Network issue (check connection)
- Invalid API key (verify it's correct)
Try:
- Rephrase your prompt
- Adjust temperature
- Try a different image
- Check API key is valid
"Slow Generation"
Normal timing:
- Single image: 10-30 seconds
- Character sheet: 2-3 minutes
- Composition: 20-60 seconds
If slower:
- Check internet connection
- Verify API quota not exceeded
- Try during off-peak hours
Port Already in Use
Solution:
# Kill existing process
# Windows:
taskkill /IM streamlit.exe /F
# Linux/Mac:
pkill -f streamlit
Or edit app.py to use different port.
Next Steps
Now that you're set up:
- β Generate your first character sheet
- β Try the composition assistant
- β Experiment with different temperatures
- β Build your asset library
- β Integrate into your workflow
Need Help?
- Documentation: See
/docsfolder - Examples: Check the workflow examples
- Issues: Report on GitHub
- API Help: https://ai.google.dev/
Resources
- Gemini API Docs: https://ai.google.dev/
- Streamlit Docs: https://docs.streamlit.io/
- HuggingFace Spaces: https://huggingface.co/docs/hub/spaces
Happy Creating! π¨