Skip to content

Github · GitHub Repository Radar

SamurAIGPT Text-To-Video-AI

Generate video from text using AI

Stars

819

Active Stable

Forks

318

Watchers: 817

Repository Radar Score

52 / 100

Growth

7d
+0
30d
+0
%
0.0%

Not enough metric snapshots yet to chart growth for this repository.

Last observed: 2 weeks ago

Score breakdown

  • popularity 55
  • growth 0
  • activity 90
  • freshness 100
  • community 70

Need help integrating this stack?

Our team builds with modern open-source stacks. Tell us what you are shipping.

Get a quote →

Text To Video AI

Powered by MuAPI

Generate engaging videos from text prompts using AI. Perfect for creating YouTube Shorts, Instagram Reels, TikTok videos, and more.

GitHub stars

Want to skip the setup? Use our Premium API to generate videos instantly - no installation required, production-ready, and scales with your needs.

▶ Watch: Best AI Video Generator (API) in 2026 (Quality, Price, Uncensored, Editing)

Demo

out.mp4

Sample Videos

Here are sample videos generated end-to-end directly by this project using the React/Remotion composition engine:

cosmic_lighthouse.mp4

"Wonders of Outer Space" — An educational video about the cosmos, galaxies, and black holes. Generated using local EdgeTTS voiceover, whisper-timestamped local word captions, Suno AI background music, and Veo3 AI B-roll video segments.

deep_ocean_exploration.mp4

"Exploring the Deep Ocean" — A cinematic short exploring deep sea depths, bioluminescent creatures, and thermal vents. Generated using local EdgeTTS voiceover, whisper-timestamped local word captions, Suno AI background music, and Veo3 AI B-roll video segments.

Features

  • AI-Powered Script Generation - Automatically generates engaging scripts from any topic
  • Multiple LLM Providers - Choose from OpenAI, Groq, or Google Gemini
  • Text-to-Speech - Natural-sounding voiceovers with EdgeTTS (free) or ElevenLabs
  • Automatic B-Roll - Fetches relevant background videos from Pexels
  • Customizable Captions - Full control over font, color, position, and styling
  • Multiple Orientations - Portrait (9:16) for shorts or Landscape (16:9) for traditional video
  • Speech-to-Text - Accurate caption timing with Whisper or Deepgram

Quick Start

Option 1: Use the Premium API (Recommended)

Skip all setup and generate videos with a single API call:

Option 2: Google Colab

Run directly in your browser with our Colab Notebook

Option 3: Local Installation

See installation instructions below.

Installation

Prerequisites

  • Python 3.8+
  • FFmpeg
  • ImageMagick

Windows users: See INSTALL_WINDOWS.md for detailed setup instructions.

Setup

# Clone the repository
git clone https://github.com/SamurAIGPT/Text-To-Video-AI.git
cd Text-To-Video-AI

# Install dependencies
pip install -r requirements.txt

# Create your configuration file
cp .env.example .env

Edit .env with your API keys (see Configuration below).

Usage

python app.py "Your topic here"

Output will be saved as rendered_video.mp4

Configuration

All settings are configured via the .env file. Copy .env.example to get started.

API Keys

Service Required Get API Key
Pexels Always pexels.com/api
OpenAI If using OpenAI platform.openai.com
Groq If using Groq console.groq.com
Google Gemini If using Gemini makersuite.google.com
Deepgram If using Deepgram STT console.deepgram.com
ElevenLabs If using ElevenLabs TTS elevenlabs.io

Provider Selection

# LLM Provider: openai, groq, or gemini
LLM_PROVIDER=openai

# Text-to-Speech: edgetts (free) or elevenlabs
TTS_PROVIDER=edgetts

# Speech-to-Text: whisper (free) or deepgram
STT_PROVIDER=whisper

Video Settings

# Orientation: portrait (1080x1920) or landscape (1920x1080)
# Portrait recommended for YouTube Shorts, Instagram Reels, TikTok
VIDEO_ORIENTATION=portrait

AI Video Generation (Muapi)

# Muapi API credentials
MUAPI_BASE_URL=https://api.muapi.ai
MUAPI_API_KEY=your_key

# Video Model to use
MUAPI_VIDEO_MODEL=veo3-fast-text-to-video

