caelum0x d56639a594
Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Menivor — open source release (MIT), free to use and fork
Paid, hosted product at menivor.com, now retired as a company project.
Fresh squashed history of the cleaned working tree (secret-scanned,
no .env, no customer data, no outreach logs). Built on
MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
2026-12-04 02:10:26 +03:00

3.9 KiB

freegen — make AI videos free on your own Mac

Local, $0 video generation for the Menivor desktop app and the Oxhan "Very Turkish Time" series. All models are Apache-2.0 licensed; no API keys, no cloud bills, no rate limits.

The idea: local generation is always free for users. Revenue comes from optional extras — cloud rendering (faster, no GPU needed), auto-posting to TikTok and Instagram, and team plans. The free tier is not crippled.


What is in this folder

File Purpose
stills.py Text prompt → 1080x1920 PNG via FLUX.1-schnell 4-bit
assemble.py Stills/clips + Kokoro voice + whisper.cpp captions → mp4
server.py FastAPI local sidecar for the Menivor desktop app
kaggle/wan_i2v.ipynb Kaggle notebook: stills → 3-5 s clips (Wan 2.2)
kaggle/train_lora.ipynb Kaggle notebook: character LoRA from 15 images
kaggle/README.md Three owner steps to set up Kaggle GPU access

Quick start

cd videogen/tools/freegen
python3 -m venv .venv
source .venv/bin/activate
pip install mflux kokoro-onnx fastapi uvicorn pillow soundfile httpx

Generate a still

python stills.py "a rainy Istanbul street at night, cinematic" --seed 1

First run downloads FLUX.1-schnell (~34 GB). After that:

mflux-save --model schnell --quantize 4 --path ~/mflux-schnell-q4
rm -rf ~/.cache/huggingface/hub/models--black-forest-labs--FLUX.1-schnell
# subsequent runs load only ~9 GB
python stills.py "..." --saved-model ~/mflux-schnell-q4

Assemble a video

python assemble.py --shots '[
  {"still":"shot1.png","text":"Tenders close this week.","push":false},
  {"still":"shot2.png","text":"Win your first contract.",  "push":true}
]' --out video.mp4 --product-name Bidstage --product-url bidstage.app

Run the local sidecar (for the Menivor desktop app)

python server.py
# -> http://127.0.0.1:8765/api/v1

Set the desktop app's API base URL to http://127.0.0.1:8765/api/v1. See videogen/docs/freegen-desktop.md for the full integration guide.

Run test stills (disk check first)

python stills.py --test

Output: test-stills/oxhan-hero-phoenix.png and test-stills/bidstage-tenders-closing.png.

Run test video (Ken Burns fallback, 15 s)

python assemble.py --test

Output: test-output/test-15s.mp4.


Disk requirements

Step Disk
First FLUX run (bfloat16 download) ~34 GB free needed
After mflux-save + delete HF cache ~9 GB
Kokoro ONNX model (auto-downloaded) ~390 MB
whisper.cpp base model (optional) ~142 MB

The Mac must have at least 38 GB free for the first FLUX run (34 GB model + 4 GB minimum reserve). After mflux-save + rm -rf ~/.cache/huggingface/hub/... only 13 GB is needed.


Licenses

Model License Notes
FLUX.1-schnell Apache-2.0 Commercial use OK
Kokoro-82M (TTS) Apache-2.0 Commercial use OK
Wan 2.1/2.2 Apache-2.0 Commercial use OK
LatentSync Apache-2.0 Commercial use OK
whisper.cpp MIT Commercial use OK

NOT included: FLUX.1-dev, FLUX.1-Kontext-dev (non-commercial), Wav2Lip (research only).


Competing with paid AI video tools

Tool Cost per video Local?
Menivor freegen $0 Yes
Runway Gen-4 $12+ No
HeyGen $24+ No
Seedance (Replicate) $3-6 No
Midjourney + manual edit $10+ No

freegen is the only option that is local, free, and produces 9:16 MP4s with voiceover and captions in a single command.


Integration with Megaphone (Menivor's in-house marketing)

See videogen/docs/megaphone/FREEGEN.md for how Megaphone can switch from paid Replicate stills to freegen stills per product.

Integration with Oxhan Very Turkish Time

See videogen/docs/freegen-desktop.md and the episode scripts in gtm/oxhan-very-turkish-time/episodes/.