An AI-powered system that fetches a YouTube video and restyles it in real time using Vision Agents with the Decart plugin.
This project integrates:
- Supadata → Fetch YouTube metadata or stream URL
- Vision Agents → AI agent orchestration
- Decart Plugin → Apply AI-based video restyling
- Stream → Real-time transport layer
The user provides a YouTube link, selects a style (e.g., GTA, Cyberpunk, Animated), and receives a restyled version of the video.
User → UI → Supadata → Vision Agent → Decart Plugin → Restyled Video Output
- User enters YouTube URL.
- Supadata fetches video metadata or stream URL.
- Vision Agent processes the video input.
- Decart applies selected AI restyling.
- Restyled video is streamed back to UI.
project-root/ │ ├── .env ├── video_fetcher.py ├── vision_agent.py ├── main.py ├── try_mirage.py ├── requirements.txt └── README.md
Create a .env file in the root directory:
SUPADATA_API_KEY=your_supadata_key DECART_API_KEY=your_decart_key
- SUPADATA_API_KEY → Fetch YouTube metadata
- DECART_API_KEY → Apply AI video restyling
- STREAM_API_KEY → Required for Vision Agents real-time transport
Responsible for:
- Accepting YouTube URL
- Calling Supadata API
- Returning video stream URL or metadata
Responsible for:
- Initializing Vision Agent
- Loading Decart plugin
- Passing video stream to Decart
- Applying selected restyling style
Example styles:
- GTA
- Cyberpunk
- Animated
- Cartoon
- Neon
Features:
- Input field for YouTube URL
- Dropdown menu for style selection
- Submit button
- Video player to display restyled output
- Start backend server.
- Open index.html.
- Paste a YouTube video URL.
- Select a style (e.g., Cyberpunk).
- Click "Restyle Video".
- Confirm:
- Video loads successfully.
- Style is visibly applied.
- Output streams smoothly (if real-time enabled).
- Real-time AI video transformation
- Plugin-based Vision Agent architecture
- Modular backend design
- Expandable to new styles
- API-driven integration
- Add style intensity slider
- Add before/after comparison mode
- Add downloadable restyled video
- Add user authentication
- Add caching for processed videos
Create virtual environment:
uv venv
source .venv/bin/activate
uv pip install -r requirements.txtMuhammad Talha