/fal-ai-master:fal-text-to-videofrom fal-ai-master
Complete reference for fal.ai text-to-video models including Kling, Sora, LTX, Runway Gen-3, and Luma Dream Machine. Covers endpoints, quality tiers, prompt engineering, duration options, and aspect ratios.
Ships in fal-ai-master. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Model | Endpoint | Duration | Audio | Speed |
|---|---|---|---|---|
| Kling 2.6 Pro | fal-ai/kling-video/v2.6/pro/text-to-video | 5-10s | Yes | Slow |
| Sora 2 | fal-ai/sora | 5-20s | Optional | Slow |
| LTX-2 Pro | fal-ai/ltx-2-pro | 5s | Yes | Medium |
| Runway Turbo | fal-ai/runway-gen3/turbo/text-to-video | 5-10s | No | Fast |
| Luma | fal-ai/luma-dream-machine | 5s | No | Medium |
| Aspect Ratio | Value | Use Case |
|---|---|---|
| Landscape | "16:9" | Standard video |
| Portrait | "9:16" | Social/mobile |
| Square | "1:1" | Social posts |
| Prompt Structure | Example |
|---|---|
| Subject + Action | "A woman walks" |
| + Setting | "through a forest" |
| + Style | "cinematic lighting" |
| + Camera | "tracking shot" |
Use for text-to-video generation:
Related skills:
fal-image-to-videofal-video-to-videofal-model-guideComplete reference for all text-to-video generation models on fal.ai.
Endpoint: fal-ai/kling-video/v2.0/text-to-video
Best For: Good quality, cost-effective
import { fal } from "@fal-ai/client";
const result = await fal.subscribe("fal-ai/kling-video/v2.0/text-to-video", {
input: {
prompt: "A majestic eagle soaring over snow-capped mountains at golden hour, cinematic lighting",
duration: "5", // "5" or "10" seconds
aspect_ratio: "16:9",
negative_prompt: "blurry, distorted, low quality"
}
});
console.log(result.video.url);
import fal_client
result = fal_client.subscribe(
"fal-ai/kling-video/v2.0/text-to-video",
arguments={
"prompt": "A majestic eagle soaring over mountains",
"duration": "5",
"aspect_ratio": "16:9",
"negative_prompt": "blurry, distorted"
}
)
print(result["video"]["url"])
Endpoint: fal-ai/kling-video/v2.5/pro/text-to-video
Best For: Professional quality videos
const result = await fal.subscribe("fal-ai/kling-video/v2.5/pro/text-to-video", {
input: {
prompt: "A luxury car driving through a mountain road, drone shot, cinematic",
duration: "5",
aspect_ratio: "16:9",
negative_prompt: "shaky, amateur, blurry"
}
});
Endpoint: fal-ai/kling-video/v2.6/pro/text-to-video
Best For: Highest quality with native audio generation
The latest Kling model with built-in audio generation.
const result = await fal.subscribe("fal-ai/kling-video/v2.6/pro/text-to-video", {
input: {
prompt: "Ocean waves crashing on rocky cliffs at sunset, seagulls flying, ambient sounds",
duration: "5",
aspect_ratio: "16:9",
negative_prompt: "static, boring, low quality"
}
});
console.log(result.video.url);
console.log(result.audio?.url); // Native audio included
Kling Parameters:
| Parameter | Type | Values | Description |
|---|---|---|---|
prompt | string | - | Video description |
duration | string | "5", "10" | Duration in seconds |
aspect_ratio | string | "16:9", "9:16", "1:1" | Video dimensions |
negative_prompt | string | - | What to avoid |
Endpoint: fal-ai/sora
Best For: Advanced, creative video generation
const result = await fal.subscribe("fal-ai/sora", {
input: {
prompt: "A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots. She carries a black purse. She wears sunglasses and red lipstick. She walks confidently. The street is damp and reflective, creating a mirror effect of the colorful lights.",
duration: 10,
aspect_ratio: "16:9",
resolution: "1080p"
}
});
console.log(result.video.url);
Sora Parameters:
| Parameter | Type | Values | Description |
|---|---|---|---|
prompt | string | - | Detailed video description |
duration | number | 5-20 | Duration in seconds |
aspect_ratio | string | "16:9", "9:16", "1:1" | Video dimensions |
resolution | string | "720p", "1080p" | Output resolution |
Endpoint: fal-ai/ltx-video
Best For: Fast, efficient generation
const result = await fal.subscribe("fal-ai/ltx-video", {
input: {
prompt: "A beautiful sunset over the ocean with gentle waves",
negative_prompt: "low quality, blurry, distorted",
num_inference_steps: 30,
guidance_scale: 7.5,
aspect_ratio: "16:9"
}
});
Endpoint: fal-ai/ltx-video/v2
Best For: Improved quality over v1
const result = await fal.subscribe("fal-ai/ltx-video/v2", {
input: {
prompt: "A futuristic city with flying cars and neon lights",
negative_prompt: "ugly, distorted",
num_inference_steps: 35,
guidance_scale: 7.0,
resolution: "720p"
}
});
Endpoint: fal-ai/ltx-2-pro
Best For: High fidelity with audio support
const result = await fal.subscribe("fal-ai/ltx-2-pro", {
input: {
prompt: "A jazz band performing in a dimly lit club, smooth music, intimate atmosphere",
negative_prompt: "worst quality, inconsistent motion, blurry",
num_inference_steps: 30,
guidance_scale: 3.5,
resolution: "720p",
enable_audio: true // Generate matching audio
}
});
console.log(result.video.url);
console.log(result.audio?.url); // Audio track if enabled
LTX Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
prompt | string | - | Video description |
negative_prompt | string | - | What to avoid |
num_inference_steps | number | 30 | Quality steps |
guidance_scale | number | 7.5 | Prompt adherence |
resolution | string | "720p" | "720p" or "480p" |
aspect_ratio | string | "16:9" | Video dimensions |
enable_audio | boolean | false | Generate audio (LTX-2 Pro) |
Endpoint: fal-ai/wan/v2.1/1.3b/text-to-video
Best For: Lightweight, fast generation
const result = await fal.subscribe("fal-ai/wan/v2.1/1.3b/text-to-video", {
input: {
prompt: "A cat playing with a ball of yarn, cute, playful",
num_frames: 81, // Number of frames
resolution: "480p"
}
});
Endpoint: fal-ai/wan/v2.1/14b/text-to-video
Best For: Higher quality, larger model
const result = await fal.subscribe("fal-ai/wan/v2.1/14b/text-to-video", {
input: {
prompt: "A professional chef preparing sushi, precise movements, high-end restaurant",
num_frames: 81,
resolution: "720p"
}
});
Endpoint: fal-ai/minimax-video/text-to-video
Best For: Balanced quality and speed
const result = await fal.subscribe("fal-ai/minimax-video/text-to-video", {
input: {
prompt: "A butterfly emerging from a cocoon, macro shot, nature documentary style",
prompt_optimizer: true // Enhance prompt automatically
}
});
MiniMax Parameters:
| Parameter | Type | Description |
|---|---|---|
prompt | string | Video description |
prompt_optimizer | boolean | Auto-enhance prompt |
Endpoint: fal-ai/runway-gen3/turbo/text-to-video
Best For: Fast iteration, previews
const result = await fal.subscribe("fal-ai/runway-gen3/turbo/text-to-video", {
input: {
prompt: "A dancer performing ballet in an empty theater, spotlight, graceful movements",
duration: 5,
ratio: "16:9"
}
});
Runway Parameters:
| Parameter | Type | Values | Description |
|---|---|---|---|
prompt | string | - | Video description |
duration | number | 5, 10 | Seconds |
ratio | string | "16:9", "9:16", "1:1" | Aspect ratio |
Endpoint: fal-ai/luma-dream-machine
Best For: Creative, artistic videos
const result = await fal.subscribe("fal-ai/luma-dream-machine", {
input: {
prompt: "A magical forest with glowing mushrooms and fireflies at night",
aspect_ratio: "16:9",
loop: false
}
});
Luma Parameters:
| Parameter | Type | Description |
|---|---|---|
prompt | string | Video description |
aspect_ratio | string | "16:9", "9:16", "1:1" |
loop | boolean | Create looping video |
Endpoint: fal-ai/cogvideox
Best For: Open-source alternative
const result = await fal.subscribe("fal-ai/cogvideox", {
input: {
prompt: "A timelapse of a flower blooming, from bud to full bloom",
num_inference_steps: 50,
guidance_scale: 6.0
}
});
Endpoint: fal-ai/cogvideox-5b
Best For: Higher quality open-source
const result = await fal.subscribe("fal-ai/cogvideox-5b", {
input: {
prompt: "An astronaut floating in space with Earth in the background",
num_inference_steps: 50,
guidance_scale: 6.0,
num_frames: 49
}
});
Endpoint: fal-ai/hunyuan-video
Best For: Chinese model, good quality
const result = await fal.subscribe("fal-ai/hunyuan-video", {
input: {
prompt: "A traditional Chinese dragon dance during festival celebration",
num_inference_steps: 50,
guidance_scale: 6.0
}
});
| Tier | Models | Quality | Speed | Cost |
|---|---|---|---|---|
| Premium | Kling 2.6 Pro, Sora 2 | Highest | Slow | $$$ |
| Professional | Kling 2.5 Pro, LTX-2 Pro | High | Medium | $$ |
| Standard | Kling 2.0, Runway Turbo | Good | Fast | $ |
| Budget | LTX v1, CogVideoX | Acceptable | Fast | $ |
| Model | Audio | Duration | Resolution | Best Use |
|---|---|---|---|---|
| Kling 2.6 Pro | Native | 5-10s | 1080p | Cinematic |
| Sora 2 | Optional | 5-20s | 1080p | Creative |
| LTX-2 Pro | Yes | 5s | 720p | Fast HQ |
| Runway Turbo | No | 5-10s | 720p | Iteration |
| MiniMax | No | 6s | 720p | Balanced |
| Luma | No | 5s | 720p | Artistic |
| Model | ~Generation Time (5s video) |
|---|---|
| Runway Gen-3 Turbo | 30-60s |
| LTX Video | 45-90s |
| MiniMax | 60-120s |
| Kling 2.5 Pro | 120-180s |
| Kling 2.6 Pro | 150-240s |
| Sora 2 | 180-300s |
[Subject] + [Action] + [Setting] + [Style] + [Camera/Technical]
Examples:
// Good: Specific, action-oriented
"A golden retriever running through autumn leaves in a forest, slow motion, cinematic, warm lighting, tracking shot"
// Bad: Vague, static
"A dog in a forest"
| Keyword | Effect |
|---|---|
| "walking", "running", "jumping" | Subject movement |
| "slow motion", "timelapse" | Speed modification |
| "tracking shot", "pan", "zoom" | Camera movement |
| "floating", "flying", "falling" | Spatial movement |
| "dancing", "spinning", "waving" | Rhythmic movement |
| Keyword | Effect |
|---|---|
| "cinematic" | Movie-like quality |
| "documentary" | Realistic style |
| "anime" | Animated style |
| "noir" | Dark, contrasty |
| "vibrant" | Saturated colors |
| Term | Description |
|---|---|
| "tracking shot" | Camera follows subject |
| "pan left/right" | Horizontal camera sweep |
| "tilt up/down" | Vertical camera sweep |
| "zoom in/out" | Focal length change |
| "drone shot" | Aerial perspective |
| "POV shot" | First-person view |
| "dolly shot" | Camera moves on track |
interface TextToVideoInput {
// Required
prompt: string;
// Duration (varies by model)
duration?: number | string; // seconds
// Dimensions
aspect_ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "21:9";
resolution?: "480p" | "720p" | "1080p";
// Quality control
negative_prompt?: string;
num_inference_steps?: number;
guidance_scale?: number;
// Reproducibility
seed?: number;
// Model-specific
prompt_optimizer?: boolean; // MiniMax
enable_audio?: boolean; // LTX-2 Pro, Kling 2.6
loop?: boolean; // Luma
num_frames?: number; // Wan, CogVideoX
}
Production workflow and batch-generation examples for fal.ai text-to-video models, including fast preview iteration with Runway Turbo and final rendering with Kling Pro, live in references/workflow-examples.md. Load that reference when turning model-selection guidance into executable generation code.
subscribe() not run() - Video generation takes timeWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 skills in this plugin
/fal-api-referenceComplete fal.ai API reference system.
PROACTIVELY activate for: (1) @fal-ai/client JavaScript setup, (2) fal_client Python setup, (3) fal.subscribe/run/stream methods, (4) Queue management (submit/status/result), (5) Webhook configuration, (6) File upload to fal.media, (7) REST API endpoints, (8) Real-time WebSocket connections, (9) Error handling patterns.
Provides: Client configuration, method signatures, queue workflow, webhook payloads, common parameters.
Ensures correct API usage with proper authentication and error handling.
/fal-audioComplete fal.ai audio system.
PROACTIVELY activate for: (1) Whisper speech-to-text, (2) Transcription with timestamps, (3) Translation to English, (4) F5-TTS voice cloning, (5) ElevenLabs premium TTS, (6) Kokoro multi-language TTS, (7) XTTS open-source cloning, (8) Subtitle generation (SRT), (9) Audio file formats.
Provides: STT/TTS endpoints, language codes, voice cloning setup, timestamp formatting.
Ensures accurate transcription and natural speech synthesis.
/fal-image-to-imageComplete fal.ai image-to-image system.
PROACTIVELY activate for: (1) FLUX image-to-image transformation, (2) ControlNet (canny, depth, pose), (3) Inpainting with masks, (4) Upscaling (ESRGAN, Clarity), (5) Background removal (BiRefNet, RemBG), (6) Face restoration (GFPGAN, CodeFormer), (7) IP-Adapter style transfer, (8) Strength parameter tuning.
Provides: Transformation endpoints, mask formats, ControlNet types, upscaling options.
Ensures proper image editing and enhancement workflows.
/fal-image-to-videoComplete fal.ai image-to-video system.
PROACTIVELY activate for: (1) Kling 2.5/2.6 Pro image animation, (2) MiniMax Hailuo with prompt optimizer, (3) LTX image-to-video, (4) Runway Gen-3 Turbo, (5) Luma Dream Machine with loop, (6) Stable Video Diffusion, (7) Motion description prompts, (8) Portrait/product animation workflows.
Provides: Model endpoints, motion keywords, animation techniques, workflow examples.
Ensures natural image animation with proper motion description.
/fal-model-guideComplete fal.ai model selection system.
PROACTIVELY activate for: (1) Choosing image generation models (FLUX, SDXL), (2) Choosing video models (Kling, Sora, LTX), (3) Choosing audio models (Whisper, ElevenLabs), (4) Model quality vs speed comparison, (5) Cost optimization by model tier, (6) 3D generation models, (7) Model-specific parameters, (8) Development vs production model selection.
Provides: Model comparison tables, decision trees, pricing tiers, performance benchmarks.
Ensures optimal model selection for quality, speed, and cost.
/fal-optimizationComplete fal.ai optimization system.
PROACTIVELY activate for: (1) Queue vs run performance, (2) Parallel request batching, (3) Streaming for real-time UI, (4) WebSocket for interactive apps, (5) Model cost comparison, (6) Image size optimization, (7) Inference step tuning, (8) Webhook vs polling, (9) Result caching by seed, (10) Serverless scaling config.
Provides: Parallel patterns, cost strategies, caching examples, monitoring setup.
Ensures optimal performance and cost-effective usage.
npx claudepluginhub josiahsiegel/claude-plugin-marketplace --plugin fal-ai-masterOther plugins' skills for the same job