Supported Muapi Video Models:

  • Google Veo: veo3-fast-text-to-video, veo3-text-to-video, veo3.1-fast-text-to-video, veo3.1-text-to-video, veo3.1-lite-text-to-video
  • xAI Grok: grok-imagine-text-to-video
  • ByteDance Seedance: sd-2-t2v (Seedance 2), seedance-2-vip-text-to-video, seedance-pro-t2v, seedance-lite-t2v
  • Wan: wan2.7-text-to-video, wan2.6-text-to-video, wan2.5-text-to-video, wan2.1-text-to-video
  • LTX: ltx-2.3-text-to-video, ltx-2-pro-text-to-video, ltx-2-fast-text-to-video
  • Kling: kling-v3.0-pro-text-to-video, kling-v3.0-standard-text-to-video
  • Vidu: vidu-q3-pro-text-to-video, vidu-q2-pro-text-to-video
  • OpenAI Sora: openai-sora-2-pro-text-to-video, openai-sora-2-standard-text-to-video
  • MiniMax: minimax-hailuo-2.3-pro-t2v, minimax-hailuo-2.3-standard-t2v
  • Alibaba: happy-horse-1-text-to-video-1080p

Caption Settings

# Enable or disable captions
CAPTIONS_ENABLED=true

# Caption styling
CAPTION_FONT_SIZE=100
CAPTION_FONT_COLOR=white
CAPTION_FONT_FACE=Arial-Bold
CAPTION_STROKE_WIDTH=3
CAPTION_STROKE_COLOR=black
CAPTION_POSITION=bottom_center

Caption Position Options: center, top, bottom, bottom_center, bottom_left, bottom_right

Font Color Options: white, yellow, cyan, red, green, blue, magenta

Voice Configuration

EdgeTTS (Free):

EDGETTS_VOICE=en-AU-WilliamNeural

Popular voices:

  • en-US-ChristopherNeural - American male
  • en-US-JennyNeural - American female
  • en-GB-RyanNeural - British male
  • en-GB-SoniaNeural - British female
  • en-AU-WilliamNeural - Australian male

ElevenLabs:

ELEVENLABS_API_KEY=your_key
ELEVENLABS_VOICE_ID=your_voice_id

Tutorials

Contributing

We welcome contributions! To get started:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Premium API

Looking for a production-ready solution? Our Premium API offers:

  • No installation or setup required
  • Multiple video durations (30s to 10 minutes)
  • Advanced voice and language options
  • Custom styling and branding
  • Scalable infrastructure

Get Started with the API


Related Projects

Project Description
AI Influencer Generator Create AI-powered virtual influencers
AI YouTube Shorts Generator Automated YouTube Shorts creation
Faceless Video Generator Create videos without showing your face
AI B-roll Generator Generate B-roll footage with AI

Vadoo AI Tools


Support

If you find this project useful, please consider giving it a star! Your support helps us continue improving the project.

GitHub stars

Created: Jun 6, 2024

Last push: Aug 24, 2026

Default branch: main

Languages

Share of the codebase by language, based on repository metadata from the host.

  • Jupyter Notebook 98.5%
  • TypeScript 1.2%
  • Python 0.3%

Repository Radar analysis

Deterministic insights derived from public metadata and our observations — not personal testing or reviews.

Why this repository is interesting

  • Listed in our discovery index with public GitHub metadata for analysis.

Who should use it

  • Developers working primarily with Jupyter Notebook
  • Teams exploring AI tooling, agents, or ML infrastructure
  • Platform and DevOps engineers
  • Frontend engineers comparing UI frameworks and tools
  • Backend engineers shipping APIs and product backends

Potential use cases

  • Reference or evaluate Jupyter Notebook open-source approaches in this domain
  • Prototype AI/agent workflows or study reference architectures
  • Evaluate automation, CI/CD, or infrastructure patterns

Strengths

  • README present in our index
  • Declared license: MIT License

Limitations / considerations

  • Insights are derived from public metadata and our observations — not a substitute for code review

What to watch

  • Re-check last push, issues, and releases on GitHub before production adoption

Source: GitHub (public metadata) + Repository Radar analysis. We do not claim ownership of third-party repositories.

Ready to ship something that compounds?

Share your roadmap. We’ll come back with scope options, timeline ranges, and who from Shriram IT Ventures should be in the room.

Popular with product teams