harry0703/MoneyPrinterTurboPublic

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

AI summary: A one-stop AI tool for automatically generating short videos from keywords.

Stars
102.1K
+183 today
Forks
15.4K
Watchers
646
Open issues
10
Open PRs
6
Contributors
~80
Commits
685
Branches
1

PythonMITCreated Mar 11, 2024Last push todayLatest release v1.3.3+1.3K stars this week+1.7K this month

Star history

since Mar 10, 2024
050K100KMar 2024Dec 2024Oct 2025Aug 2026
102.1K stars as of Aug 7, 2026, tracked back to Mar 10, 2024. Historical curve reconstructed from public GitHub event archives, calibrated to the current total.

Contribution activity

commits per day, last 52 weeks
AugSepOctNovDecJanFebMarAprMayJunJulAugMonWedFri2025-08-10: 0 commits2025-08-11: 0 commits2025-08-12: 0 commits2025-08-13: 0 commits2025-08-14: 0 commits2025-08-15: 0 commits2025-08-16: 0 commits2025-08-17: 0 commits2025-08-18: 0 commits2025-08-19: 0 commits2025-08-20: 0 commits2025-08-21: 0 commits2025-08-22: 0 commits2025-08-23: 0 commits2025-08-24: 0 commits2025-08-25: 0 commits2025-08-26: 0 commits2025-08-27: 0 commits2025-08-28: 0 commits2025-08-29: 0 commits2025-08-30: 0 commits2025-08-31: 0 commits2025-09-01: 0 commits2025-09-02: 0 commits2025-09-03: 0 commits2025-09-04: 0 commits2025-09-05: 0 commits2025-09-06: 0 commits2025-09-07: 0 commits2025-09-08: 0 commits2025-09-09: 0 commits2025-09-10: 0 commits2025-09-11: 0 commits2025-09-12: 0 commits2025-09-13: 0 commits2025-09-14: 0 commits2025-09-15: 0 commits2025-09-16: 0 commits2025-09-17: 0 commits2025-09-18: 0 commits2025-09-19: 0 commits2025-09-20: 0 commits2025-09-21: 0 commits2025-09-22: 0 commits2025-09-23: 0 commits2025-09-24: 0 commits2025-09-25: 0 commits2025-09-26: 1 commit2025-09-27: 0 commits2025-09-28: 0 commits2025-09-29: 0 commits2025-09-30: 0 commits2025-10-01: 0 commits2025-10-02: 0 commits2025-10-03: 0 commits2025-10-04: 1 commit2025-10-05: 0 commits2025-10-06: 0 commits2025-10-07: 0 commits2025-10-08: 0 commits2025-10-09: 0 commits2025-10-10: 0 commits2025-10-11: 0 commits2025-10-12: 0 commits2025-10-13: 0 commits2025-10-14: 0 commits2025-10-15: 0 commits2025-10-16: 0 commits2025-10-17: 0 commits2025-10-18: 0 commits2025-10-19: 0 commits2025-10-20: 0 commits2025-10-21: 0 commits2025-10-22: 0 commits2025-10-23: 0 commits2025-10-24: 0 commits2025-10-25: 0 commits2025-10-26: 0 commits2025-10-27: 0 commits2025-10-28: 0 commits2025-10-29: 0 commits2025-10-30: 0 commits2025-10-31: 0 commits2025-11-01: 0 commits2025-11-02: 0 commits2025-11-03: 0 commits2025-11-04: 0 commits2025-11-05: 0 commits2025-11-06: 0 commits2025-11-07: 0 commits2025-11-08: 0 commits2025-11-09: 0 commits2025-11-10: 0 commits2025-11-11: 0 commits2025-11-12: 0 commits2025-11-13: 0 commits2025-11-14: 0 commits2025-11-15: 0 commits2025-11-16: 0 commits2025-11-17: 0 commits2025-11-18: 0 commits2025-11-19: 0 commits2025-11-20: 0 commits2025-11-21: 0 commits2025-11-22: 0 commits2025-11-23: 0 commits2025-11-24: 0 commits2025-11-25: 0 commits2025-11-26: 0 commits2025-11-27: 0 commits2025-11-28: 0 commits2025-11-29: 0 commits2025-11-30: 0 commits2025-12-01: 0 commits2025-12-02: 0 commits2025-12-03: 0 commits2025-12-04: 0 commits2025-12-05: 0 commits2025-12-06: 0 commits2025-12-07: 0 commits2025-12-08: 0 commits2025-12-09: 1 commit2025-12-10: 0 commits2025-12-11: 1 commit2025-12-12: 1 commit2025-12-13: 0 commits2025-12-14: 0 commits2025-12-15: 0 commits2025-12-16: 0 commits2025-12-17: 0 commits2025-12-18: 0 commits2025-12-19: 0 commits2025-12-20: 0 commits2025-12-21: 0 commits2025-12-22: 0 commits2025-12-23: 0 commits2025-12-24: 0 commits2025-12-25: 0 commits2025-12-26: 1 commit2025-12-27: 0 commits2025-12-28: 0 commits2025-12-29: 0 commits2025-12-30: 0 commits2025-12-31: 0 commits2026-01-01: 0 commits2026-01-02: 0 commits2026-01-03: 0 commits2026-01-04: 0 commits2026-01-05: 0 commits2026-01-06: 0 commits2026-01-07: 0 commits2026-01-08: 0 commits2026-01-09: 0 commits2026-01-10: 0 commits2026-01-11: 0 commits2026-01-12: 0 commits2026-01-13: 0 commits2026-01-14: 0 commits2026-01-15: 0 commits2026-01-16: 0 commits2026-01-17: 0 commits2026-01-18: 0 commits2026-01-19: 0 commits2026-01-20: 0 commits2026-01-21: 0 commits2026-01-22: 0 commits2026-01-23: 0 commits2026-01-24: 0 commits2026-01-25: 0 commits2026-01-26: 0 commits2026-01-27: 0 commits2026-01-28: 0 commits2026-01-29: 0 commits2026-01-30: 0 commits2026-01-31: 0 commits2026-02-01: 0 commits2026-02-02: 0 commits2026-02-03: 0 commits2026-02-04: 0 commits2026-02-05: 0 commits2026-02-06: 0 commits2026-02-07: 0 commits2026-02-08: 0 commits2026-02-09: 0 commits2026-02-10: 0 commits2026-02-11: 0 commits2026-02-12: 0 commits2026-02-13: 0 commits2026-02-14: 0 commits2026-02-15: 0 commits2026-02-16: 0 commits2026-02-17: 0 commits2026-02-18: 0 commits2026-02-19: 0 commits2026-02-20: 0 commits2026-02-21: 0 commits2026-02-22: 0 commits2026-02-23: 0 commits2026-02-24: 0 commits2026-02-25: 0 commits2026-02-26: 0 commits2026-02-27: 0 commits2026-02-28: 0 commits2026-03-01: 0 commits2026-03-02: 0 commits2026-03-03: 0 commits2026-03-04: 0 commits2026-03-05: 0 commits2026-03-06: 0 commits2026-03-07: 0 commits2026-03-08: 3 commits2026-03-09: 0 commits2026-03-10: 0 commits2026-03-11: 0 commits2026-03-12: 0 commits2026-03-13: 1 commit2026-03-14: 0 commits2026-03-15: 0 commits2026-03-16: 0 commits2026-03-17: 0 commits2026-03-18: 1 commit2026-03-19: 0 commits2026-03-20: 0 commits2026-03-21: 0 commits2026-03-22: 0 commits2026-03-23: 0 commits2026-03-24: 0 commits2026-03-25: 1 commit2026-03-26: 0 commits2026-03-27: 0 commits2026-03-28: 0 commits2026-03-29: 0 commits2026-03-30: 0 commits2026-03-31: 0 commits2026-04-01: 4 commits2026-04-02: 19 commits2026-04-03: 7 commits2026-04-04: 0 commits2026-04-05: 0 commits2026-04-06: 0 commits2026-04-07: 0 commits2026-04-08: 1 commit2026-04-09: 0 commits2026-04-10: 0 commits2026-04-11: 3 commits2026-04-12: 0 commits2026-04-13: 0 commits2026-04-14: 0 commits2026-04-15: 0 commits2026-04-16: 0 commits2026-04-17: 0 commits2026-04-18: 0 commits2026-04-19: 0 commits2026-04-20: 0 commits2026-04-21: 0 commits2026-04-22: 1 commit2026-04-23: 0 commits2026-04-24: 0 commits2026-04-25: 0 commits2026-04-26: 0 commits2026-04-27: 0 commits2026-04-28: 0 commits2026-04-29: 0 commits2026-04-30: 0 commits2026-05-01: 0 commits2026-05-02: 0 commits2026-05-03: 0 commits2026-05-04: 0 commits2026-05-05: 0 commits2026-05-06: 0 commits2026-05-07: 2 commits2026-05-08: 0 commits2026-05-09: 0 commits2026-05-10: 0 commits2026-05-11: 1 commit2026-05-12: 1 commit2026-05-13: 0 commits2026-05-14: 0 commits2026-05-15: 0 commits2026-05-16: 0 commits2026-05-17: 0 commits2026-05-18: 4 commits2026-05-19: 0 commits2026-05-20: 1 commit2026-05-21: 2 commits2026-05-22: 0 commits2026-05-23: 0 commits2026-05-24: 0 commits2026-05-25: 2 commits2026-05-26: 1 commit2026-05-27: 0 commits2026-05-28: 7 commits2026-05-29: 5 commits2026-05-30: 7 commits2026-05-31: 3 commits2026-06-01: 9 commits2026-06-02: 6 commits2026-06-03: 2 commits2026-06-04: 1 commit2026-06-05: 1 commit2026-06-06: 2 commits2026-06-07: 1 commit2026-06-08: 2 commits2026-06-09: 1 commit2026-06-10: 4 commits2026-06-11: 3 commits2026-06-12: 6 commits2026-06-13: 1 commit2026-06-14: 0 commits2026-06-15: 6 commits2026-06-16: 1 commit2026-06-17: 1 commit2026-06-18: 2 commits2026-06-19: 0 commits2026-06-20: 0 commits2026-06-21: 1 commit2026-06-22: 0 commits2026-06-23: 2 commits2026-06-24: 2 commits2026-06-25: 1 commit2026-06-26: 3 commits2026-06-27: 5 commits2026-06-28: 0 commits2026-06-29: 2 commits2026-06-30: 0 commits2026-07-01: 0 commits2026-07-02: 1 commit2026-07-03: 0 commits2026-07-04: 0 commits2026-07-05: 0 commits2026-07-06: 2 commits2026-07-07: 0 commits2026-07-08: 3 commits2026-07-09: 0 commits2026-07-10: 0 commits2026-07-11: 0 commits2026-07-12: 3 commits2026-07-13: 7 commits2026-07-14: 3 commits2026-07-15: 1 commit2026-07-16: 1 commit2026-07-17: 2 commits2026-07-18: 4 commits2026-07-19: 0 commits2026-07-20: 0 commits2026-07-21: 0 commits2026-07-22: 0 commits2026-07-23: 0 commits2026-07-24: 4 commits2026-07-25: 0 commits2026-07-26: 2 commits2026-07-27: 1 commit2026-07-28: 1 commit2026-07-29: 0 commits2026-07-30: 2 commits2026-07-31: 0 commits2026-08-01: 1 commit2026-08-02: 1 commit2026-08-03: 0 commits2026-08-04: 0 commits2026-08-05: 3 commits2026-08-06: 0 commits2026-08-07: 0 commits2026-08-08: 0 commits
190 commits in the last yearLessMore

