API Get key

Video editVideo

AI video edit

Restyles a clip or swaps an object in it from a prompt and a reference image.

Price
120 crper clip · 720p · varies with length or size
Usual time
≈ 5 min
Model id
video.video-edit

Playground

Playground

Video *

Sign in to upload a file.

Reference images

Sign in to upload a file.

Engine
Resolution
More settings

0 - 2.14748e+09

Sign up to run it

Change the settings: the price and the code follow. You need an account to run it.

video.video-edit
Quality
720p, 1080p
Engine
wan-2-7, kling-omni, happyhorse
Takes
Text, Video, Image

No example of this model yet. These are its real settings.

# 0. Upload your file first and put the id it prints in params.
curl -s -X POST https://mobyvid.com/api/v1/uploads \
  -H "Authorization: Bearer $STAGLIGHT_API_KEY" -F file=@your-file | jq -r .id

# 1. Create the job. It is charged once and refunded if it fails.
JOB_ID=$(curl -s -X POST https://mobyvid.com/api/v1/jobs \
  -H "Authorization: Bearer $STAGLIGHT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "op": "video.video-edit",
    "params": {
      "video": "med_your_upload_id",
      "prompt": "A premium product shot of a glass serum bottle on wet stone, soft window light",
      "own_footage": true,
      "resolution": "720p"
    }
  }' | jq -r .id)

# 2. Poll until it finishes. Each call waits up to 30 seconds.
while :; do
  JOB=$(curl -s "https://mobyvid.com/api/v1/jobs/$JOB_ID?wait=30" -H "Authorization: Bearer $STAGLIGHT_API_KEY")
  case "$(echo "$JOB" | jq -r .status)" in queued|running) ;; *) break ;; esac
done

# 3. Download the result from outputs[0].download_url.
DOWNLOAD_URL=$(echo "$JOB" | jq -r '.outputs[0].download_url')
curl -L -o result.mp4 "$DOWNLOAD_URL"
import os, uuid, requests

BASE = "https://mobyvid.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['STAGLIGHT_API_KEY']}"}

# 0. Upload your file first and put the id it prints in params.
with open("your-file", "rb") as f:
    print(requests.post(f"{BASE}/uploads", headers=HEADERS, files={"file": f}, timeout=300).json()["id"])

# 1. Create the job. It is charged once and refunded if it fails.
r = requests.post(f"{BASE}/jobs", timeout=60,
                  headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
                  json={
                    "op": "video.video-edit",
                    "params": {
                      "video": "med_your_upload_id",
                      "prompt": "A premium product shot of a glass serum bottle on wet stone, soft window light",
                      "own_footage": True,
                      "resolution": "720p"
                    }
                  })
r.raise_for_status()
job = r.json()

# 2. Poll until it finishes. Each call waits up to 30 seconds.
while job["status"] in ("queued", "running"):
    job = requests.get(f"{BASE}/jobs/{job['id']}", headers=HEADERS,
                       params={"wait": 30}, timeout=60).json()

# 3. Download the result from outputs[0].download_url.
print(job["outputs"][0]["download_url"] if job["outputs"] else job["data"] or job["error"])
// Node 18 or newer. Save as run.mjs: top-level await needs a module.
const BASE = "https://mobyvid.com/api/v1";
const headers = { Authorization: `Bearer ${process.env.STAGLIGHT_API_KEY}` };

// 0. Upload your file first and put the id it prints in params.
// const form = new FormData(); form.append('file', yourFile);
// const { id } = await (await fetch(`${BASE}/uploads`, { method: 'POST', headers, body: form })).json();

// 1. Create the job. It is charged once and refunded if it fails.
let res = await fetch(`${BASE}/jobs`, {
  method: "POST",
  headers: { ...headers, "Content-Type": "application/json", "Idempotency-Key": crypto.randomUUID() },
  body: JSON.stringify({
    "op": "video.video-edit",
    "params": {
      "video": "med_your_upload_id",
      "prompt": "A premium product shot of a glass serum bottle on wet stone, soft window light",
      "own_footage": true,
      "resolution": "720p"
    }
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
let job = await res.json();

// 2. Poll until it finishes. Each call waits up to 30 seconds.
while (job.status === "queued" || job.status === "running") {
  job = await (await fetch(`${BASE}/jobs/${job.id}?wait=30`, { headers })).json();
}

// 3. Download the result from outputs[0].download_url.
console.log(job.outputs[0]?.download_url ?? job.data ?? job.error);
{
  "id": "job_19a2b3c4d5e6f7a8b9c0d1",
  "op": "video.video-edit",
  "status": "queued",
  "credits": 120,
  "title": "",
  "params": {
    "video": "med_your_upload_id",
    "prompt": "A premium product shot of a glass serum bottle on wet stone, soft window light",
    "own_footage": true,
    "resolution": "720p"
  },
  "progress": null,
  "outputs": [],
  "data": null,
  "error": null,
  "run_id": null,
  "source": "api",
  "created_at": "2026-11-06T12:00:00Z",
  "finished_at": null,
  "eta_seconds": 300
}

What it costs

Engine720p1080p
wan-2-7120 cr180 cr
kling-omni150 cr203 cr
happyhorse169 cr218 cr

These prices are at a default length: the price follows the length of your text or file, and the exact price shows before the job runs. The playground shows the exact price for your settings. A job is charged once when it is accepted, and refunded if it fails. The price is checked again with your file before it runs.

Parameters

NameTypeDefaultAllowed
videorequiredVideo media id Video
promptrequiredDescription string Up to 3,000 characters
own_footagerequiredI have the right to use this clip and these images boolean
reference_imagesReference images media id[] Image, up to 4
engineEngine enum wan-2-7 wan-2-7, kling-omni, happyhorse
resolutionResolution enum 720p 720p, 1080p
seedSeed integer 0 - 2.14748e+09

Send these inside params. Files are media ids from POST /api/v1/uploads. View documentation

More models