Back to pipelines

Video Editor

Edit existing videos with AI. Change style, add effects, modify scenes, or transform the entire look.

13.1

Still needed: Video to Edit, Instructions

Runs on

API

Examples

Before / AfterGrok Imagine Video

Night → golden dawn (cinematic)

Grok Imagine Video. The ultrawide night glide reimagined as a golden sunrise over a sea of clouds: a full environment and lighting transformation from one instruction, Pyra herself kept sharp and untouched.

Video Editor API

Call this pipeline from your own code. One request dispatches a run; the model is an input field, not a separate endpoint.

4 inputs
2 required
13.1 to 29.8 credits
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

Get an API token →

Parameters

instructions required

What to change, in plain language.

string
video_url required

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 default gemini-omni-flash
Show all 4 inputs
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

Use it from an AI agent

Point any MCP client at pipe2 and your agent gets these tools. It finds this pipeline, reads the same schema above, then runs it.

  • 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" }
    }
  }
}

Full API reference MCP setup CLI reference

Video Editor: AI-Powered Video Editing

Upload a video and describe what you want to change. AI modifies the footage, add visual effects, change the style, alter the mood, or transform entire scenes.

How It Works

  1. Upload a video: any short clip up to ~8 seconds
  2. Describe the changes: what to add, remove, or modify
  3. AI edits the video: preserves untouched elements while applying your changes

What You Can Edit

  • Change the visual style, make it cinematic, add film grain, shift to night scene
  • Add weather effects, rain, snow, storm clouds, fog
  • Modify colors and mood, warm tones, cool desaturation, vintage look
  • Transform elements, change backgrounds, alter objects, add visual effects

Frequently Asked Questions

What video formats are supported?
Upload any standard video format like MP4 or WebM. For very long clips, run Video Trim first.
How long does editing take?
Typically 1-3 minutes depending on complexity. The pipeline processes asynchronously.
Does it preserve the original video?
The AI aims to keep the rest of the scene consistent, though it regenerates the video rather than editing pixels in place.
Can I chain edits?
Yes, the output can be fed back into Video Editor for iterative refinements, or into Video Reel for assembly.
How many credits does it cost?
13.1 to 29.8 credits per edit.

Explore more pipelines

See all →
Video Generator
from 9.5
Video Generator
Image Generator
0.2-6.4
Image Generator
Audio Generator
0.7-1.3
Audio Generator
Music Generator
2.5-45.1
Music Generator