fal-image-to-video
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseQuick Reference
快速参考
| Model | Endpoint | Audio | Loop | Best For |
|---|---|---|---|---|
| Kling 2.6 Pro | | Yes | No | Cinematic |
| MiniMax | | No | No | Reliable |
| Luma | | No | Yes | Creative |
| SVD | | No | No | Fast test |
| Motion Type | Keywords | Example |
|---|---|---|
| Character | walks, turns, smiles | "She slowly turns her head" |
| Nature | sways, flows, falls | "Leaves flutter in the wind" |
| Camera | pans, zooms, tracks | "Camera slowly pans right" |
| Use Case | Recommended Model |
|---|---|
| Portraits | Kling 2.5/2.6 Pro |
| Products | MiniMax (optimizer) |
| Landscapes | Luma (loop) |
| Fast testing | SVD, Runway Turbo |
| 模型 | 端点 | 音频 | 循环 | 适用场景 |
|---|---|---|---|---|
| Kling 2.6 Pro | | 支持 | 不支持 | 电影级效果 |
| MiniMax | | 不支持 | 不支持 | 稳定可靠 |
| Luma | | 不支持 | 支持 | 创意创作 |
| SVD | | 不支持 | 不支持 | 快速测试 |
| 运动类型 | 关键词 | 示例 |
|---|---|---|
| 人物 | walks, turns, smiles | "她缓缓转过头" |
| 自然场景 | sways, flows, falls | "树叶在风中飘动" |
| 镜头 | pans, zooms, tracks | "镜头缓缓向右平移" |
| 使用场景 | 推荐模型 |
|---|---|
| 人像 | Kling 2.5/2.6 Pro |
| 产品 | MiniMax(带优化器) |
| 风景 | Luma(带循环) |
| 快速测试 | SVD, Runway Turbo |
When to Use This Skill
何时使用该技能
Use for image animation:
- Animating still portraits with natural motion
- Creating product showcase videos
- Generating ambient loop videos
- Adding subtle motion to landscapes
- Preview workflow before final render
Related skills:
- For text-to-video: see
fal-text-to-video - For video editing: see
fal-video-to-video - For text-to-image first: see
fal-text-to-image
适用于图像动画场景:
- 为静态人像添加自然运动效果
- 创建产品展示视频
- 生成循环氛围视频
- 为风景添加细微动态
- 最终渲染前预览工作流
相关技能:
- 文本转视频:请查看
fal-text-to-video - 视频编辑:请查看
fal-video-to-video - 先文本转图像:请查看
fal-text-to-image
fal.ai Image-to-Video Models
fal.ai 图生视频模型
Complete reference for all image animation and image-to-video models on fal.ai.
fal.ai平台所有图像动画与图生视频模型的完整参考手册。
Kling Image-to-Video
Kling 图生视频
Kling 2.0 Image-to-Video
Kling 2.0 图生视频
Endpoint:
Best For: Standard image animation
fal-ai/kling-video/v2.0/image-to-videotypescript
import { fal } from "@fal-ai/client";
const result = await fal.subscribe("fal-ai/kling-video/v2.0/image-to-video", {
input: {
prompt: "The person slowly turns their head and smiles warmly",
image_url: "https://example.com/portrait.jpg",
duration: "5",
aspect_ratio: "16:9"
}
});
console.log(result.video.url);python
import fal_client
result = fal_client.subscribe(
"fal-ai/kling-video/v2.0/image-to-video",
arguments={
"prompt": "The person slowly turns their head and smiles",
"image_url": "https://example.com/portrait.jpg",
"duration": "5",
"aspect_ratio": "16:9"
}
)
print(result["video"]["url"])端点:
适用场景: 标准图像动画
fal-ai/kling-video/v2.0/image-to-videotypescript
import { fal } from "@fal-ai/client";
const result = await fal.subscribe("fal-ai/kling-video/v2.0/image-to-video", {
input: {
prompt: "The person slowly turns their head and smiles warmly",
image_url: "https://example.com/portrait.jpg",
duration: "5",
aspect_ratio: "16:9"
}
});
console.log(result.video.url);python
import fal_client
result = fal_client.subscribe(
"fal-ai/kling-video/v2.0/image-to-video",
arguments={
"prompt": "The person slowly turns their head and smiles",
"image_url": "https://example.com/portrait.jpg",
"duration": "5",
"aspect_ratio": "16:9"
}
)
print(result["video"]["url"])Kling 2.5 Pro Image-to-Video
Kling 2.5 Pro 图生视频
Endpoint:
Best For: Professional quality animation
fal-ai/kling-video/v2.5/pro/image-to-videotypescript
const result = await fal.subscribe("fal-ai/kling-video/v2.5/pro/image-to-video", {
input: {
prompt: "The car drives forward along the mountain road, camera follows",
image_url: "https://example.com/car-scene.jpg",
duration: "5",
aspect_ratio: "16:9",
negative_prompt: "static, frozen, distorted"
}
});端点:
适用场景: 专业级质量动画
fal-ai/kling-video/v2.5/pro/image-to-videotypescript
const result = await fal.subscribe("fal-ai/kling-video/v2.5/pro/image-to-video", {
input: {
prompt: "The car drives forward along the mountain road, camera follows",
image_url: "https://example.com/car-scene.jpg",
duration: "5",
aspect_ratio: "16:9",
negative_prompt: "static, frozen, distorted"
}
});Kling 2.6 Pro Image-to-Video (Latest)
Kling 2.6 Pro 图生视频(最新版)
Endpoint:
Best For: Highest quality with native audio
fal-ai/kling-video/v2.6/pro/image-to-videotypescript
const result = await fal.subscribe("fal-ai/kling-video/v2.6/pro/image-to-video", {
input: {
prompt: "The waterfall cascades down with a gentle roar, birds fly past",
image_url: "https://example.com/waterfall.jpg",
duration: "5",
aspect_ratio: "16:9"
}
});
console.log(result.video.url);
console.log(result.audio?.url); // Native audioKling Parameters:
| Parameter | Type | Values | Description |
|---|---|---|---|
| string | - | Motion description |
| string | - | Source image URL |
| string | "5", "10" | Duration in seconds |
| string | "16:9", "9:16", "1:1" | Output dimensions |
| string | - | What to avoid |
端点:
适用场景: 最高质量,支持原生音频
fal-ai/kling-video/v2.6/pro/image-to-videotypescript
const result = await fal.subscribe("fal-ai/kling-video/v2.6/pro/image-to-video", {
input: {
prompt: "The waterfall cascades down with a gentle roar, birds fly past",
image_url: "https://example.com/waterfall.jpg",
duration: "5",
aspect_ratio: "16:9"
}
});
console.log(result.video.url);
console.log(result.audio?.url); // Native audioKling 参数:
| 参数 | 类型 | 可选值 | 描述 |
|---|---|---|---|
| string | - | 运动描述 |
| string | - | 源图像URL |
| string | "5", "10" | 视频时长(秒) |
| string | "16:9", "9:16", "1:1" | 输出尺寸比例 |
| string | - | 需要避免的效果 |
MiniMax Image-to-Video
MiniMax 图生视频
MiniMax Hailuo
MiniMax Hailuo
Endpoint:
Best For: Reliable image animation with prompt optimization
fal-ai/minimax-video/image-to-videotypescript
const result = await fal.subscribe("fal-ai/minimax-video/image-to-video", {
input: {
prompt: "The cat stretches and yawns, then walks forward",
image_url: "https://example.com/sleeping-cat.jpg",
prompt_optimizer: true // Auto-enhance prompt
}
});python
result = fal_client.subscribe(
"fal-ai/minimax-video/image-to-video",
arguments={
"prompt": "The cat stretches and yawns",
"image_url": "https://example.com/cat.jpg",
"prompt_optimizer": True
}
)MiniMax Parameters:
| Parameter | Type | Description |
|---|---|---|
| string | Motion description |
| string | Source image URL |
| boolean | Auto-enhance prompt |
端点:
适用场景: 稳定可靠的图像动画,支持提示词优化
fal-ai/minimax-video/image-to-videotypescript
const result = await fal.subscribe("fal-ai/minimax-video/image-to-video", {
input: {
prompt: "The cat stretches and yawns, then walks forward",
image_url: "https://example.com/sleeping-cat.jpg",
prompt_optimizer: true // Auto-enhance prompt
}
});python
result = fal_client.subscribe(
"fal-ai/minimax-video/image-to-video",
arguments={
"prompt": "The cat stretches and yawns",
"image_url": "https://example.com/cat.jpg",
"prompt_optimizer": True
}
)MiniMax 参数:
| 参数 | 类型 | 描述 |
|---|---|---|
| string | 运动描述 |
| string | 源图像URL |
| boolean | 自动优化提示词 |
LTX Image-to-Video
LTX 图生视频
LTX Video Image-to-Video
LTX Video 图生视频
Endpoint:
Best For: Fast image animation
fal-ai/ltx-video/image-to-videotypescript
const result = await fal.subscribe("fal-ai/ltx-video/image-to-video", {
input: {
prompt: "The flowers sway gently in the breeze",
image_url: "https://example.com/flower-field.jpg",
negative_prompt: "static, frozen",
num_inference_steps: 30,
guidance_scale: 7.5
}
});端点:
适用场景: 快速图像动画
fal-ai/ltx-video/image-to-videotypescript
const result = await fal.subscribe("fal-ai/ltx-video/image-to-video", {
input: {
prompt: "The flowers sway gently in the breeze",
image_url: "https://example.com/flower-field.jpg",
negative_prompt: "static, frozen",
num_inference_steps: 30,
guidance_scale: 7.5
}
});LTX Video v2 Image-to-Video
LTX Video v2 图生视频
Endpoint:
Best For: Improved quality animation
fal-ai/ltx-video/v2/image-to-videotypescript
const result = await fal.subscribe("fal-ai/ltx-video/v2/image-to-video", {
input: {
prompt: "Smoke rises and swirls from the chimney",
image_url: "https://example.com/cabin.jpg",
num_inference_steps: 35,
guidance_scale: 7.0
}
});LTX Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
| string | - | Motion description |
| string | - | Source image |
| string | - | What to avoid |
| number | 30 | Quality steps |
| number | 7.5 | Prompt adherence |
端点:
适用场景: 画质提升版动画
fal-ai/ltx-video/v2/image-to-videotypescript
const result = await fal.subscribe("fal-ai/ltx-video/v2/image-to-video", {
input: {
prompt: "Smoke rises and swirls from the chimney",
image_url: "https://example.com/cabin.jpg",
num_inference_steps: 35,
guidance_scale: 7.0
}
});LTX 参数:
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| string | - | 运动描述 |
| string | - | 源图像 |
| string | - | 需要避免的效果 |
| number | 30 | 生成质量步数 |
| number | 7.5 | 提示词贴合度 |
Runway Gen-3 Image-to-Video
Runway Gen-3 图生视频
Runway Gen-3 Turbo
Runway Gen-3 Turbo
Endpoint:
Best For: Fast iteration, previews
fal-ai/runway-gen3/turbo/image-to-videotypescript
const result = await fal.subscribe("fal-ai/runway-gen3/turbo/image-to-video", {
input: {
prompt: "The model walks confidently down the runway",
image_url: "https://example.com/fashion-shot.jpg",
duration: 5
}
});Runway Parameters:
| Parameter | Type | Values | Description |
|---|---|---|---|
| string | - | Motion description |
| string | - | Source image |
| number | 5, 10 | Seconds |
端点:
适用场景: 快速迭代、预览
fal-ai/runway-gen3/turbo/image-to-videotypescript
const result = await fal.subscribe("fal-ai/runway-gen3/turbo/image-to-video", {
input: {
prompt: "The model walks confidently down the runway",
image_url: "https://example.com/fashion-shot.jpg",
duration: 5
}
});Runway 参数:
| 参数 | 类型 | 可选值 | 描述 |
|---|---|---|---|
| string | - | 运动描述 |
| string | - | 源图像 |
| number | 5, 10 | 时长(秒) |
Luma Dream Machine
Luma Dream Machine
Luma Image-to-Video
Luma 图生视频
Endpoint:
Best For: Creative, artistic animation
fal-ai/luma-dream-machinetypescript
const result = await fal.subscribe("fal-ai/luma-dream-machine", {
input: {
prompt: "The magical portal opens with swirling energy",
image_url: "https://example.com/fantasy-scene.jpg",
aspect_ratio: "16:9",
loop: true // Create seamless loop
}
});python
result = fal_client.subscribe(
"fal-ai/luma-dream-machine",
arguments={
"prompt": "The portal opens with swirling energy",
"image_url": "https://example.com/scene.jpg",
"aspect_ratio": "16:9",
"loop": True
}
)Luma Parameters:
| Parameter | Type | Description |
|---|---|---|
| string | Motion description |
| string | Source image |
| string | "16:9", "9:16", "1:1" |
| boolean | Create looping video |
端点:
适用场景: 创意、艺术化动画
fal-ai/luma-dream-machinetypescript
const result = await fal.subscribe("fal-ai/luma-dream-machine", {
input: {
prompt: "The magical portal opens with swirling energy",
image_url: "https://example.com/fantasy-scene.jpg",
aspect_ratio: "16:9",
loop: true // Create seamless loop
}
});python
result = fal_client.subscribe(
"fal-ai/luma-dream-machine",
arguments={
"prompt": "The portal opens with swirling energy",
"image_url": "https://example.com/scene.jpg",
"aspect_ratio": "16:9",
"loop": True
}
)Luma 参数:
| 参数 | 类型 | 描述 |
|---|---|---|
| string | 运动描述 |
| string | 源图像 |
| string | "16:9", "9:16", "1:1" |
| boolean | 生成循环视频 |
Wan Image-to-Video
Wan 图生视频
Wan v2.1 Image-to-Video
Wan v2.1 图生视频
Endpoint:
Best For: Lightweight animation
fal-ai/wan/v2.1/1.3b/image-to-videotypescript
const result = await fal.subscribe("fal-ai/wan/v2.1/1.3b/image-to-video", {
input: {
prompt: "The leaves flutter and fall from the tree",
image_url: "https://example.com/autumn-tree.jpg",
num_frames: 81
}
});端点:
适用场景: 轻量级动画
fal-ai/wan/v2.1/1.3b/image-to-videotypescript
const result = await fal.subscribe("fal-ai/wan/v2.1/1.3b/image-to-video", {
input: {
prompt: "The leaves flutter and fall from the tree",
image_url: "https://example.com/autumn-tree.jpg",
num_frames: 81
}
});Stable Video Diffusion
Stable Video Diffusion
SVD Image-to-Video
SVD 图生视频
Endpoint:
Best For: Open-source image animation
fal-ai/stable-video-diffusiontypescript
const result = await fal.subscribe("fal-ai/stable-video-diffusion", {
input: {
image_url: "https://example.com/landscape.jpg",
motion_bucket_id: 127, // 0-255, higher = more motion
fps: 7,
num_frames: 25
}
});SVD Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
| string | - | Source image |
| number | 127 | Motion intensity (0-255) |
| number | 7 | Frames per second |
| number | 25 | Total frames |
| number | - | For reproducibility |
端点:
适用场景: 开源图像动画
fal-ai/stable-video-diffusiontypescript
const result = await fal.subscribe("fal-ai/stable-video-diffusion", {
input: {
image_url: "https://example.com/landscape.jpg",
motion_bucket_id: 127, // 0-255, 值越大运动越强
fps: 7,
num_frames: 25
}
});SVD 参数:
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| string | - | 源图像 |
| number | 127 | 运动强度(0-255) |
| number | 7 | 帧率 |
| number | 25 | 总帧数 |
| number | - | 用于结果复现 |
SVD XT
SVD XT
Endpoint:
Best For: Extended video length
fal-ai/stable-video-diffusion-xttypescript
const result = await fal.subscribe("fal-ai/stable-video-diffusion-xt", {
input: {
image_url: "https://example.com/scene.jpg",
motion_bucket_id: 127,
num_frames: 25,
fps: 6
}
});端点:
适用场景: 延长视频时长
fal-ai/stable-video-diffusion-xttypescript
const result = await fal.subscribe("fal-ai/stable-video-diffusion-xt", {
input: {
image_url: "https://example.com/scene.jpg",
motion_bucket_id: 127,
num_frames: 25,
fps: 6
}
});CogVideoX Image-to-Video
CogVideoX 图生视频
CogVideoX-5B Image-to-Video
CogVideoX-5B 图生视频
Endpoint:
Best For: Open-source alternative
fal-ai/cogvideox-5b/image-to-videotypescript
const result = await fal.subscribe("fal-ai/cogvideox-5b/image-to-video", {
input: {
prompt: "The astronaut waves to the camera",
image_url: "https://example.com/astronaut.jpg",
num_inference_steps: 50,
guidance_scale: 6.0
}
});端点:
适用场景: 开源替代方案
fal-ai/cogvideox-5b/image-to-videotypescript
const result = await fal.subscribe("fal-ai/cogvideox-5b/image-to-video", {
input: {
prompt: "The astronaut waves to the camera",
image_url: "https://example.com/astronaut.jpg",
num_inference_steps: 50,
guidance_scale: 6.0
}
});Model Comparison
模型对比
Quality Ranking
质量排名
| Tier | Models | Quality | Speed |
|---|---|---|---|
| Premium | Kling 2.6 Pro | Highest | Slow |
| Professional | Kling 2.5 Pro, Runway | High | Medium |
| Standard | MiniMax, LTX v2 | Good | Fast |
| Budget | SVD, CogVideoX | Acceptable | Fast |
| 等级 | 模型 | 质量 | 速度 |
|---|---|---|---|
| 顶级 | Kling 2.6 Pro | 最高 | 慢 |
| 专业级 | Kling 2.5 Pro, Runway | 高 | 中等 |
| 标准级 | MiniMax, LTX v2 | 良好 | 快 |
| 经济型 | SVD, CogVideoX | 可接受 | 快 |
Feature Comparison
功能对比
| Model | Audio | Duration | Loop | Best For |
|---|---|---|---|---|
| Kling 2.6 Pro | Yes | 5-10s | No | Cinematic |
| Kling 2.5 Pro | No | 5-10s | No | Professional |
| MiniMax | No | 6s | No | Reliable |
| Runway Turbo | No | 5-10s | No | Fast |
| Luma | No | 5s | Yes | Creative |
| SVD | No | 3-4s | No | Open source |
| 模型 | 音频 | 时长 | 循环 | 适用场景 |
|---|---|---|---|---|
| Kling 2.6 Pro | 支持 | 5-10s | 不支持 | 电影级效果 |
| Kling 2.5 Pro | 不支持 | 5-10s | 不支持 | 专业级 |
| MiniMax | 不支持 | 6s | 不支持 | 稳定可靠 |
| Runway Turbo | 不支持 | 5-10s | 不支持 | 快速生成 |
| Luma | 不支持 | 5s | 支持 | 创意创作 |
| SVD | 不支持 | 3-4s | 不支持 | 开源方案 |
Prompt Engineering for Image Animation
图像动画提示词工程
Motion Description Structure
运动描述结构
text
[Subject action] + [Motion quality] + [Camera movement] + [Atmosphere]Examples:
typescript
// Good: Specific motion
"The woman slowly turns her head to the right and smiles, gentle breeze moves her hair"
// Bad: Vague
"The woman moves"text
[主体动作] + [运动特性] + [镜头运动] + [氛围]示例:
typescript
// 优秀:具体的运动描述
"The woman slowly turns her head to the right and smiles, gentle breeze moves her hair"
// 糟糕:模糊描述
"The woman moves"Motion Types
运动类型
| Type | Keywords | Example |
|---|---|---|
| Character | "walks", "runs", "dances", "gestures" | "She waves hello" |
| Nature | "sways", "flows", "rustles", "falls" | "Leaves fall gently" |
| Mechanical | "rotates", "spins", "moves", "opens" | "The door opens slowly" |
| Atmospheric | "drifts", "swirls", "rises", "disperses" | "Fog drifts across" |
| 类型 | 关键词 | 示例 |
|---|---|---|
| 人物 | "walks", "runs", "dances", "gestures" | "她挥手打招呼" |
| 自然场景 | "sways", "flows", "rustles", "falls" | "树叶缓缓飘落" |
| 机械物体 | "rotates", "spins", "moves", "opens" | "门缓缓打开" |
| 氛围效果 | "drifts", "swirls", "rises", "disperses" | "雾气缓缓弥漫" |
Camera Motion Keywords
镜头运动关键词
| Keyword | Effect |
|---|---|
| "camera slowly pans" | Horizontal sweep |
| "slight zoom in" | Gradual zoom |
| "tracking shot" | Follows subject |
| "static camera" | No camera movement |
| "subtle camera shake" | Handheld feel |
| 关键词 | 效果 |
|---|---|
| "camera slowly pans" | 水平扫动 |
| "slight zoom in" | 渐进式放大 |
| "tracking shot" | 跟随主体 |
| "static camera" | 固定镜头 |
| "subtle camera shake" | 手持拍摄质感 |
Quality Modifiers
质量修饰词
- "smooth motion"
- "natural movement"
- "fluid animation"
- "subtle motion"
- "cinematic"
- "smooth motion"
- "natural movement"
- "fluid animation"
- "subtle motion"
- "cinematic"
Complete Parameter Reference
完整参数参考
typescript
interface ImageToVideoInput {
// Required
prompt: string;
image_url: string;
// Duration (varies by model)
duration?: number | string;
// Dimensions
aspect_ratio?: "16:9" | "9:16" | "1:1";
// Quality
negative_prompt?: string;
num_inference_steps?: number;
guidance_scale?: number;
// Model-specific
prompt_optimizer?: boolean; // MiniMax
loop?: boolean; // Luma
motion_bucket_id?: number; // SVD (0-255)
fps?: number; // SVD
num_frames?: number; // SVD, Wan
// Reproducibility
seed?: number;
}typescript
interface ImageToVideoInput {
// 必填项
prompt: string;
image_url: string;
// 时长(因模型而异)
duration?: number | string;
// 尺寸比例
aspect_ratio?: "16:9" | "9:16" | "1:1";
// 质量参数
negative_prompt?: string;
num_inference_steps?: number;
guidance_scale?: number;
// 模型专属参数
prompt_optimizer?: boolean; // MiniMax
loop?: boolean; // Luma
motion_bucket_id?: number; // SVD (0-255)
fps?: number; // SVD
num_frames?: number; // SVD, Wan
// 结果复现
seed?: number;
}Workflow Examples
工作流示例
Portrait Animation Pipeline
人像动画流程
typescript
// 1. Generate a portrait image
const portrait = await fal.subscribe("fal-ai/flux/dev", {
input: {
prompt: "Professional headshot of a business woman, neutral expression, studio lighting",
image_size: "portrait_4_3"
}
});
// 2. Animate the portrait
const video = await fal.subscribe("fal-ai/kling-video/v2.5/pro/image-to-video", {
input: {
prompt: "She slowly turns her head, makes eye contact with camera, and gives a warm professional smile",
image_url: portrait.images[0].url,
duration: "5",
aspect_ratio: "16:9"
}
});
console.log(video.video.url);typescript
// 1. 生成人像图像
const portrait = await fal.subscribe("fal-ai/flux/dev", {
input: {
prompt: "Professional headshot of a business woman, neutral expression, studio lighting",
image_size: "portrait_4_3"
}
});
// 2. 为人像添加动画
const video = await fal.subscribe("fal-ai/kling-video/v2.5/pro/image-to-video", {
input: {
prompt: "She slowly turns her head, makes eye contact with camera, and gives a warm professional smile",
image_url: portrait.images[0].url,
duration: "5",
aspect_ratio: "16:9"
}
});
console.log(video.video.url);Product Showcase
产品展示
typescript
// Animate product image
const result = await fal.subscribe("fal-ai/minimax-video/image-to-video", {
input: {
prompt: "The camera slowly rotates around the product, highlighting details, studio lighting",
image_url: "https://example.com/product-shot.jpg",
prompt_optimizer: true
}
});typescript
// 为产品图像添加动画
const result = await fal.subscribe("fal-ai/minimax-video/image-to-video", {
input: {
prompt: "The camera slowly rotates around the product, highlighting details, studio lighting",
image_url: "https://example.com/product-shot.jpg",
prompt_optimizer: true
}
});Nature Scene
自然场景
typescript
// Create ambient nature video
const result = await fal.subscribe("fal-ai/luma-dream-machine", {
input: {
prompt: "Gentle breeze moves through the grass, clouds drift slowly overhead, peaceful ambient motion",
image_url: "https://example.com/landscape.jpg",
aspect_ratio: "16:9",
loop: true // Perfect for background video
}
});typescript
// 创建自然氛围视频
const result = await fal.subscribe("fal-ai/luma-dream-machine", {
input: {
prompt: "Gentle breeze moves through the grass, clouds drift slowly overhead, peaceful ambient motion",
image_url: "https://example.com/landscape.jpg",
aspect_ratio: "16:9",
loop: true // Perfect for background video
}
});Fast Preview Workflow
快速预览工作流
typescript
// Quick preview with faster model
const preview = await fal.subscribe("fal-ai/stable-video-diffusion", {
input: {
image_url: sourceImage,
motion_bucket_id: 100
}
});
console.log("Preview:", preview.video.url);
// If satisfied, use higher quality model
const final = await fal.subscribe("fal-ai/kling-video/v2.6/pro/image-to-video", {
input: {
prompt: "Refined motion description based on preview",
image_url: sourceImage,
duration: "5"
}
});typescript
// 使用快速模型生成预览
const preview = await fal.subscribe("fal-ai/stable-video-diffusion", {
input: {
image_url: sourceImage,
motion_bucket_id: 100
}
});
console.log("Preview:", preview.video.url);
// 如果满意,使用更高质量的模型生成最终版本
const final = await fal.subscribe("fal-ai/kling-video/v2.6/pro/image-to-video", {
input: {
prompt: "Refined motion description based on preview",
image_url: sourceImage,
duration: "5"
}
});Best Practices
最佳实践
Image Preparation
图像准备
- High Resolution: Use high-quality source images
- Clear Subject: Ensure main subject is clearly visible
- Proper Framing: Leave room for motion
- Consistent Lighting: Avoid harsh shadows
- 高分辨率:使用高质量源图像
- 主体清晰:确保主要主体清晰可见
- 合理构图:为运动预留空间
- 光线一致:避免强烈阴影
Prompt Tips
提示词技巧
- Describe the motion, not the static scene
- Be specific about direction (left, right, forward)
- Include speed (slowly, quickly, gradually)
- Match motion to image content
- 描述运动,而非静态场景
- 明确方向(左、右、向前)
- 包含速度(缓慢、快速、渐进)
- 运动与图像内容匹配
Common Issues
常见问题
| Issue | Cause | Solution |
|---|---|---|
| Static output | Vague prompt | Add specific motion verbs |
| Distorted faces | Fast motion | Use "subtle", "gentle" |
| Inconsistent motion | Complex scene | Focus on one element |
| Cut-off motion | Short duration | Extend duration if available |
| 问题 | 原因 | 解决方案 |
|---|---|---|
| 输出静态画面 | 提示词模糊 | 添加具体的运动动词 |
| 面部变形 | 运动过快 | 使用"subtle", "gentle"等修饰词 |
| 运动不一致 | 场景复杂 | 聚焦于单个元素 |
| 运动被截断 | 时长过短 | 若支持则延长时长 |
Model Selection
模型选择
| Use Case | Recommended Model |
|---|---|
| Portraits | Kling 2.5/2.6 Pro |
| Products | MiniMax (prompt optimizer) |
| Landscapes | Luma (loop option) |
| Fast testing | SVD, Runway Turbo |
| With audio | Kling 2.6 Pro |
| 使用场景 | 推荐模型 |
|---|---|
| 人像 | Kling 2.5/2.6 Pro |
| 产品 | MiniMax(带提示词优化器) |
| 风景 | Luma(带循环选项) |
| 快速测试 | SVD, Runway Turbo |
| 需要音频 | Kling 2.6 Pro |