Prompt2Shorts is an innovative application that generates short-form content by transforming prompts into full scripts, voice-over audio, and relevant videos. Designed for creators who want to quickly produce engaging content, Prompt2Shorts integrates advanced AI and APIs to automate the creation process.
Clone the repository:
git clone https://github.com/CityIsBetter/Prompt2Shorts.git
cd Prompt2Shorts
Install dependencies:
yarn install
# or
npm install
Create a .env
file in the root directory and add your API keys:
NEXT_PUBLIC_OPENROUTER_API_TOKEN=your_openrouter_api_token
NEXT_PUBLIC_PLAY_SECRET=your_play_ht_secret
NEXT_PUBLIC_PLAY_USER_ID=your_play_ht_user_id
NEXT_PUBLIC_RAPIDAPI_KEY=your_rapidapi_key
Start the development server:
yarn dev
# or
npm run dev
Open your browser and navigate to http://localhost:3000
to see the app in action.
Used for generating scripts from prompts. I used this model using OpenRouter API. Ensure you have the API key and endpoint configured in your .env
file.
Generates voice-over audio from scripts. I used this model using RapidAPI API. API key and endpoint should be set in the .env
file. Check out Play HT text-to-speech AI, it is more realistic but the freeium version has very less credits.
Fetches video clips relevant to the generated script. API key must be included in the .env
file.
We welcome contributions to improve Prompt2Shorts! Please fork the repository and submit a pull request. Ensure that your code adheres to the existing style and includes tests where applicable.
This project is licensed under the MIT License. See the LICENSE file for details.
Thank you for using Prompt2Shorts!