How abdallarashed7/moneyprinterturbo works
MoneyPrinterTurbo turns a topic or script into short-form video, with API, CLI, and WebUI entry points. The main workflow validates generation parameters, queues and tracks a task, then coordinates script generation, stock/local materials, speech, subtitles, music, rendering, and optional social publishing. The graph also preserves the documented batch, provider, and publishing capabilities. Some subsystem links are based on the task module’s indexed references and README; unsampled implementation details are not inferred beyond those references.
Main entry points: task.py Generation task · video.py HTTP API · base_manager.py Task manager · redis_manager.py Redis queue
Components 25
User interfaces
- WebUI
webui/Main.py - HTTP API
app/controllers/v1/video.py - CLI
cli.py - API routing
app/router.py
Task control
- Task manager
app/controllers/manager/base_manager.py - Redis queue
app/controllers/manager/redis_manager.py - Generation task
app/services/task.py - Task state
app/services/state.py
Video creation
- Script and metadata
app/services/llm.py - Video materials
app/services/material.py - Voice synthesis
app/services/voice.py - Subtitle generation
app/services/subtitle.py - Music selection
app/services/bgm.py - Music generation
app/services/sonilo.py - ElevenLabs music
app/services/elevenlabs_music.py - Video rendering
app/services/video.py
Shared services
- Request schemas
app/models/schema.py - Runtime config
app/config/config.py - Model providers
app/models/llm_provider.py - Task artifacts
app/services/task_artifacts.py - File path security
app/utils/file_security.py
Publishing
- Cross-platform posting
app/services/upload_post.py
Other components
- Creator
- AI and media services
- Social platforms
Connections 29
- Creator → WebUI: configures
README.md - Creator → HTTP API: requests generation
README.md - Creator → CLI: runs generation
README.md - WebUI → Generation task: starts tasks
webui/Main.py - CLI → Generation task: starts tasks
cli.py - HTTP API → API routing: registered by
app/router.py - HTTP API → Request schemas: validates
app/controllers/v1/video.py - HTTP API → Task manager: submits task
app/controllers/v1/video.py - Task manager → Generation task: executes
app/controllers/manager/base_manager.py - Task manager → Redis queue: uses queue implementation
app/controllers/manager/redis_manager.py - Redis queue → Generation task: dispatches
app/controllers/manager/redis_manager.py - Redis queue → Task state: patches failed task
app/controllers/manager/redis_manager.py - Generation task → Task state: records progress
app/services/task.py - Generation task → Script and metadata: requests script
app/services/task.py - Script and metadata → Model providers: selects provider
app/services/llm.py - Script and metadata → AI and media services: calls model service
app/services/llm.py - Generation task → Video materials: gets footage
app/services/task.py - Generation task → Voice synthesis: synthesizes narration
app/services/task.py - Generation task → Subtitle generation: generates subtitles
app/services/task.py - Generation task → Music selection: selects background music
app/services/task.py - Generation task → Music generation: generates music
app/services/task.py - Generation task → ElevenLabs music: generates music
app/services/task.py - Generation task → Video rendering: assembles video
app/services/task.py - Video rendering → Music selection: mixes audio
app/services/video.py - Video rendering → Task artifacts: writes outputs
- Video materials → AI and media services: fetches media
- Generation task → Cross-platform posting: starts publishing
app/services/task.py - Cross-platform posting → Social platforms: uploads video
- HTTP API → File path security: checks file paths
app/controllers/v1/video.py