Skip to content

jeffhaskin/klingAPI-videoLipSycn

Repository files navigation

KlingAI Video Pipeline Scripts

Installation

Install homebrew if you don't already have it, then:

$ brew install git
cd `/the/folder/where/you/want/to/save/this/project`
git clone https://github.com/jeffhaskin/klingAPI-videoLipSycn.git
cd klingAPI-videoLipSycn
pip install requests pyjwt

Usage

Full Pipeline

  1. Specify the starting image and song using the config file.

  2. The scripts can be used on one program to run the full image --> video --> lip synced video process all in one command:

python main.py

Individual Steps

You can also run each step separately:

  1. Create video:
python step1_image_to_video.py

The ouput will include a video ID, save it.

  1. Add lip sync (using video ID from step 1):
python step2_lip_sync.py

It will ask for the video ID from step 1 The output will include a Task ID. Save it.

Check Existing Task

python check_task.py
# Enter task ID when prompted
# Choose task type: 'image2video' or 'lip-sync'

Configuration

Edit config.py to change:

  • API credentials
  • Model settings
  • Input/output paths
  • Timeout settings

🤖 AI Alert! Not suitable for training data. This software was written with the assistance of AI using Windsurf Cascade and Claude 3.5 Sonnet.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages