AI short video generator using Gemini 3 Pro + Veo 3.1 on Vertex AI
Project description
ClawCut 🦞✂️
AI-powered short video generator using Google's latest models
Turn a topic into a polished short video — automatically. ClawCut generates a 9-scene script, creates character-consistent imagery, produces video clips with Veo 3.1, trims silence, and concatenates everything into a final video.
✨ Features
- Script Generation — Gemini 3 Pro writes a 9-scene narrative from your topic
- Nine-Grid Character Consistency — generates a 3×3 reference grid to keep characters consistent across scenes
- Veo 3.1 Video Generation — each scene becomes a cinematic video clip with Chinese narration
- Silence Trimming — automatically removes leading/trailing silence from clips
- Video Imitation — upload a reference video to match its style and pacing
- Multi-Image Reference — upload up to 14 images for character appearance guidance
🛠 Tech Stack
| Component | Technology |
|---|---|
| Script & Image | Gemini 3 Pro |
| Video | Veo 3.1 |
| Frontend | Gradio |
| Audio/Video | FFmpeg |
| Runtime | Python 3.11+ |
🚀 Quick Start
# Clone
git clone https://github.com/YOUR_USERNAME/clawcut.git
cd clawcut
# Virtual environment
python3 -m venv venv
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Configure
cp .env.example .env
# Edit .env with your values (see below)
# Run
python app.py
# Opens at http://localhost:7860
⚙️ Environment Variables
| Variable | Description | Required |
|---|---|---|
GOOGLE_APPLICATION_CREDENTIALS |
Path to your GCP service account JSON | ✅ |
VERTEX_PROJECT |
Your GCP project ID | ✅ |
VERTEX_LOCATION |
GCP region (default: us-central1) |
❌ |
FFMPEG_PATH |
Path to ffmpeg binary | ❌ |
🤖 Models Used
| Model | Purpose |
|---|---|
gemini-3-pro-preview |
Script generation |
gemini-3-pro-image-preview |
Character consistency grid image |
veo-3.1-generate-001 |
Video clip generation |
veo-3.1-fast-generate-001 |
Fast video generation (optional) |
📁 Project Structure
clawcut/
├── app.py # Gradio UI
├── pipeline.py # Core pipeline (script → grid → video → trim → concat)
├── config.py # Configuration from environment variables
├── .env.example # Environment variable template
└── requirements.txt
📄 License
MIT © 2026 ClawCut Contributors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clawcut-1.1.0.tar.gz.
File metadata
- Download URL: clawcut-1.1.0.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9168a3e77702d3b13d30e7b20c2670ec1269c7182def9f6b87b54bc83f103f11
|
|
| MD5 |
336108170d68d6f6dcd4898db4cbd1aa
|
|
| BLAKE2b-256 |
225b65825dadd72b8cbd660b6c4022d0d15da4a543517a526e15cbc84ea4e396
|
File details
Details for the file clawcut-1.1.0-py3-none-any.whl.
File metadata
- Download URL: clawcut-1.1.0-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f177ae2508ae07e05bfcf80d5b738bc267249d59267a05ad3bd5d91c482954c
|
|
| MD5 |
1ca2dc12c0526d2a9adb5557cbcff0f4
|
|
| BLAKE2b-256 |
bcfee5dad2afca073ed55f50078a1b5b0222886254a317c5b39f6de9612f627c
|