一个对外端口(默认 9088)同时提供:
| 入口 | 地址 | 能力 |
|---|---|---|
| 门户 | http://127.0.0.1:9088/ | 模块导航 |
| Toonflow | http://127.0.0.1:9088/toonflow/ | 小说 → 剧本 → 资产 → 分镜 → 成片(官方 Toonflow-app 嵌入) |
| Studio | http://127.0.0.1:9088/studio/ | 主题 / 文案 → 素材 → 字幕 → BGM → 高清短视频 |
| WebUI | http://127.0.0.1:9088/webui/ | Streamlit 经典配置界面 |
| API | http://127.0.0.1:9088/docs | FastAPI /api/v1 |
内部服务不对外暴露:Streamlit 18501、Toonflow-app 11588,由网关反代。
- Toonflow 短剧工坊:
vendor/toonflow-app完整嵌入,功能保持上游;本仓库只套 Atelier 深色皮肤。出图 / 视频模型在 Toonflow 设置页配置,与config.toml相互独立。 - Studio 经典短视频:AI 生成或粘贴文案,Pexels / Pixabay / 本地素材,批量出片,字幕字体 / 位置 / 描边可调。
- 统一网关:
start.sh一键拉起 API、WebUI、Toonflow。 - 多模型:OpenAI、Moonshot、Azure、通义千问、DeepSeek、Grok (xAI)、Gemini、Ollama、g4f、one-api、文心一言、Pollinations。
- 配音:Azure TTS v1/v2、SiliconFlow;字幕
edge/whisper。
文档:
- Python 3.11,建议 4 核 / 4GB 内存
- macOS 11+ / Windows 10+ / Linux
- Toonflow 需要 Node.js 20 LTS(首次
scripts/toonflow-app.sh install) - ImageMagick、ffmpeg(后者多数情况会自动下载)
git clone https://github.com/ddsyw/MoneyPrinterTurbo.git
cd MoneyPrinterTurbo
cp config.example.toml config.toml # 填写 LLM 与素材 API Key
pip install -r requirements.txt
bash start.sh # Windows: start.bat停止:bash stop.sh。首次 Toonflow 账号 admin / admin123。
配置项说明见 config.example.toml。国内用户 LLM 可用 DeepSeek 或 Moonshot(无需 VPN)。素材源需 Pexels 或 Pixabay Key。
docker compose up访问 http://127.0.0.1:9088/ 。镜像内 Toonflow(Node)可能不可用,短剧工坊建议本机 start.sh。
python main.py # 网关 + API,默认 9088
sh webui.sh # 独立 Streamlit(不经过网关)conda create -n MoneyPrinterTurbo python=3.11
conda activate MoneyPrinterTurbo
pip install -r requirements.txtImageMagick:
- macOS:
brew install imagemagick - Ubuntu:
sudo apt-get install imagemagick - Windows:安装 静态库版本,并把
config.toml的imagemagick_path指到magick.exe
音色列表:docs/voice-list.txt
config.toml 中 subtitle_provider:
edge:快,默认whisper:慢但更稳,需 faster-whisper-large-v3(约 3GB),解压到models/whisper-large-v3/- 留空:不烧字幕
BGM 放 resource/songs/,字幕字体放 resource/fonts/。
No ffmpeg exe could be found
从 https://www.gyan.dev/ffmpeg/builds/ 下载后设置:
[app]
ffmpeg_path = "C:\\Users\\yourname\\Downloads\\ffmpeg.exe"ImageMagick policy 拒绝 @ 临时文件
编辑 /etc/ImageMagick-X/policy.xml,把 pattern="@" 的 rights="none" 改为 rights="read|write"。
Too many open files
ulimit -n 10240Toonflow 嵌入页空白
bash scripts/toonflow-app.sh status
bash scripts/toonflow-app.sh startWindows 原生模块编译失败时用 Node 20 LTS,必要时安装 VS Build Tools(桌面 C++)。详见 docs/toonflow-upstream.md。