Signals and awards

derived from tracked data
  • Landmark project

    102,064 stars

  • Actively maintained

    Pushed within 48 hours

  • Permissive license

    MIT

  • Continuous integration

    Automated checks passing

  • Repeat trending

    18 trending appearances

  • Top 10% tracked

    Rank 61 of 1058

What MoneyPrinterTurbo does

MoneyPrinterTurbo automates the entire process of creating short videos for platforms like TikTok and YouTube Shorts. By simply providing a topic or keywords, the system generates a video script, matches visual assets, and synthesizes speech. It automatically adds subtitles and background music to produce high-definition videos. The project leverages powerful LLMs like Kimi to intelligently drive content creation and visual pairing. It offers both a WebUI and an API for seamless integration.

This tool is perfect for social media content creators, digital marketers, and automation enthusiasts. It requires minimal video editing skills, making it accessible to anyone wanting to scale video production.

  • Automated Scripting: Uses LLMs to write engaging video scripts based on simple topics.
  • Asset Matching: Intelligently searches and pairs video clips relevant to the generated script.
  • Text-to-Speech Synthesis: Generates natural-sounding voiceovers for the video content.
  • Subtitle Generation: Automatically creates and syncs subtitles with the audio track.
  • Multi-interface Access: Provides both a user-friendly WebUI and a programmable API.

Where teams use it

Social Media Automation

Content creators mass-produce short videos for TikTok, Instagram Reels, and YouTube Shorts.

Marketing Campaigns

Marketers rapidly generate promotional video content based on trending keywords.

Faceless Channels

Users run fully automated YouTube channels without needing to film themselves.

Educational Snippets

Educators turn text summaries into engaging video formats for quick consumption.

Getting started: git clone https://github.com/harry0703/MoneyPrinterTurbo.git

README

main branch

MoneyPrinterTurbo 💸

一站式 AI 短视频生成工具

只需提供视频主题关键词,即可自动生成视频脚本、匹配素材、生成字幕和背景音乐,并合成高清短视频。

Version Platform Python Downloads

harry0703%2FMoneyPrinterTurbo | Trendshift Star History Rank

简体中文 | English | 版本发布 | 问题反馈

界面预览 🖥️

WebUI

API

特别感谢 ❤️

Kimi 赞助 MoneyPrinterTurbo

感谢 Kimi 赞助本项目!Kimi K3 是 Moonshot AI 迄今能力最强的模型,也是全球首个开源 3T 级模型,拥有原生视觉能力与 100 万 Token 上下文,在知识工作、推理和长周期任务中展现前沿性能。在 MoneyPrinterTurbo 中,K3 能直接驱动视频创作,不仅撰写视频文案,还会提炼素材搜索关键词、决定成片画面;对内容理解越准确,匹配到的素材就越贴题。

MoneyPrinterTurbo 已接入 Kimi。前往 Kimi 开放平台(中文站Global)体验 API,或了解 Kimi Code 订阅

火山引擎
火山引擎
感谢字节火山引擎赞助本项目! 【专属活动优惠】19元Tokens包!享字节自研豆包模型+满血版开源 SOTA模型,覆盖文本、VLM、图像生成,全模态一站配齐:Seed-2.1、Seedream-5.0、GLM-5.2、DeepSeek、Qwen等。不止编程,更能解决 Agent 复杂长程任务 --> 注册即领2500万Tokens,立即前往
CCSub
CCSub
感谢 CCSub 赞助本项目!CCSub 是稳定、实惠的 AI API 中转平台,是 Claude Code 官方订阅的超强平替。一个 API Key 即可调用 Claude Opus 4.8、Sonnet 4.6、Haiku 4.5、GPT-5、Gemini 等模型,价格约为官方直连的 1/3,全球直连无需梯子。兼容 Claude Code、Codex、Cursor、Cline、Continue、Windsurf 等所有主流 AI 编程工具。前往 www.ccsub.net 注册即送 $5 体验额度。
Cubence
Cubence
感谢 Cubence 对本项目的支持。Cubence 是一家专注于 AI 模型 API 接入服务的平台,致力于为开发者和团队提供稳定、便捷的模型调用体验。自 2025 年 9 月上线以来,Cubence 已支持 Claude Code、Codex、Gemini 等多种 AI 模型与开发工具相关的 API 接入场景,适合需要统一管理和调用多模型能力的用户使用。Cubence 为本开源项目用户提供了专属优惠码:MPT。首次购买时使用该优惠码,可享受 9 折优惠
0029 云桥
0029 云桥
感谢 0029.org 云桥 赞助本项目!0029.org 云桥是一个集成了 Claude Code、Codex 以及 Gemini 最新模型的一站式中转平台,为你提供稳定、高效且高性价比的 AI 中转服务。本站提供灵活的包月套餐/按量计费计划,国内直连,无需魔法,极速响应。支持个人和企业接入,价格最低为官方 0.12 折。立即访问
二狗 API
二狗 API
感谢 二狗 API 赞助本项目!接入二狗,稳如老狗。二狗 API 中转站,全站 0.1x~0.2x 超低倍率,提供 Claude / GPT / Gemini 等多个国内外 100% 纯血大模型接口。顶级 IPLC 线路 + 住宅双 ISP 冗余,确保全国范围稳定低延迟访问。欢迎各位开发者、工作室 注册使用
录咖
录咖 AI
由于该项目的 部署使用,对于一些小白用户来说,还是 有一定的门槛,在此特别感谢 录咖(AI智能 多媒体服务平台) 网站基于该项目,提供的免费 AI视频生成器 服务,可以不用部署,直接在线使用,非常方便。
佐糖
佐糖
感谢 佐糖 对该项目的支持和赞助,使得该项目能够持续的更新和维护。佐糖专注于图像处理领域,提供丰富的图像处理工具,将复杂操作极致简化,真正实现让图像处理更简单。

功能特性 🎯

  • 提供 AI AgentWebUIAPICLI 四种使用方式,代码按控制器、服务和模型等职责分层
  • 支持 AI 自动生成视频脚本,也可以使用自定义脚本
  • 支持多种 高清视频 尺寸
    • 竖屏 9:16,1080x1920
    • 横屏 16:9,1920x1080
  • 支持 批量视频生成,可以一次生成多个视频,然后选择一个最满意的
  • 支持 视频片段时长 设置,方便调节素材切换频率
  • 支持 多语言视频脚本 生成
  • 支持 Edge TTSAzure SpeechSiliconFlowGoogle Gemini小米 MiMoElevenLabsChatterbox 语音合成,可实时试听
  • 支持 字幕生成,可调整字体、位置、颜色、大小、描边和背景样式
  • 支持 背景音乐,可随机选择或使用指定音乐,并调整音量
  • 支持使用自己的 本地素材,也可从 PexelsPixabayCoverr 获取可免费使用的高清素材
  • 支持 Kimi / Moonshot AIOpenAIGoogle GeminiDeepSeek阿里云通义千问Microsoft Azure OpenAI火山引擎方舟xAI GrokMiniMax小米 MiMo 等主流模型服务,并兼容 Cloudflare AI Gateway魔搭 ModelScopeAIHubMixAIML APIEvoLinkOllamaOneAPILiteLLMGroqPollinations AI 等统一网关、聚合平台和本地运行环境
  • 支持一键 跨平台发布,生成完成后可自动上传至 TikTokInstagramYouTube Shorts

