harry0703 / MoneyPrinterTurbo

MoneyPrinterTurbo 💸

MoneyPrinterTurbo 💸 简体中文 | English

只需提供一个视频主题或关键词,就可以全自动生成视频文案、视频素材、视频字幕、视频背景音乐,然后合成一个高清的短视频。 Simply provide a video topic or keyword, and it will automatically generate the video script, footage, subtitles, and background music, then synthesize them into a high-definition short video.

Web界面 & API界面 (Web Interface & API Interface)

功能特性 (Features)

🎯 完整的 MVC 架构,代码结构清晰,易于维护,支持 API 和 Web 界面。 🎯 Complete MVC architecture with clean, maintainable code, supporting both API and Web interfaces.

支持视频文案 AI 自动生成,也可以自定义文案。 Supports AI-generated video scripts, or you can provide your own custom script.

支持多种高清视频尺寸:竖屏 9:16 (1080x1920),横屏 16:9 (1920x1080)。 Supports various HD video aspect ratios: Portrait 9:16 (1080x1920) and Landscape 16:9 (1920x1080).

支持批量视频生成,可以一次生成多个视频,然后选择一个最满意的。 Supports batch video generation, allowing you to create multiple videos at once and choose the best one.

支持视频片段时长设置,方便调节素材切换频率。 Supports video clip duration settings to easily adjust the frequency of footage transitions.

支持中文和英文视频文案。 Supports both Chinese and English video scripts.

支持多种语音合成,可实时试听效果。 Supports various text-to-speech (TTS) voices with real-time preview.

支持字幕生成,可以调整字体、位置、颜色、大小,同时支持字幕描边设置。 Supports subtitle generation with customizable font, position, color, size, and stroke settings.

支持背景音乐,随机或者指定音乐文件,可设置背景音乐音量。 Supports background music (random or specified files) with adjustable volume.

视频素材来源高清且无版权,也可以使用自己的本地素材。 Video footage sources are high-definition and royalty-free; you can also use your own local footage.

支持 OpenAI、Moonshot、Azure、gpt4free、one-api、通义千问、Google Gemini、Ollama、DeepSeek、MiniMax、文心一言、Pollinations、ModelScope 等多种模型接入。 Supports integration with various models including OpenAI, Moonshot, Azure, gpt4free, one-api, Qwen, Google Gemini, Ollama, DeepSeek, MiniMax, Ernie Bot, Pollinations, ModelScope, etc.

中国用户建议使用 DeepSeek 或 Moonshot 作为大模型提供商(国内可直接访问,不需要 VPN。注册就送额度,基本够用)。 For users in China, it is recommended to use DeepSeek or Moonshot as the LLM provider (accessible directly without a VPN; they offer free credits upon registration, which are generally sufficient).


配置要求 (System Requirements) 📦

建议系统:Windows 10 或 MacOS 11.0 以上,或主流 Linux 发行版。 Recommended OS: Windows 10 or MacOS 11.0+, or mainstream Linux distributions.

GPU 不是必需项,但如果你希望本地转录、更快的视频处理或更顺畅的批量生成体验,建议使用带显存的独立显卡。 A GPU is not required, but if you want local transcription, faster video processing, or a smoother batch generation experience, a dedicated graphics card with VRAM is recommended.

项目 (Item)最低配置 (Minimum)推荐配置 (Recommended)理想配置 (Ideal)
CPU4 核6 到 8 核8 核及以上
RAM4 GB8 GB16 GB 及以上
GPU非必须4 GB 显存及以上8 GB 显存及以上

如果你主要依赖云端 LLM、云端 TTS 和在线素材源,CPU 与内存比 GPU 更重要。 If you rely primarily on cloud LLMs, cloud TTS, and online footage sources, CPU and RAM are more important than the GPU.

如果你启用 faster-whisper、批量生成或更重的本地处理链路,GPU 会明显提升速度。 If you enable faster-whisper, batch generation, or heavier local processing pipelines, a GPU will significantly improve speed.


快速开始 (Quick Start) 🚀

推荐使用方式 (Recommended Usage):

  • Windows 用户: 优先使用一键启动包,适合快速体验。
    • Windows Users: Use the one-click startup package for a quick experience.
  • MacOS / Linux 用户: 优先使用 uv sync --frozen 进行本地部署。
    • MacOS / Linux Users: Use uv sync --frozen for local deployment.
  • 想要隔离运行环境: 优先使用 Docker 部署。
    • For isolated environments: Use Docker deployment.
  • 在 Google Colab 中运行: 免去本地环境配置,点击直接在 Google Colab 中快速体验。
    • Run in Google Colab: Skip local configuration and experience it directly in Google Colab.

安装部署 (Installation) 📥

前提条件 (Prerequisites)

  • 尽量不要使用中文路径,避免出现一些无法预料的问题。
    • Avoid using Chinese characters in file paths to prevent unexpected issues.
  • 请确保你的网络是正常的,VPN 需要打开全局流量模式。
    • Ensure your network is stable; if using a VPN, enable global mode.

① 克隆代码 (Clone the repository)

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

② 修改配置文件 (Configure)

config.example.toml 文件复制一份,命名为 config.toml。按照说明配置好 pexels_api_keysllm_provider。 Copy config.example.toml and rename it to config.toml. Configure pexels_api_keys and llm_provider according to the instructions.


Docker 部署 (Docker Deployment) 🐳

① 启动 Docker

cd MoneyPrinterTurbo
docker compose up

② 访问 Web 界面

打开浏览器,访问 http://0.0.0.0:8501 Open your browser and visit http://0.0.0.0:8501

③ 访问 API 文档

打开浏览器,访问 http://0.0.0.0:8080/docs Open your browser and visit http://0.0.0.0:8080/docs


特别感谢 (Special Thanks) 🙏

由于该项目的部署和使用对于一些小白用户来说还是有一定的门槛,在此特别感谢 录咖 (RecCloud) 网站基于该项目提供的免费 AI 视频生成器服务,可以不用部署,直接在线使用。 Since deployment can be challenging for some users, special thanks to RecCloud for providing a free AI video generator service based on this project, allowing users to use it online without deployment.

感谢赞助 🙏 感谢 佐糖 (PicWish) 对该项目的支持和赞助,使得该项目能够持续的更新和维护。 Thanks to PicWish for their support and sponsorship, which enables the continuous update and maintenance of this project.