使用的模型
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参数
-
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" }
}
}
}视频编辑器: AI 驱动的视频编辑
上传一段视频并描述你想改变的内容。AI 会修改素材,添加视觉特效、更改风格、改变氛围,或彻底改变整个场景。
工作原理
- 上传视频: 任意约 8 秒以内的短片段
- 描述改动: 要添加、移除或修改什么
- AI 编辑视频: 在应用你的改动的同时保留未触及的元素
你可以编辑什么
- 更改视觉风格,使其具有电影感、添加胶片颗粒、转为夜景
- 添加天气特效,雨、雪、乌云、雾
- 修改色彩和氛围,暖色调、冷色去饱和、复古观感
- 改造元素,更换背景、改变对象、添加视觉特效
常见问题
支持哪些视频格式?
上传任意标准视频格式,如 MP4 或 WebM。对于很长的片段,请先使用 Video Trim。
编辑需要多长时间?
通常为 1-3 分钟,取决于复杂度。流水线异步处理。
它会保留原始视频吗?
AI 会力求让场景的其余部分保持一致,不过它是重新生成视频,而非就地编辑像素。
我可以串联多次编辑吗?
可以,输出可回送到 Video Editor 进行迭代优化,或送入 Video Reel 进行合成。
需要多少积分?
每次编辑 13.1 to 29.8 积分。
探索更多流水线
查看全部 → from 9.5
视频生成器 →
根据文本提示、图像或参考片段生成 AI 视频。电影感镜头、产品揭晓、生活方式广告,配以同步音频和自然运动。
Veo 3.1 Seedance 2.0
0.2-6.4
图像生成器 →
根据文本或参考照片生成 AI 图像。产品图、角色美术、带可读文字的海报、照片级人像,数秒即得高分辨率成品。
Nano Banana 2 Nano Banana Pro GPT Image 2
0.7-1.3
音频生成器 →
将文本转换为自然语音,提供数十种音色、70+ 种语言,并可自定义语气、口音和节奏的风格指令。
Gemini 2.5 TTS
2.5-45.1
音乐生成器 →
生成原创背景音乐,匹配你描述的任意情绪、风格和时长。免版税,数秒即得。
Eleven Music v1 Lyria 3 Pro