作品展示 🎬

以下示例均由 MoneyPrinterTurbo 实际生成。

竖屏 9:16

城市醒来的时刻
城市醒来的时刻
中文 · 14 秒
清洁能源的未来
清洁能源的未来
中文 · 24 秒
为什么我们仍要探索太空
为什么我们仍要探索太空
中文 · 27 秒
一粒种子的旅程
一粒种子的旅程
中文 · 44 秒
The Future of Everyday Robotics
The Future of Everyday Robotics
English · 21 sec
Small Habits, Lasting Change
Small Habits, Lasting Change
English · 19 sec
Making Space for Creative Work
Making Space for Creative Work
English · 20 sec
The Science Inside Coffee
The Science Inside Coffee
English · 23 sec

横屏 16:9

深海里的微光
深海里的微光
中文 · 23 秒
阅读如何塑造我们
阅读如何塑造我们
中文 · 23 秒
一杯手冲咖啡的细节
一杯手冲咖啡的细节
中文 · 23 秒
春天适合出发
春天适合出发
中文 · 14 秒
Why Ocean Conservation Matters
Why Ocean Conservation Matters
English · 25 sec
Designing More Sustainable Cities
Designing More Sustainable Cities
English · 27 sec
What Mountains Teach Us
What Mountains Teach Us
English · 18 sec
A Brief History of Human Flight
A Brief History of Human Flight
English · 59 sec

配置要求 📦

  • 建议系统:Windows 10、macOS 11.0 或更高版本,以及主流 Linux 发行版
  • 本地部署需要 Python 3.11 或更高版本,推荐使用 Python 3.11
  • GPU 不是必需项,但如果你希望本地转录、更快的视频处理或更顺畅的批量生成体验,建议使用带显存的独立显卡
项目 最低配置 推荐配置 理想配置
CPU 4 核 6 到 8 核 8 核及以上
RAM 4 GB 8 GB 16 GB 及以上
GPU 非必须 4 GB 显存及以上 8 GB 显存及以上
  • 如果你主要依赖云端 LLM、云端 TTS 和在线素材源,CPU 与内存比 GPU 更重要
  • 如果你启用 faster-whisper、批量生成或更重的本地处理链路,GPU 会明显提升速度

快速开始 🚀

推荐使用方式

  • 不想手动安装和配置:直接使用 AI Agent 生成视频
  • Windows 用户:优先使用一键启动包,适合快速体验
  • macOS / Linux 用户:优先使用 uv 进行本地部署
  • 想要隔离运行环境:优先使用 Docker 部署

使用 AI Agent 生成视频

如果你的 AI Agent 支持读取 Skill 文档并操作本地终端,可以直接发送下面这段话。Agent 会自动完成安装、配置和视频生成;只有缺少必要的 API Key 时才会向你询问,完成后会返回生成的视频文件路径。目前支持 macOS 和 Windows。

使用这个 Skill:https://raw.githubusercontent.com/harry0703/MoneyPrinterTurbo/main/docs/skill/SKILL.md
帮我生成一个主题为“人工智能如何改变普通人的日常生活”的视频。

在 Google Colab 中运行

免去本地环境配置,点击直接在 Google Colab 中快速体验 MoneyPrinterTurbo

Open in Colab

Windows 一键启动包

