Skip to content

VidCraft is an AI-driven full stack application that generates videos from user-defined topics and backgrounds. It combines text, audio, and visuals using advanced AI services, making video creation accessible and efficient for developers and content creators alike.

License

Notifications You must be signed in to change notification settings

LohiyaH/VidCraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VidCraft

Description

This backend application is built using FastAPI and is designed to generate videos based on user-defined topics and backgrounds. It integrates multiple AI services for text generation, audio synthesis, image creation, and subtitle generation. The application handles various tasks, including cleaning text, formatting subtitles, and generating video files using FFmpeg.

Installation

  1. Clone the repository:
    git clone https://github.com/LohiyaH/VidCraft
    cd shorty
  2. Install the required dependencies:
    pip install -r backend/requirements.txt
  3. Set up environment variables in a .env file:
    GEMINI_API_KEY=<your-gemini-api-key>
    ELEVENLABS_API_KEY=<your-elevenlabs-api-key>
    HUGGINGFACE_API_KEY=<your-huggingface-api-key>
    

Usage

  1. Run the FastAPI application:
    uvicorn backend.main:app --reload
  2. Access the API documentation at http://localhost:8000/docs.

Navigate to the frontend directory

  1. cd frontend

Install dependencies

  1. npm install

Start the development server

  1. npm run dev

API Endpoints

  • POST /api/generate-video

    • Request Body:
      {
        "topic": "string",
        "background": "string"
      }
    • Response:
      {
        "videoUrl": "string"
      }
  • GET /api/test

    • Returns a simple test message.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

VidCraft is an AI-driven full stack application that generates videos from user-defined topics and backgrounds. It combines text, audio, and visuals using advanced AI services, making video creation accessible and efficient for developers and content creators alike.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published