Don't just post about a trend—create a viral, high-quality video instantly! This bot fetches the top real-time trends from X using the AIsa Twitter API, crafts a highly visual, cinematic prompt via the AIsa LLM Gateway (gpt-4o), and finally submits it to AIsa's AIGC Video Synthesis engine.
- Real-Time Targeting: Pings the
/twitter/trendsAPI endpoint for the hottest topics. - Cinematic Prompts: Employs an LLM to translate a simple text trend into a detailed visual generation prompt.
- Asynchronous Rendering: Creates an AI video synthesis task and continuously polls for completion automatically.
- Clone the repository and navigate to this folder.
- Install the requirements:
pip install -r requirements.txt
- Copy
.env.exampleto.envand add your AIsa API key.
Simply run the script. It will automatically detect the top trend and start rendering!
python generator.py