下载一键启动包,解压直接使用(路径不要有 中文特殊字符空格

下载后,建议先双击执行 update.bat 更新到最新代码,然后双击 start.bat 启动

启动后,会自动打开浏览器(如果打开是空白,建议换成 Chrome 或者 Edge 打开)

安装部署 📥

前提条件

  • 本地部署需要 Python 3.11 或更高版本
  • Windows 用户建议避免使用包含中文、特殊字符或空格的项目路径

① 克隆代码

git clone https://github.com/harry0703/MoneyPrinterTurbo.git

② 配置项目(可选)

首次启动时,项目会根据 config.example.toml 自动创建 config.toml。大模型 Provider、素材来源和相关 API Key 可以直接在 WebUI 的基础设置中配置。

Docker 部署 🐳

① 启动 Docker

如果未安装 Docker,请先安装 https://www.docker.com/products/docker-desktop/

Windows 用户可以参考微软的文档:

  1. https://learn.microsoft.com/zh-cn/windows/wsl/install
  2. https://learn.microsoft.com/zh-cn/windows/wsl/tutorials/wsl-containers
cd MoneyPrinterTurbo
docker compose -f docker-compose.release.yml up

默认推荐使用 docker-compose.release.yml,它会直接拉取 GitHub Container Registry 上的预构建镜像:ghcr.io/harry0703/moneyprinterturbo:latest。 如果你需要本地重新构建镜像,可以继续使用 docker compose up。 首次启动前,请将 config.example.toml 复制为 config.toml,供容器挂载使用。

② 访问 WebUI

打开浏览器,访问 http://127.0.0.1:8501

③ 访问 API 文档

打开浏览器,访问 http://127.0.0.1:8080/docs 或者 http://127.0.0.1:8080/redoc

手动部署 📦

视频教程

① 创建虚拟环境

推荐使用 uv 管理 Python 环境和依赖。项目支持 Python 3.11 或更高版本,以下示例使用 Python 3.11。

git clone https://github.com/harry0703/MoneyPrinterTurbo.git
cd MoneyPrinterTurbo
uv python install 3.11
uv sync --frozen

如果你暂时不使用 uv,也可以继续使用 venv + pip

python3.11 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

说明:

  • pyproject.toml 是主依赖定义文件
  • uv.lock 是锁文件,建议默认执行 uv sync --frozen
  • requirements.txt 仅保留给旧的 pip 安装方式兼容使用

② 启动 WebUI 🌐

注意需要到 MoneyPrinterTurbo 项目 根目录 下执行以下命令

Windows
.\webui.bat

在 CMD 中也可以执行 webui.batwebui.bat 会优先使用项目 .venv 或一键包内置 Python;如果没有找到项目 Python,但已安装 uv,会自动切换为 uv run streamlit。 如需允许局域网内其他设备访问 WebUI,可以先执行 set MPT_WEBUI_HOST=0.0.0.0,再运行 webui.bat

macOS 或 Linux
sh webui.sh

脚本会自动使用项目虚拟环境或 uv,并选择可用的本地端口。如需允许局域网内其他设备访问,可以执行:

MPT_WEBUI_HOST=0.0.0.0 sh webui.sh

启动后,会自动打开浏览器(如果打开是空白,建议换成 Chrome 或者 Edge 打开)

③ 启动 API 服务 🚀

uv run python main.py

如果你已经手动激活了虚拟环境,也可以直接执行:

python main.py

④ 纯命令行方式(无浏览器)⌨️

如果你无法使用浏览器或端口转发,可以直接在命令行生成视频。最简单的完整视频生成命令如下:

uv run python cli.py --video-subject "人工智能如何改变日常生活"

如需查看完整命令、参数说明和使用方法,可以执行:

uv run python cli.py --help

语音合成 🗣

默认使用免费的 Edge TTS,在 WebUI 中显示为 Azure TTS V1。项目同时支持 Azure TTS V2SiliconFlow TTSGoogle Gemini TTS小米 MiMo TTSElevenLabs TTS、自托管 Chatterbox TTS,以及无配音模式。

可直接在 WebUI 中选择 Provider 和音色,并按照界面提示填写所需凭据。Edge TTS 不需要 API Key;Azure TTS V2 及其他云端服务需要对应平台的凭据。Edge TTS 音色可查看:音色列表

字幕生成 📜

当前支持两种字幕生成方式:

  • edge:使用 TTS 时间戳生成字幕,速度快,不需要 GPU,默认使用该模式。
  • whisper:使用本地 faster-whisper 转写音频,适用于需要更准确字幕时间轴的场景。首次使用时需要下载模型。

config.toml 中修改 subtitle_provider 即可切换模式。Whisper 默认使用约 3 GB 的 large-v3;如需更小、更快的模型,可以使用约 1.6 GB 的 large-v3-turbo

[app]
subtitle_provider = "whisper"

[whisper]
model_size = "large-v3-turbo"

首次使用 Whisper 时,程序会自动从 Hugging Face 下载模型。如果当前网络无法自动下载,可以从 Hugging Face 手动下载 whisper-large-v3

下载并解压后,将整个目录放到 .\MoneyPrinterTurbo\models,最终路径应为 .\MoneyPrinterTurbo\models\whisper-large-v3

MoneyPrinterTurbo
  ├─models
  │   └─whisper-large-v3
  │          config.json
  │          model.bin
  │          preprocessor_config.json
  │          tokenizer.json
  │          vocabulary.json

背景音乐 🎵

用于视频的背景音乐,位于项目的 resource/songs 目录下。

当前项目里面放了一些默认的音乐,来自于 YouTube 视频,如有侵权,请删除。

字幕字体 🅰

用于视频字幕的渲染,位于项目的 resource/fonts 目录下,你也可以放进去自己的字体。

常见问题 🤔

如何发布到 TikTok、Instagram 或 YouTube Shorts?

注册 Upload-Post 账号并获取 API Key,然后在 config.toml[app] 下添加以下配置:

[app]
upload_post_enabled = true
upload_post_api_key = "your-api-key"
upload_post_username = "your-username"
upload_post_platforms = ["tiktok", "instagram", "youtube"]
upload_post_auto_upload = true
upload_post_youtube_privacy_status = "public"

保存配置并重启项目。视频生成完成后,程序会自动发布到已配置的平台。YouTube 可见性可设置为 publicunlistedprivate

RuntimeError: No ffmpeg exe could be found

通常情况下,ffmpeg 会被自动下载,并且会被自动检测到。 但是如果你的环境有问题,无法自动下载,可能会遇到如下错误:

RuntimeError: No ffmpeg exe could be found.
Install ffmpeg on your system, or set the IMAGEIO_FFMPEG_EXE environment variable.

此时你可以从 https://www.gyan.dev/ffmpeg/builds/ 下载ffmpeg,解压后,设置 ffmpeg_path 为你的实际安装路径即可。

[app]
# 请根据你的实际路径设置,注意 Windows 路径分隔符为 \\
ffmpeg_path = "C:\\Users\\harry\\Downloads\\ffmpeg.exe"
OSError: [Errno 24] Too many open files

这个问题是由于系统打开文件数限制导致的,可以通过修改系统的文件打开数限制来解决。

查看当前限制

ulimit -n

如果过低,可以调高一些,比如

ulimit -n 10240
Whisper 模型下载失败
LocalEntryNotFoundError: Cannot find an appropriate cached snapshot folder for the specified revision on the local disk and
outgoing traffic has been disabled.
To enable repo look-ups and downloads online, pass 'local_files_only=False' as input.

或者

An error occurred while synchronizing the model Systran/faster-whisper-large-v3 from the Hugging Face Hub:
An error happened while trying to locate the files on the Hub and we cannot find the appropriate snapshot folder for the
specified revision on the local disk. Please check your internet connection and try again.
Trying to load the model directly from the local cache, if it exists.

解决方法:查看如何从 Hugging Face 手动下载模型

反馈建议 📢

许可证 📝

点击查看 LICENSE 文件

Star History

Star History Chart
View on GitHub

Recent activity

commits and pull requests

Recent open issues

view all

Releases and announcements

16 total
  1. v1.3.3v1.3.3Jul 24, 20268.6K downloads

    ## Highlights - Added full voiceover preview with estimated duration before video generation. Preview audio can be reused when the final generation settings remain unchanged. - Added optional video-matched background music generation through Sonilo and ElevenLabs, with graceful fallback when music generation fails. - Added custom background music uploads directly from the WebUI. - Added a global video clip speed control and new ZoomIn / ZoomOut transitions. - Added lightweight, non-blocking update notifications in the WebUI. - Hardened task execution and recovery across the WebUI, API, and CLI, with clearer stage and error tracking. ## Fixes and Improvements - Fixed Windows portable-package startup failures caused by conflicting Python `app` packages. - Fixed the WebUI becoming blank after starting video generation. - Preserved generation progress, logs, and terminal task states across Streamlit reruns. - Improved interrupted-task recovery and kept social publishing failures independent from successful video generation. - Added queue limits and more reliable state updates for cross-platform publishing. - Prevented unexpected Whisper model fallback when another subtitle provider

  2. v1.3.2v1.3.2Jul 12, 20268.4K downloads

    ## Highlights - Redesigned the WebUI with a cleaner responsive layout, a dedicated settings dialog, improved dark mode support, and a more consistent interaction experience. - Added task management with status filtering, progress tracking, video playback, folder access, deletion, and regeneration from historical task settings. - Added a lightweight onboarding tour to guide new users through configuration, video options, and generation. - Added built-in LLM connection testing so provider credentials and model settings can be verified before generation. - Centralized LLM provider metadata, defaults, configuration tips, and registration links for more consistent setup and maintenance. - Added video cache statistics and cleanup controls. - Expanded the command-line workflow and added the MoneyPrinterTurbo Agent skill for automated video generation. - Updated the project version to v1.3.2. ## Fixes and Improvements - Migrated Gemini text and TTS integrations from the deprecated `google-generativeai` SDK to the new `google-genai` SDK. - Fixed WebUI selectors that sometimes required two selections before a change took effect. - Preserved generation logs across Streamlit reruns and fixe

  3. v1.3.1v1.3.1Jul 6, 20263.9K downloads

    ## Highlights - Added new LLM providers and integrations, including AIML API, EvoLink, and VolcEngine Ark. - Added new TTS options, including ElevenLabs and self-hosted OpenAI-compatible Chatterbox TTS. - Added optional TwelveLabs video AI integration for smarter material understanding and reranking. - Added YouTube Shorts publishing support through Upload-Post. - Added a pure CLI workflow and exposed more WebUI-backed video parameters to command-line generation. - Added GHCR Docker image publishing for easier container deployment. - Improved multilingual WebUI support, including Indonesian and Spanish updates, plus explicit `es-ES` script generation support. ## Fixes and Improvements - Fixed subtitle background clipping and improved subtitle rendering reliability. - Fixed custom-audio subtitle generation when using Whisper. - Fixed Windows MoviePy temporary-audio handling to avoid Windows Defender interference. - Fixed Streamlit first-run prompt blocking WebUI startup. - Fixed LLM provider selectbox switching that sometimes required selecting twice. - Fixed video duration safety margin handling. - Fixed `video_contact_mode` typo compatibility by correctly using `video_concat_mo

  4. v1.3.0v1.3.0Jun 10, 202620.6K downloads

    ## Highlights - Added Coverr as a new stock video material provider, including WebUI API key management and 16:9-friendly defaults. - Added Groq as a new LLM provider. - Added no-voice video generation mode for workflows that do not need narration. - Added configurable video encoder selection and safer hardware-encoder fallback behavior. - Added AIHubMix provider integration. - Added multilingual social metadata generation API. - Added subtitle background options, including optional rounded translucent subtitle backgrounds. - Improved WebUI localization coverage, including Arabic, German, Russian, Turkish, and Vietnamese updates. ## Fixes and Improvements - Improved repeated video material reuse behavior. - Fixed final SRT subtitle block handling. - Fixed subtitle matching for markdown-style script markers. - Fixed Qwen response parsing edge cases. - Upgraded and hardened selected dependencies and deployment defaults. - Refactored Azure voice data into JSON for easier maintenance. - Improved README and setup documentation quality. ## What's Changed * refactor(voice): extract Azure voice data to JSON by @domantasjo in https://github.com/harry0703/MoneyPrinterTurbo/pull/951 * fi

  5. v1.2.9v1.2.9May 30, 20269.2K downloads

    ## What's Changed ### New features - Added advanced script settings in WebUI: - script paragraph count - custom script requirements - optional full custom system prompt for advanced users - Added Xiaomi MiMo LLM provider support. - Added Xiaomi MiMo TTS provider support. - Improved Ollama default base URL handling for Docker environments. ### Fixes and improvements - Fixed custom BGM path handling for WebUI and API flows. - Fixed Windows WebUI launcher robustness. - Fixed `webui.sh` to bind/open `127.0.0.1` by default instead of opening `0.0.0.0`. - Fixed string video concat mode handling in downloads. - Fixed subtitle wrapping for long text. - Fixed Edge TTS signed-zero rate formatting. - Added missing Turkish translation keys. - Fixed README-en ImageMagick code fence. ### Testing - Added regression coverage for LLM provider behavior, local TTS/video task paths, video concat mode handling, and advanced script prompt settings. - Verified advanced script settings end-to-end with real script generation, TTS, Pexels material download, subtitle generation, and final video synthesis.

Code frequency

additions and deletions
+21.8K-21.8KWeek of 2025-08-10: +0 linesWeek of 2025-08-10: -0 linesWeek of 2025-08-17: +0 linesWeek of 2025-08-17: -0 linesWeek of 2025-08-24: +0 linesWeek of 2025-08-24: -0 linesWeek of 2025-08-31: +0 linesWeek of 2025-08-31: -0 linesWeek of 2025-09-07: +0 linesWeek of 2025-09-07: -0 linesWeek of 2025-09-14: +0 linesWeek of 2025-09-14: -0 linesWeek of 2025-09-21: +38 linesWeek of 2025-09-21: -8 linesWeek of 2025-09-28: +105 linesWeek of 2025-09-28: -0 linesWeek of 2025-10-05: +0 linesWeek of 2025-10-05: -0 linesWeek of 2025-10-12: +0 linesWeek of 2025-10-12: -0 linesWeek of 2025-10-19: +0 linesWeek of 2025-10-19: -0 linesWeek of 2025-10-26: +0 linesWeek of 2025-10-26: -0 linesWeek of 2025-11-02: +0 linesWeek of 2025-11-02: -0 linesWeek of 2025-11-09: +0 linesWeek of 2025-11-09: -0 linesWeek of 2025-11-16: +0 linesWeek of 2025-11-16: -0 linesWeek of 2025-11-23: +0 linesWeek of 2025-11-23: -0 linesWeek of 2025-11-30: +0 linesWeek of 2025-11-30: -0 linesWeek of 2025-12-07: +211 linesWeek of 2025-12-07: -102 linesWeek of 2025-12-14: +0 linesWeek of 2025-12-14: -0 linesWeek of 2025-12-21: +31 linesWeek of 2025-12-21: -21 linesWeek of 2025-12-28: +0 linesWeek of 2025-12-28: -0 linesWeek of 2026-01-04: +0 linesWeek of 2026-01-04: -0 linesWeek of 2026-01-11: +0 linesWeek of 2026-01-11: -0 linesWeek of 2026-01-18: +0 linesWeek of 2026-01-18: -0 linesWeek of 2026-01-25: +0 linesWeek of 2026-01-25: -0 linesWeek of 2026-02-01: +0 linesWeek of 2026-02-01: -0 linesWeek of 2026-02-08: +0 linesWeek of 2026-02-08: -0 linesWeek of 2026-02-15: +0 linesWeek of 2026-02-15: -0 linesWeek of 2026-02-22: +0 linesWeek of 2026-02-22: -0 linesWeek of 2026-03-01: +0 linesWeek of 2026-03-01: -0 linesWeek of 2026-03-08: +19 linesWeek of 2026-03-08: -4 linesWeek of 2026-03-15: +3 linesWeek of 2026-03-15: -2 linesWeek of 2026-03-22: +279 linesWeek of 2026-03-22: -1 linesWeek of 2026-03-29: +3,704 linesWeek of 2026-03-29: -766 linesWeek of 2026-04-05: +225 linesWeek of 2026-04-05: -25 linesWeek of 2026-04-12: +0 linesWeek of 2026-04-12: -0 linesWeek of 2026-04-19: +122 linesWeek of 2026-04-19: -12 linesWeek of 2026-04-26: +0 linesWeek of 2026-04-26: -0 linesWeek of 2026-05-03: +304 linesWeek of 2026-05-03: -14 linesWeek of 2026-05-10: +76 linesWeek of 2026-05-10: -5 linesWeek of 2026-05-17: +639 linesWeek of 2026-05-17: -38 linesWeek of 2026-05-24: +1,747 linesWeek of 2026-05-24: -197 linesWeek of 2026-05-31: +4,791 linesWeek of 2026-05-31: -1,564 linesWeek of 2026-06-07: +1,711 linesWeek of 2026-06-07: -612 linesWeek of 2026-06-14: +1,427 linesWeek of 2026-06-14: -127 linesWeek of 2026-06-21: +1,417 linesWeek of 2026-06-21: -52 linesWeek of 2026-06-28: +187 linesWeek of 2026-06-28: -44 linesWeek of 2026-07-05: +643 linesWeek of 2026-07-05: -831 linesWeek of 2026-07-12: +21,835 linesWeek of 2026-07-12: -4,852 linesWeek of 2026-07-19: +227 linesWeek of 2026-07-19: -29 linesWeek of 2026-07-26: +2,576 linesWeek of 2026-07-26: -103 linesWeek of 2026-08-02: +1,153 linesWeek of 2026-08-02: -135 linesAug 10, 2025Aug 2, 2026
+43.5K lines added, -9.5K removed over the last year.

Commits per week

last 52 weeks
300Week of 2025-08-10: 0 commitsWeek of 2025-08-17: 0 commitsWeek of 2025-08-24: 0 commitsWeek of 2025-08-31: 0 commitsWeek of 2025-09-07: 0 commitsWeek of 2025-09-14: 0 commitsWeek of 2025-09-21: 1 commitsWeek of 2025-09-28: 1 commitsWeek of 2025-10-05: 0 commitsWeek of 2025-10-12: 0 commitsWeek of 2025-10-19: 0 commitsWeek of 2025-10-26: 0 commitsWeek of 2025-11-02: 0 commitsWeek of 2025-11-09: 0 commitsWeek of 2025-11-16: 0 commitsWeek of 2025-11-23: 0 commitsWeek of 2025-11-30: 0 commitsWeek of 2025-12-07: 3 commitsWeek of 2025-12-14: 0 commitsWeek of 2025-12-21: 1 commitsWeek of 2025-12-28: 0 commitsWeek of 2026-01-04: 0 commitsWeek of 2026-01-11: 0 commitsWeek of 2026-01-18: 0 commitsWeek of 2026-01-25: 0 commitsWeek of 2026-02-01: 0 commitsWeek of 2026-02-08: 0 commitsWeek of 2026-02-15: 0 commitsWeek of 2026-02-22: 0 commitsWeek of 2026-03-01: 0 commitsWeek of 2026-03-08: 4 commitsWeek of 2026-03-15: 1 commitsWeek of 2026-03-22: 1 commitsWeek of 2026-03-29: 30 commitsWeek of 2026-04-05: 4 commitsWeek of 2026-04-12: 0 commitsWeek of 2026-04-19: 1 commitsWeek of 2026-04-26: 0 commitsWeek of 2026-05-03: 2 commitsWeek of 2026-05-10: 2 commitsWeek of 2026-05-17: 7 commitsWeek of 2026-05-24: 22 commitsWeek of 2026-05-31: 24 commitsWeek of 2026-06-07: 18 commitsWeek of 2026-06-14: 10 commitsWeek of 2026-06-21: 14 commitsWeek of 2026-06-28: 3 commitsWeek of 2026-07-05: 5 commitsWeek of 2026-07-12: 21 commitsWeek of 2026-07-19: 4 commitsWeek of 2026-07-26: 7 commitsWeek of 2026-08-02: 4 commitsAug 10, 2025Aug 2, 2026
190 commits in the last 52 weeks.

When work happens

weekday and hour
SunMonTueWedThuFriSat036912151821Sun 0:00 — 1 commitsSun 1:00 — 2 commitsSun 2:00 — 2 commitsSun 3:00 — 0 commitsSun 4:00 — 0 commitsSun 5:00 — 0 commitsSun 6:00 — 0 commitsSun 7:00 — 0 commitsSun 8:00 — 0 commitsSun 9:00 — 0 commitsSun 10:00 — 1 commitsSun 11:00 — 2 commitsSun 12:00 — 1 commitsSun 13:00 — 1 commitsSun 14:00 — 0 commitsSun 15:00 — 2 commitsSun 16:00 — 4 commitsSun 17:00 — 9 commitsSun 18:00 — 5 commitsSun 19:00 — 1 commitsSun 20:00 — 1 commitsSun 21:00 — 4 commitsSun 22:00 — 1 commitsSun 23:00 — 5 commitsMon 0:00 — 0 commitsMon 1:00 — 1 commitsMon 2:00 — 0 commitsMon 3:00 — 1 commitsMon 4:00 — 0 commitsMon 5:00 — 0 commitsMon 6:00 — 2 commitsMon 7:00 — 2 commitsMon 8:00 — 1 commitsMon 9:00 — 2 commitsMon 10:00 — 6 commitsMon 11:00 — 5 commitsMon 12:00 — 2 commitsMon 13:00 — 1 commitsMon 14:00 — 8 commitsMon 15:00 — 2 commitsMon 16:00 — 6 commitsMon 17:00 — 14 commitsMon 18:00 — 9 commitsMon 19:00 — 1 commitsMon 20:00 — 4 commitsMon 21:00 — 4 commitsMon 22:00 — 1 commitsMon 23:00 — 0 commitsTue 0:00 — 1 commitsTue 1:00 — 0 commitsTue 2:00 — 0 commitsTue 3:00 — 0 commitsTue 4:00 — 0 commitsTue 5:00 — 0 commitsTue 6:00 — 1 commitsTue 7:00 — 0 commitsTue 8:00 — 1 commitsTue 9:00 — 9 commitsTue 10:00 — 7 commitsTue 11:00 — 2 commitsTue 12:00 — 2 commitsTue 13:00 — 5 commitsTue 14:00 — 7 commitsTue 15:00 — 6 commitsTue 16:00 — 4 commitsTue 17:00 — 5 commitsTue 18:00 — 1 commitsTue 19:00 — 2 commitsTue 20:00 — 1 commitsTue 21:00 — 1 commitsTue 22:00 — 2 commitsTue 23:00 — 0 commitsWed 0:00 — 1 commitsWed 1:00 — 0 commitsWed 2:00 — 2 commitsWed 3:00 — 1 commitsWed 4:00 — 0 commitsWed 5:00 — 0 commitsWed 6:00 — 0 commitsWed 7:00 — 0 commitsWed 8:00 — 1 commitsWed 9:00 — 3 commitsWed 10:00 — 7 commitsWed 11:00 — 10 commitsWed 12:00 — 1 commitsWed 13:00 — 4 commitsWed 14:00 — 9 commitsWed 15:00 — 6 commitsWed 16:00 — 7 commitsWed 17:00 — 7 commitsWed 18:00 — 2 commitsWed 19:00 — 1 commitsWed 20:00 — 1 commitsWed 21:00 — 2 commitsWed 22:00 — 4 commitsWed 23:00 — 0 commitsThu 0:00 — 1 commitsThu 1:00 — 1 commitsThu 2:00 — 0 commitsThu 3:00 — 0 commitsThu 4:00 — 0 commitsThu 5:00 — 0 commitsThu 6:00 — 1 commitsThu 7:00 — 0 commitsThu 8:00 — 1 commitsThu 9:00 — 3 commitsThu 10:00 — 8 commitsThu 11:00 — 8 commitsThu 12:00 — 0 commitsThu 13:00 — 5 commitsThu 14:00 — 13 commitsThu 15:00 — 14 commitsThu 16:00 — 8 commitsThu 17:00 — 11 commitsThu 18:00 — 15 commitsThu 19:00 — 5 commitsThu 20:00 — 4 commitsThu 21:00 — 5 commitsThu 22:00 — 3 commitsThu 23:00 — 4 commitsFri 0:00 — 0 commitsFri 1:00 — 0 commitsFri 2:00 — 0 commitsFri 3:00 — 2 commitsFri 4:00 — 0 commitsFri 5:00 — 0 commitsFri 6:00 — 0 commitsFri 7:00 — 0 commitsFri 8:00 — 5 commitsFri 9:00 — 7 commitsFri 10:00 — 7 commitsFri 11:00 — 12 commitsFri 12:00 — 1 commitsFri 13:00 — 6 commitsFri 14:00 — 6 commitsFri 15:00 — 5 commitsFri 16:00 — 3 commitsFri 17:00 — 14 commitsFri 18:00 — 2 commitsFri 19:00 — 3 commitsFri 20:00 — 7 commitsFri 21:00 — 5 commitsFri 22:00 — 8 commitsFri 23:00 — 1 commitsSat 0:00 — 1 commitsSat 1:00 — 0 commitsSat 2:00 — 1 commitsSat 3:00 — 0 commitsSat 4:00 — 0 commitsSat 5:00 — 1 commitsSat 6:00 — 0 commitsSat 7:00 — 3 commitsSat 8:00 — 3 commitsSat 9:00 — 4 commitsSat 10:00 — 4 commitsSat 11:00 — 5 commitsSat 12:00 — 8 commitsSat 13:00 — 2 commitsSat 14:00 — 3 commitsSat 15:00 — 5 commitsSat 16:00 — 1 commitsSat 17:00 — 8 commitsSat 18:00 — 1 commitsSat 19:00 — 1 commitsSat 20:00 — 3 commitsSat 21:00 — 2 commitsSat 22:00 — 2 commitsSat 23:00 — 0 commits
Commit volume by weekday and hour (UTC). Larger dots mean more commits.

Who is committing

last 52 weeks
Maintainer commits74 (34%)
Community commits141 (66%)

215 commits in total over the last year.

DateListRankStars gained
Jun 12, 2026daily#12+25
Jun 11, 2026daily#5+38
Jun 10, 2026daily#4+46
Jun 9, 2026daily#4+37
Jun 8, 2026daily#17+34
Jun 7, 2026daily#19+75
Jun 4, 2026daily#23+19
Jun 3, 2026daily#19+27
Jun 2, 2026daily#17+29
Jun 1, 2026daily#2+141
May 31, 2026daily#3+187
May 30, 2026daily#1+316
May 29, 2026daily#1+176
May 28, 2026daily#1+209
May 27, 2026daily#4+120
  • public-apis/public-apis

    A collective list of free APIs

    454.9K stars · Python

  • donnemartin/system-design-primer

    Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

    362.2K stars · Python

  • practical-tutorials/project-based-learning

    Curated list of project-based tutorials

    277.1K stars · Python

  • affaan-m/ECC

    The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

    238.5K stars · JavaScript

  • affaan-m/ECC

    The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

    234.7K stars · JavaScript

  • NousResearch/hermes-agent

    The agent that grows with you

    227K stars · Python