AI 视频编辑

13.1 积分起

用 AI 编辑现有视频:切换风格、添加特效、调整场景,或重塑整体视觉效果。

还需填写:待编辑视频, 编辑要求

使用的模型

2 模型

示例

前 / 后Grok Imagine Video

夜晚 → 金色黎明(电影感)

Grok Imagine Video。超宽画幅的夜间滑翔被重新想象成云海之上的金色日出:一条指令完成整体环境与光线的改写,而 Pyra 依旧清晰、未被改动。

复现
0103

AI 视频编辑 API

从你自己的代码调用此流水线。一次请求即可发起运行;模型是一个输入字段,而不是独立的接口。

获取 API 令牌
个输入
4
必填
2
定价
13.1 to 33.3 积分
语言
语言
bun add @pipe2-ai/sdk
运行流水线
import { createClient } from "@pipe2-ai/sdk";

const client = createClient(process.env.PIPE2_TOKEN!);

const { run_pipeline } = await client.RunPipeline({
  pipeline_slug: "video-editor",
  input: {
    video_url: "https://example.com/interview.mp4",
    instructions: "Turn the scene into a snowy night. Keep the subject and camera movement unchanged.",
    model: "gemini-omni-1-1-flash",
  },
});

pip install pipe2
运行流水线
import asyncio
import os

from pipe2 import Pipe2Client

client = Pipe2Client(token=os.environ["PIPE2_TOKEN"])

run = asyncio.run(client.run_pipeline(
    pipeline_slug="video-editor",
    input={
        "video_url": "https://example.com/interview.mp4",
        "instructions": "Turn the scene into a snowy night. Keep the subject and camera movement unchanged.",
        "model": "gemini-omni-1-1-flash",
    },
))

go get github.com/pipe2-ai/sdk-go
运行流水线
client := pipe2.NewClient(os.Getenv("PIPE2_TOKEN"))

input := json.RawMessage(`{
  "video_url": "https://example.com/interview.mp4",
  "instructions": "Turn the scene into a snowy night. Keep the subject and camera movement unchanged.",
  "model": "gemini-omni-1-1-flash"
}`)

run, err := pipe2.RunPipeline(context.Background(), client, "video-editor", input)
if err != nil {
    log.Fatal(err)
}

brew install pipe2-ai/tap/pipe2
运行流水线
pipe2 pipelines run \
  --pipeline video-editor \
  --input-json '{"video_url": "https://example.com/interview.mp4", "instructions": "Turn the scene into a snowy night. Keep the subject and camera movement unchanged.", "model": "gemini-omni-1-1-flash"}' \
  --wait

完整 API 参考 CLI 参考

常见问题

支持哪些视频格式?
支持 MP4、WebM 等常见视频格式。片段过长时,建议先用 Video Trim 裁短。
编辑需要多长时间?
通常需要 1–3 分钟,具体取决于改动的复杂程度。
它会保留原始视频吗?
AI 会尽量保持场景中的其他部分一致,但生成的是经过重新创作的视频,并非逐像素修改原片。
可以连续进行多次编辑吗?
可以。你可以把结果再次交给 Video Editor 继续调整,也可以送入 Video Reel 合成。
需要多少积分?
每次编辑 13.1 to 33.3 积分。

用 AI 编辑现有视频

上传视频并描述想要的变化,AI 就能添加视觉特效、切换风格、改变氛围,甚至重塑整个场景。

工作原理

  1. 上传视频:任意不超过约 8 秒的短片段
  2. 描述改动:说明要添加、移除或调整的内容
  3. 生成编辑结果:应用改动,同时尽量保持其他元素一致

你可以编辑什么

  • 更改视觉风格,使其具有电影感、添加胶片颗粒、转为夜景
  • 添加天气特效,雨、雪、乌云、雾
  • 修改色彩和氛围,暖色调、冷色去饱和、复古观感
  • 改造元素,更换背景、改变对象、添加视觉特效

探索更多流水线

AI 视频生成
from 9.5
AI 视频生成
图像生成器
0.2-6.4
图像生成器
AI 配音生成
0.002-40.0
AI 配音生成
音乐生成器
2.5-22.6
音乐生成器