Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mass Deepfake API

A FastAPI-based service that generates personalized deepfake videos by combining AI-generated audio with lip-sync technology. Given a list of names, the API generates audio using ElevenLabs, uploads to Publitio, and creates synchronized videos via Gooey AI.

Features

  • Audio Generation - Create personalized audio files using ElevenLabs voice synthesis
  • File Hosting - Upload and host audio files via Publitio
  • Lip Sync - Generate deepfake videos with Gooey AI lip-sync technology
  • REST API - Simple FastAPI endpoints for integration

Prerequisites

You need API keys from:

Installation

git clone https://github.com/yourusername/Mass_Deepfaker_API.git
cd Mass_Deepfaker_API
pip install -r requirements.txt

Configuration

Create a .env file in the project root:

ELEVENLABS_API=your_elevenlabs_api_key
PUBLITIO_API=your_publitio_api_key
PUBLITIO_SECRET=your_publitio_secret_key
GOOEY_API=your_gooey_api_key

Running the API

python main.py

The server runs at http://localhost:8000.

API Endpoints

Method Endpoint Description
POST /generate_videos Generate deepfake videos for a list of names
GET / Health check

Usage Example

Request

curl -X POST "http://localhost:8000/generate_videos" \
  -H "Content-Type: application/json" \
  -d '["Alice", "Bob", "Charlie"]'

Response

{
  "results": [
    {"name": "Alice", "output_video": "https://..."},
    {"name": "Bob", "output_video": "https://..."},
    {"name": "Charlie", "output_video": "https://..."}
  ]
}

Python Client

import requests

url = "http://localhost:8000/generate_videos"
names = ["Alice", "Bob", "Charlie"]
response = requests.post(url, json=names)
print(response.json())

Project Structure

Mass_Deepfaker_API/
├── api/
│   ├── __init__.py
│   └── routes.py          # FastAPI endpoints
├── config/
│   ├── __init__.py
│   └── settings.py        # Environment variables and constants
├── services/
│   ├── __init__.py
│   ├── elevenlabs_service.py   # Audio generation
│   ├── publitio_service.py      # File upload and cleanup
│   └── gooey_service.py         # Lip-sync video generation
├── main.py                # Application entry point
├── requirements.txt       # Python dependencies
├── .env                   # API keys (not committed)
└── .gitignore

How It Works

  1. Input - Send a list of names to the API
  2. Audio Generation - ElevenLabs generates personalized audio for each name
  3. Upload - Audio files are uploaded to Publitio for hosting
  4. Cleanup - Local audio files are deleted after upload
  5. Lip Sync - Gooey AI generates synchronized videos using the audio URLs
  6. Output - Returns a list of video URLs for each name

License

MIT License

Contact

sobanpythonista@gmail.com

About

this a mass deepfake api that takes in a multiple text and then makes deepfakes on the given video

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages