Skip to content

Repository files navigation

Continuum | Infinite Video Synthesis

Continuum is a next-generation video synthesis platform designed to solve the "blind creation" problem in AI video generation. By leveraging Gemini 3 Pro as a "Director of Photography" and Veo 3.1 as a high-fidelity rendering engine, Continuum allows users to build infinite, seamless video streams through a linear extension workflow.

Continuum Badge Model Brain

Core Capabilities

  1. Linear Stream Creation: Build videos segment by segment.
  2. Intelligent Extensions: Gemini 3 analyzes the momentum/subject of the previous clip to generate the prompt for the next one.
  3. Dual-Tier Engine:
    • Free / Draft Mode: Uses gemini-3-flash-preview and veo-3.1-fast-generate-preview for rapid iteration.
    • Paid / Pro Mode: Uses gemini-3-pro-preview and veo-3.1-generate-preview for high-fidelity rendering and superior video-to-video consistency.
  4. Local Export: Generates an FFmpeg script to stitch your clips with cinematic cross-dissolves locally.

Installation & Setup

Prerequisites

  • Node.js (v18+)
  • Google AI Studio API Keys: You may need two keys depending on your usage.

Steps

  1. Install Dependencies

    npm install
  2. Run Development Server

    npm run dev
  3. Configure App

    • Open the app in your browser (usually http://localhost:5173).
    • Click the Settings (Gear) icon in the top right.
    • Enter your API Keys. You can use the same key for both slots if that key has billing enabled on its associated GCP project.
    • Select your desired operation mode (Free vs Paid).

Usage Guide

The "Stream" Workflow

  1. Input: Type your vision in the "Director's Box" (e.g., "A cyberpunk detective walking in rain").
  2. Analyze: Click the Paper Plane icon. Gemini will "think" and propose a cinematic plan (Camera, Lighting, Subject).
  3. Edit & Confirm: Review the plan. You can edit the specific camera move if the AI got it wrong. Click Generate.
  4. Extend: Once a clip finishes, type the instruction for the next 5 seconds. The AI automatically maintains continuity (subject match, camera momentum).

Exporting

Continuum does not render the final full-length movie in the browser (to save bandwidth and processing). Instead:

  1. Click Export Script.
  2. Copy the generated code.
  3. Save it as render.sh (Mac/Linux) or run the commands in your terminal.
  4. This script downloads the high-quality assets directly from Google's servers and uses FFmpeg to stitch them with seamless xfade transitions.

Troubleshooting

  • Extension Errors: If you receive errors while extending videos in "Free" mode, switch to "Paid" mode. The veo-3.1-fast model has limited video-to-video capabilities compared to the full veo-3.1 model.
  • Billing: The "Paid" tier requires an API key linked to a Google Cloud Project with billing enabled.

Tech Stack

  • Frontend: React 19, TypeScript, Tailwind CSS.
  • AI SDK: @google/genai (v1.34.0+).

About

ai video clip composer & sequencer

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages