This task can be performed using Swiftia
AI Video Editing and repurposing API with Advanced Styling
Best product for this task

Swiftia
social-tools
Swiftia's API transforms long videos into engaging shorts with AI, CSS styling, speaker detection, and auto-reframing.
APIVideo APIAI VideoB2BVideo AutomationCSS SubtitlesAI editingAuto ReframingSocial media automationAI clipping

What to expect from an ideal product
- Automatically crops and resizes videos to fit common social formats like TikTok, Instagram Reels, and YouTube Shorts
- Smart speaker tracking keeps people centered in frame when converting landscape to portrait videos
- Applies custom styling and visual effects to match each platform's popular video aesthetic
- Picks out the most engaging parts of long videos to create scroll-stopping short clips
- Handles all the technical stuff like aspect ratios and dimensions for different social platforms in one go