[Open-source] A one-stop AI-powered small red book image and text generator, driven by AI, uniform style, and accurate text
![[Open-source] A one-stop AI-powered small red book image and text generator, driven by AI, uniform style, and accurate text](https://yy123.ink/api/img/1781065514257-hl8j2o.jpg)
1. Project Overview

Hong Mo - Xiao Hong Shu AI Text and Image Generator
Let dissemination no longer require barriers, let creation have never been so simple
Hong Mo - A one-stop small red book text and image generator based on Nano Banana Pro <One sentence, one image, generate small red book text and image>

Use Hong Mo to generate various small red book covers - AI-driven, uniform style, accurate text
2. Open Source License
Uses CC BY-NC-SA 4.0 open-source protocol
3. Screenshots
Hong Mo Homepage

Effect Display
Input a sentence, and generate a complete small red book text and image
Prompt words: Autumn whitening nail art (darkly recommended: Muzi nail polish), the picture is my small red book homepage. Meets my style generation
At the same time, I also took a screenshot of my small red book homepage, including my avatar, signature, background, name, etc.

Then wait for 10-20 seconds, and there will be a large outline for each page, and you can adjust the page order according to your needs (not recommended), customize the content of each page (very recommended)

Firstly, generate the cover page

Then wait for a while, and generate all the subsequent pages (here are all the pages generated in parallel, defaulting to 15, if your API provider cannot support high concurrency, please modify the settings)

4. Feature Overview
User Guide
Basic Usage
- Input theme
Enter the theme you want to create on the homepage, such as 'How to make a latte at home' - Generate outline
AI generates 6-9 page content outline - Edit and confirm
Can edit and adjust the description of each page - Generate images
Click to generate, and view the progress in real-time - Download and use
One-click download all images
Advanced Usage
- Upload reference images
Suitable for brand owners, maintaining brand visual style - Modify description words
Precise control of each page's content and composition - Re-generate
Re-generate individual pages that are not satisfied
5. Tech Stack
Technical Architecture
Backend
- Language
Python 3.11+ - Framework
Flask - AI Model
Gemini 3 (text generation) Nano banana Pro (image generation) - Package management
uv
Frontend
- Framework
Vue 3 + TypeScript - Build
Vite - State management
Pinia
How to deploy yourself
Method one: Docker deployment (recommended)
The simplest deployment method, one command can start:
Access http://localhost:12398 in the Web interfaceSettings pageConfigure your API Key to use
Use docker-compose (optional):
Download docker-compose.yml later:
Docker deployment instructions:
-
The container does not contain any API Key, and needs to be configured in the Web interface -
Use -v ./output:/app/output to persist generated images -
Optional: mount a custom configuration file -v ./text_providers.yaml:/app/text_providers.yaml
Method two: local development deployment
Pre-requisites:
-
Python 3.11+ -
Node.js 18+ -
pnpm -
uv
1. Clone the project
2. Configure API service
Copy configuration template file:
Edit the configuration file, fill in your API Key and service settings. You can also configure it after startup in the Web interface.Settings pageor
3. Install backend dependencies
4. Install frontend dependencies
5. Start the service
Start the backend:
Access: http://localhost:12398
Start the frontend:
Access: http://localhost:5173
Acknowledgments
-
Google Gemini - Powerful content generation capabilities -
Image generation service provider - Stunning image generation effects -
Linux.do - Excellent developer community