utility

video-gen

Generate AI video from text or images using fal.ai models (Kling, Veo, LTX, Wan) — smart router picks the best model by video type.

AI Videofal.aiKlingVeo
video-gen
Bundle
1.77MB
Files
5

Install

claude plugin install video-gen --from https://fadaly.net/downloads/skills/video-gen.zip

The skill

Video Generation — AI Video from Text & Images

What It Does

Generates AI videos from text prompts or static images using fal.ai models (Kling, Veo, LTX, Wan). Smart router picks the best model by video type.

Engine API (programmatic)

const videoGen = require('./engine');

// Smart router
const res = await videoGen.generateBest({ prompt, type: 'hero', outputDir: './out' });
// Returns: { ok, data: { videoPath, model, duration, cost_usd }, meta: { skill, command, duration_ms } }

// Direct calls
await videoGen.generateFromText({ prompt, duration: 5, model: 'fal-ai/ltx-video', outputDir });
await videoGen.generateFromImage({ imagePath: './hero.png', motionPrompt: 'slow zoom', outputDir });

Video Types

TypeT2V ModelsI2V Models
heroKling Pro → Kling StandardKling Pro I2V → Kling Standard I2V
featureKling Standard → Wan T2VKling Standard I2V → Wan I2V
ambientLTX VideoLTX I2V → Wan I2V
previewLTX Video

Critical Rules

  1. Every function returns { ok, data, error, meta } — universal result contract.
  2. For best quality: generate great image first, then animate with I2V.

Env Vars

  • FAL_KEY — fal.ai API key (required for all video generation)