A full-featured desktop application powered by Google Gemini AI that allows you to generate entire books page-by-page with plot direction, editing, and PDF export
| Feature | Description |
|---|---|
| 🧠 Gemini AI | Powered by Google Gemini 1.5 Flash |
| 🖼️ Tkinter GUI | Beautiful Python GUI |
| ✍️ Book Generation | Define title, genre, tone, plot points |
| 📄 Auto Headings | Optional chapter/section headings |
| 🔁 Regeneration | Regenerate individual pages |
| 📝 Edit Content | Edit before finalizing |
| 📤 PDF Export | Export as styled PDF |
# Clone the repository
git clone https://github.com/AliZafar780/ai-book-writer.git
cd ai-book-writer
# Install dependencies
pip install -r requirements.txt
# Run the application
python main.py| Tool | Purpose |
|---|---|
| Python | Programming language |
| Tkinter | GUI framework |
| google-generativeai | Gemini 1.5 Flash API |
| ReportLab | PDF generation |
| Threading | Async content generation |
- Python 3.8+
- Google Gemini API key
- Internet connection
Set your API key in the app or as environment variable:
export GEMINI_API_KEY=your_api_keyai-book-writer/
├── main.py # Main application
├── book_generator.py # AI generation logic
├── gui.py # Tkinter interface
├── pdf_exporter.py # PDF generation
└── requirements.txt # Dependencies
MIT License
Write your story with AI 📖