Transform your written stories into stunning visual manga or comic book pages using Google's Gemini 2.5 Flash Image API!
Built for the Nano Banana Hackathon 🍌
- Multi-Style Generation: Choose between Japanese manga or American comic book styles
- Character Consistency: AI generates character reference sheets and maintains visual consistency across panels
- Progressive Display: See character designs first, then comic pages as they're generated
- State Persistence: Your work is automatically saved - refresh without losing progress
- Create Shareable Images: Generate social media-ready composite images combining panels and character designs
- Download Support: Download individual panels or complete comic pages
- Smart Story Processing: Automatically analyzes stories, identifies characters, and creates optimal panel layouts
- Frontend: Next.js 15 with TypeScript and Tailwind CSS v4
- AI Model: Gemini 2.5 Flash Image
- Storage: Hybrid localStorage (text) + IndexedDB (images) for state persistence
- Image Export: HTML2Canvas for social media composite generation
- Deployment: AWS Amplify Gen 2
pnpm install- Visit Google AI Studio
- Sign in with your Google account
- Create a new API key
- Copy the API key
cp .env.local.example .env.localEdit .env.local and add your API key:
GOOGLE_AI_API_KEY=your_actual_api_key_here
pnpm devOpen http://localhost:8000 in your browser.
- Story Analysis: Gemini analyzes your narrative to extract characters, settings, themes, and emotional arcs
- Character Design: Generates consistent character reference sheets with detailed visual descriptions
- Comic Layout Plan: Intelligently breaks your story into sequential panels with scene descriptions and dialogue
- Panel Generation: Creates manga/comic panels while maintaining character consistency using reference sheets
- Create Shareable Image: Combine panels and character designs into a 1200x1200px social media-ready image
- Choose your preferred style (Manga or Comic)
- Paste your story (max 500 words)
- Click "Generate Comic"
- Watch as the AI progressively:
- Analyzes your story structure
- Creates character reference sheets
- Plans the comic layout
- Generates individual panels
- Download individual panels or create a shareable composite image
- Push your code to GitHub
- Connect your GitHub repo to AWS Amplify
- Add environment variable
GOOGLE_AI_API_KEYin Amplify console - Deploy automatically on push
Best Results:
- 200-500 words
- Clear character descriptions
- Simple, focused plots
- Dialogue-heavy scenes work well
Avoid:
- Very complex plots with many characters
- Stories requiring specific visual references
- Adult or inappropriate content
"Failed to generate character references"
- Check API key is correct
- Ensure you haven't exceeded rate limits
- Try again in a few minutes
"Story too long"
- Reduce story to 500 words or less
- Focus on key scenes and dialogue
Images not displaying
- Check browser console for errors
- Ensure stable internet connection
- Try refreshing the page
Feel free to submit issues and enhancement requests!
MIT License - feel free to use this for your own projects.