An end-to-end automation platform for creating short-form videos. Takes you from script to published content across YouTube, TikTok, and Instagram with AI-powered generation at every step.
- Script Segmentation -- Break scripts into A-Roll (narration) and B-Roll (visuals) with LLM assistance via Ollama
- AI Visual Generation -- Generate B-Roll images/videos through ComfyUI (Flux, WAN, LoRA workflows) or Replicate
- Avatar Video -- Create talking-head A-Roll segments using HeyGen avatars
- Video Assembly -- Stitch A-Roll and B-Roll with audio sync and transitions
- Styled Captions -- Word-by-word animated captions with multiple effects (fade, scale, highlight)
- Multi-Platform Publishing -- Export and upload to YouTube, TikTok, and Instagram
- Python 3.9+
- FFmpeg installed and available on PATH
- At least one of:
- Ollama (for local LLM-based prompt generation)
- HeyGen API key (for avatar videos)
# Clone the repository
git clone https://github.com/dawarazhar11/ai-money-printer-shorts.git
cd ai-money-printer-shorts
# Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate # Linux/macOS
# .venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
# Configure environment
cp .env.example .env
# Edit .env with your API keys and server URLs
# Run the application
cd app
streamlit run Home.pyThen open http://localhost:8501 in your browser.
Copy .env.example to .env and set your values:
| Variable | Description |
|---|---|
COMFYUI_IMAGE_API_URL |
ComfyUI server for image generation |
COMFYUI_VIDEO_API_URL |
ComfyUI server for video generation |
OLLAMA_API_URL |
Ollama API endpoint |
HEYGEN_API_KEY |
HeyGen API key for avatar videos |
REPLICATE_API_TOKEN |
Replicate API token |
The application guides you through an 8-step pipeline:
- Settings -- Configure project name, duration, and API connections
- Blueprint -- Visualize the video structure and segment layout
- Script Segmentation -- Organize your script into A-Roll and B-Roll sections
- B-Roll Prompts -- Generate optimized prompts for AI visual generation
- Content Production -- Generate A-Roll (HeyGen) and B-Roll (ComfyUI/Replicate) in parallel
- Video Assembly -- Stitch segments together with audio synchronization
- Captioning -- Add styled, word-synced captions with animation effects
- Publishing -- Export and upload to social media platforms
.
├── app/
│ ├── Home.py # Streamlit entry point
│ ├── pages/ # Workflow step pages (1-8)
│ ├── components/ # Reusable UI components
│ ├── utils/ # Helpers (HeyGen API, video processing, audio)
│ ├── config/ # App config & user data
│ ├── workflows/ # ComfyUI workflow templates (JSON)
│ ├── fonts/ # Font files for captions
│ ├── assets/ # CSS and static resources
│ ├── scripts/ # Maintenance & utility scripts
│ ├── tests/ # Test suite
│ └── media/ # Generated media output
├── docs/ # Documentation
├── requirements.txt # Python dependencies
├── .env.example # Environment variable template
└── README.md
This software is provided for personal use only.