文生视频
从纯文本生成动态视频。涵盖高质量默认模式(4-15秒,所有比例,480p/720p,音频默认开启)和高动态快速模式(3-15秒,仅 16:9/1:1/9:16,720p,音频默认关闭)。
meitu text-to-video
使用示例
# 场景一:基础文生视频(仅必填参数)
meitu text-to-video \
--prompt "星空延时摄影,银河缓缓移动" \
--json
# 场景二:指定时长和比例
meitu text-to-video \
--prompt "城市夜景车流" \
--video_duration 8 \
--aspect_ratio 16:9 \
--sound on \
--json
# 场景三:完整参数 + 下载结果
meitu text-to-video \
--prompt "海浪拍打岩石,慢镜头" \
--video_duration 10 \
--aspect_ratio 16:9 \
--resolution 720p \
--sound on \
--json \
--download-dir ./output参数说明
| 参数 | 必需 | 说明 |
|---|---|---|
--prompt | 是 | 类型:string;视频内容描述 |
--video_duration | 否 | 类型:number;高质量模式 4-15 秒,快速模式 3-15 秒 |
--sound | 否 | 类型:string;高质量模式默认 on,快速模式默认 off;可选:on / off |
--aspect_ratio | 否 | 类型:string;高质量模式支持所有比例,快速模式仅 16:9 / 1:1 / 9:16 |
--resolution | 否 | 类型:string;高质量模式 480p / 720p,快速模式仅 720p |
--download-dir | 否 | 类型:string;将结果文件下载到指定本地目录 |
--output | 否 | 类型:string[];指定输出文件路径,按 data.result.urls 顺序映射 |
--json | 否 | 以 JSON 格式输出结果,便于脚本或 Agent 解析 |