返回流水线

视频编辑器

用 AI 编辑现有视频。更改风格、添加特效、修改场景,或彻底改变整体观感。

13.1

还需填写:待编辑视频, 指令

使用的模型

API

示例

前 / 后Grok Imagine Video

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

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

复现

视频编辑器 API

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

4 个输入
2 必填
13.1 to 29.8 积分
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: "Cut the dead air at the start and add a slow zoom on the speaker",
    model: "gemini-omni-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": "Cut the dead air at the start and add a slow zoom on the speaker",
        "model": "gemini-omni-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": "Cut the dead air at the start and add a slow zoom on the speaker",
  "model": "gemini-omni-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": "Cut the dead air at the start and add a slow zoom on the speaker", "model": "gemini-omni-flash"}' \
  --wait

获取 API 令牌 →

参数

instructions 必填

What to change, in plain language.

string
video_url 必填

Public URL of the video to edit.

string
model

Video engine to use. Leave unset and Pipe2 picks one that supports your edit.

gemini-omni-flashgrok-imagine-video 默认 gemini-omni-flash
显示全部 4 个输入
reference_images

Optional: up to 4 images the edit borrows a subject or style from. Gemini Omni Flash only — Grok Imagine cannot read reference images.

array

在 AI 智能体中使用

将任意 MCP 客户端指向 pipe2,你的智能体就能获得这些工具。它会找到这条流水线,读取上方相同的 schema,然后运行它。

  • list_pipelines
  • get_pipeline_schema
  • run_pipeline
  • get_pipeline_run_status
  • request_upload
https://mcp.pipe2.ai/mcp
{
  "mcpServers": {
    "pipe2ai": {
      "url": "https://mcp.pipe2.ai/mcp",
      "headers": { "Authorization": "Bearer YOUR_TOKEN" }
    }
  }
}

完整 API 参考 MCP 设置 CLI 参考

视频编辑器: AI 驱动的视频编辑

上传一段视频并描述你想改变的内容。AI 会修改素材,添加视觉特效、更改风格、改变氛围,或彻底改变整个场景。

工作原理

  1. 上传视频: 任意约 8 秒以内的短片段
  2. 描述改动: 要添加、移除或修改什么
  3. AI 编辑视频: 在应用你的改动的同时保留未触及的元素

你可以编辑什么

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

常见问题

支持哪些视频格式?
上传任意标准视频格式,如 MP4 或 WebM。对于很长的片段,请先使用 Video Trim。
编辑需要多长时间?
通常为 1-3 分钟,取决于复杂度。流水线异步处理。
它会保留原始视频吗?
AI 会力求让场景的其余部分保持一致,不过它是重新生成视频,而非就地编辑像素。
我可以串联多次编辑吗?
可以,输出可回送到 Video Editor 进行迭代优化,或送入 Video Reel 进行合成。
需要多少积分?
每次编辑 13.1 to 29.8 积分。

探索更多流水线

查看全部 →
视频生成器
from 9.5
视频生成器
图像生成器
0.2-6.4
图像生成器
音频生成器
0.7-1.3
音频生成器
音乐生成器
2.5-45.1
音乐生成器