Skip to content

office233/MoneyPrinterPro

Repository files navigation

Persona Media Studio

Local-first AI creative pipeline for persona-based image and video generation with identity preservation, prompt orchestration, and quality scoring.

License Next.js Stars


📸 Generated Examples — Zero Manual Editing

Every image and video below was generated 100% by this pipeline. Same persona, consistent identity across all outputs.

AI-Generated Images

👆 8 images, 1 persona, different styles — the face stays consistent because of our identity lock engine.

🎬 AI-Generated Videos (VEO 3.1)


Image → 8s video · VEO 3.1

Urban lifestyle

Fashion editorial

🎞️ Multi-Shot Video Sequences

The pipeline can generate multi-shot sequences — multiple cinematic clips from different angles, seamlessly chained:


Close-up hook shot

Mid-range portrait

Movement tracking

If this is useful to you, give it a star! It helps others discover it.


🔥 What Makes This Different

Most AI image generators give you a prompt box and a button. Persona Media Studio is a full content pipeline — from prompt planning to quality scoring.

  • Image + Video generation — Gemini for images, VEO 3.1 for cinematic 9:16 video
  • Identity preservation — same face across all outputs using reference photos
  • 7 visual engines — lighting, shadow, motion, weather, outfit, scene validation, visual context
  • Smart content planner — weighted pillar selection, anti-repeat scene picker, caption generator
  • AI quality scoring — 5-channel analysis (face, eyes, lighting, motion, composition)
  • Autopilot mode — batch generate with automatic planning
  • Publish guard — quality gate blocks low-quality outputs
  • Your own API key — pay Google directly, no middleman

⚠️ Responsible Use

  • This tool is intended for user-owned or consented creative assets only.
  • It does not include impersonation, scraping, or automated publishing features.
  • API keys stay user-controlled (bring-your-own-key model).
  • Generated assets are stored locally by default.
  • Do not use this tool to generate non-consensual content of real people.

✨ Features

🖼️ AI Image Generation

Photorealistic images with identity-locked reference photos. Upload one photo → get consistent identity across hundreds of generations.

🎬 AI Video Generation

8-second cinematic 9:16 videos from any generated image using Google VEO 3.1. Perfect for Reels, TikTok, Shorts.

🧠 7 Visual Engines

Ported from a production autonomous agent pipeline:

  • Lighting Engine — golden hour, studio, neon, based on location & time
  • Shadow Engine — directional shadows matching the lighting
  • Motion Engine — motion profiles (subtle, dynamic, static)
  • Weather Engine — weather validation & visual effects
  • Outfit Bias Engine — outfit adjustments for scene/weather
  • Scene Validator — validates shot/scene combinations
  • Visual Context Orchestrator — combines all engines into one cinematic prompt

📋 Smart Content Planner

  • Weighted pillar selection — balances content types (lifestyle, urban, music...)
  • Anti-repeat scene picker — never generates the same location/outfit/time twice in a row
  • Shot picker — weighted archetype selection with constraints
  • Caption generator — pillar-aware captions with soft CTAs

📊 AI Quality Scoring

Python FastAPI microservice that analyzes generated videos across 5 channels:

  • Face stability · Eye engagement · Lighting consistency · Motion smoothness · Composition

🛡️ Publish Guard

Quality gate with persona-specific thresholds — blocks low-quality content from publishing.

🚀 Autopilot Mode

Batch generate content automatically. Pick a persona, set the count, hit go. Planner decides style, location, shot — you just collect the results.


🚀 Quick Start

1. Clone & Install

git clone https://github.com/office233/MoneyPrinterPro.git
cd MoneyPrinterPro
npm install

2. Get a Gemini API Key

  1. Go to Google AI Studio
  2. Click "Create API Key"
  3. Copy the key

3. Run

npm run dev

4. Configure

  1. Open http://localhost:3000
  2. Go to ⚙️ Settings → paste your Gemini API key → Test Connection
  3. Create a persona → upload a reference photo
  4. Generate images or videos 🎉

5. (Optional) Start Scoring Service

cd scoring-service
pip install -r requirements.txt
uvicorn main:app --port 8000

💳 API Costs (Pay Google Directly)

You pay Google directly. No middleman. No markup. No subscription.

What Model Cost
Image (512px) Gemini Flash Image ~$0.045
Image (1024px) Gemini Flash Image ~$0.067
Video (8s 9:16) VEO 3.1 ~$0.50

$10 ≈ 150 images or 20 videos. Your data stays on your machine.


📁 Project Structure

money-printer-pro/
├── src/app/                  # Next.js pages
│   ├── page.jsx              # Dashboard (job history + stats)
│   ├── generate/             # Generation page (image/video/both)
│   ├── autopilot/            # Autopilot batch generation
│   ├── settings/             # API key settings
│   ├── personas/new/         # Create persona
│   └── api/                  # Backend routes
│       ├── generate/         # Image generation
│       ├── generate-video/   # Video generation (VEO)
│       ├── jobs/             # Job history
│       ├── autopilot/        # Autopilot controller
│       └── score/            # Quality scoring
├── src/lib/
│   ├── engines/              # 7 visual engines
│   ├── planner/              # Content planner
│   ├── video/                # VEO video module
│   ├── scoring/              # Scoring client
│   ├── db.js                 # SQLite database
│   └── publish-guard.js      # Quality gate
├── src/config/               # Engine config JSONs
├── scoring-service/          # Python FastAPI scoring
├── examples/                 # Generated examples (in repo)
├── assets/                   # Reference & generated (gitignored)
└── data/                     # SQLite database (gitignored)

🛠️ Tech Stack

Layer Technology
Frontend Next.js 16, React 19
AI — Images Google Gemini API (@google/genai)
AI — Video Google VEO 3.1 (Vertex AI)
Engines 7 visual context engines (pure JS)
Database SQLite via better-sqlite3
Scoring Python FastAPI + OpenCV + InsightFace
Styling Vanilla CSS (dark Linear-inspired theme)

🔒 Privacy & Security

  • API keys live only in your browser's localStorage. Sent via x-api-key header only.
  • No server-side fallback key. No key = HTTP 401.
  • All inputs validated server-side — path traversal protection, MIME checking, body size limits.
  • No telemetry, no tracking, no analytics.
  • Everything stays on your machine.

Current Limitations

  • The quality scoring service is experimental and requires manual setup.
  • Rate limiting is local/in-memory and not suitable for distributed deployment.
  • Production authentication and team-management features are not implemented.
  • Test coverage should be expanded before production use.
  • The video scoring pipeline requires additional Python dependencies.

📝 License

MIT — Use it however you want.


⭐ Star this repo if you find it useful!

About

Local-first AI creative pipeline for persona-based image/video generation. Identity preservation, visual engines, quality scoring, autopilot mode. Gemini + VEO 3.1.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors