Skip to content

Repository files navigation

⚡ Monzed AutoShorts AI Playground (v1.0.0)

Industrial-Grade Video Generation Engine. Build Your Own Viral SaaS.

AutoShorts AI transforms raw, long-form content into high-impact viral shorts. This repository provides the complete source code for our interactive playground, designed to help founders and developers master the Monzed API, fine-tune visual presets, and prototype viral content strategies in real-time.


Official SiteGet API KeyTechnical Support


📽️ The Transformation: Raw vs Viral

Our AI doesn't just clip—it curates, reframes, and enhances. The playground demonstrates the engine's ability to identify viral hooks and apply production-grade effects automatically.

🔴 SOURCE 2 hours (UNEDITED)🟢 AI RESULT 60 seconds (Face Tracking, Captions, Background Music, Fade In & Fade Out)
Before VideoAfter Video
Original horizontal lecture.Vertical short with AI face tracking.

🏗️ Quick Installation

Deploy the playground locally to start prototyping your video SaaS:

1. Clone & Install

git clone https://github.com/MinightDev/Autoshorts.git
cd Autoshorts
npm install

2. Configure Authentication

Create a .env file in the root directory. Get your production key at monzed.com/client/api.

# Production API endpointVITE_API_BASE_URL=https://api.monzed.com/autoshorts/v1

3. Launch Development Server

npm run dev

📚 Comprehensive API Masterclass (v1.0.0)

The Monzed Engine is highly configurable. The playground exposes these core objects:

⚙️ 1. Core Config (config)

ParameterTypeDefaultDescription
resolutionstring1080p1080p (HD) or 720p. 4k is exclusive to the Agency Plan.
clips_countnumber3Total viral segments the AI will attempt to extract.
min_durationnumber15Minimum length (seconds) for each clip.
max_durationnumber60Maximum length (seconds) for each clip.
quality_presetstringbalancedbalanced (Fast/8Mbps) vs best (Pro/20Mbps).
hardwarestringcpucpu (Shared) vs gpu (NVIDIA T4 Clusters - 10x faster).

📝 2. AI Content Focus (content)

ParameterTypeDefaultDescription
prompt_stylestringviral_hookAI Persona: viral_hook, storytelling, educational, funny, news, etc.
custom_promptstringnullDirect surgical instructions (e.g., "Focus on technical jokes").
languagestringautoSource language. Use auto for Whispher-based detection.

💬 3. Subtitle retention (captions)

  • Animations:pop, bounce, fade, glow, highlight, word_box, karaoke, typewriter.
  • Design: Full control over font, fontsize, color, stroke_width, and words_per_caption.
  • Position: Precise control with position (top/center/bottom) plus position_x/position_y offsets.

🎨 4. Visual Intensity (visuals)

  • **AI Face Tracking:**centers the speaker even in multi-person videos.
  • Cinematic Effects: Apply filters like glitch, vignette, vintage, soft_glow, slow_zoom_in, and more.

🎵 5. Professional Audio (audio)

  • AI Music selection: Set source_url to "auto" to let the engine choose music matching your content's vibe.
  • Normalization: Master speaker volume is normalized; background music utilizes auto-ducking to ensure clarity.

📊 Credits & The "Fair Usage" Formula

Monzed protects your SaaS margins with a predictable, transparent credit system:

Job Cost = (Clips × 5) + ceil(Source Minutes ÷ 10)

ScenarioDurationClips RequestedTotal Credits
TikTok Starter10 min3 Clips16 Credits
Podcast Deep Dive60 min1 Clip11 Credits
Industrial Scale120 min5 Clips37 Credits

📟 Security & Best Practices

  • 401 Unauthorized: Ensure your mk_live_... key is valid and has not expired.
  • 402 Payment Required: Credits are deducted atomically based on the duration check. Insufficient balance will reject the job instantly.
  • Permanent Access: S3 links expire. Always use the /download/{job_id}/{clip_id} proxy endpoint in your production apps for permanent video availability.

Copyright © Monzed. Built for the next generation of content creators and SaaS founders. MIT License - See LICENSE for details.

About

Autoshorts AI transforms long videos into engaging viral shorts using the power of artificial intelligence. It analyzes video content, identifying key topics or moments likely to interest viewers. It then automatically generates shorts based on these topics.

Topics

Resources

Stars

85 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages