The following steps are required to install and configure CapCutAPI:
environmental preparation
First make sure that Python 3.8 or later is installed on your computer. You can check the version by running python -version. If you don't have Python installed, you'll need to download it from the official Python website.
cloning project
Use Git to clone your project locally:
git clone https://github.com/sun-guannan/CapCutAPI.git
If you don't have Git installed, you'll need to download it from the Git website.
Installation of dependencies
Enter the project directory and run it:
pip install -r requirements.txt
This will install all the necessary Python dependencies such as requests and pydub.
CapCut Configuration
Ensure that your computer has the latest version of CapCut software installed (available for download from the CapCut website). Some features may require CapCut Professional.
Environment variable settings
Some features, such as AI subtitle generation, require an API key to be configured, which needs to be saved in an environment variable or project configuration file.
This answer comes from the articleCapCutAPI: Open source tool for automated control of CapCut video clipsThe































