パイプライン一覧に戻る

動画編集

既存の動画をAIで編集。スタイルの変更、エフェクトの追加、シーンの修正、あるいは見た目全体の変換ができます。

13.1

未入力の項目: 編集する動画, 指示

使用モデル

API

変更前 / 変更後Grok Imagine Video

夜 → 黄金の夜明け(シネマティック)

Grok Imagine Video。超ワイドの夜間飛行を、雲海の上に昇る黄金の朝日として再構成。指示1つで環境とライティングを丸ごと変えながら、Pyra自身はシャープなまま変わりません。

動画編集 API

このパイプラインをご自身のコードから呼び出せます。1回のリクエストで実行が始まり、モデルは独立したエンドポイントではなく入力フィールドです。

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 に接続すると、エージェントがこれらのツールを使えるようになります。このパイプラインを見つけ、上と同じスキーマを読み取って実行します。

  • 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 などの標準的な動画フォーマットをアップロードできます。とても長いクリップの場合は、まず動画トリムを使用してください。
編集にはどれくらいかかりますか?
複雑さにより通常1〜3分です。パイプラインは非同期で処理します。
元の動画は保持されますか?
AIはシーンの残りの部分を一貫させようとしますが、ピクセルをその場で編集するのではなく動画を再生成します。
編集を連結できますか?
はい, 出力を動画エディターに戻して反復的に洗練したり、動画リールに送って組み立てたりできます。
何クレジットかかりますか?
1回の編集につき 13.1 to 29.8 クレジット。

他のパイプラインを見る

すべて見る →
動画生成
from 9.5
動画生成
画像生成
0.2-6.4
画像生成
音声生成
0.7-1.3
音声生成
音楽生成
2.5-45.1
音楽生成