Wan 2.7 VideoEdit icon
Video by Alibaba

Wan 2.7 VideoEdit API

Instruction-based video edit — restyle, replace, or transform clips with a prompt.

Integrate Wan 2.7 VideoEdit with a single API call — one key, one unified endpoint, and shared billing across every model on Apiframe.

model: "wan-2.7-videoedit"

What's special about Wan 2.7 VideoEdit

  • Outputs at 720p / 1080p.
  • 6 aspect ratios, including auto, 16:9, 9:16.
  • Generates clips from 2s to 10s.
  • Image-to-video and reference-image support.
  • Fast turnaround — about 180s per generation on average.
  • Pay-as-you-go pricing with no Alibaba account required — you only pay for successful generations.
  • One API key, unified billing, idempotency and webhooks across every Apiframe model.

Made with Wan 2.7 VideoEdit

A few outputs generated through the Wan 2.7 VideoEdit API on Apiframe.

Sample coming soon
Sample coming soon
Sample coming soon

Overview

Endpoint
POST /v2/videos/edit
Model ID
wan-2.7-videoedit
Params key
wan27VideoeditParams
Modality
video
Provider
Alibaba
Pricing
Pay-as-you-go
Avg. completion
~180s

Capabilities

Aspect ratiosauto, 16:9, 9:16, 1:1, 4:3, 3:4
Resolutions720p, 1080p
Durations2s, 3s, 4s, 5s, 6s, 7s, 8s, 9s, 10s
Image inputSupported
Avg. time~180s

Quick start

Send a single POST /v2/videos/edit request with your API key to generate with Wan 2.7 VideoEdit. The call returns a jobId you can poll or receive via webhook.

curl -X POST https://api.apiframe.ai/v2/videos/edit \
  -H "X-API-Key: afk_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
        "model": "wan-2.7-videoedit",
        "wan27VideoeditParams": {
            "video": "https://example.com/input.jpg",
            "reference_image": "https://example.com/input.jpg",
            "resolution": "720p",
            "aspect_ratio": "auto"
        }
    }'
import requests

response = requests.post(
    "https://api.apiframe.ai/v2/videos/edit",
    headers={
        "X-API-Key": "afk_your_api_key_here",
        "Content-Type": "application/json",
    },
    json={
        "model": "wan-2.7-videoedit",
        "wan27VideoeditParams": {
            "video": "https://example.com/input.jpg",
            "reference_image": "https://example.com/input.jpg",
            "resolution": "720p",
            "aspect_ratio": "auto"
        }
    },
)
print(response.json())  # { "jobId": "...", "status": "QUEUED" }
const response = await fetch("https://api.apiframe.ai/v2/videos/edit", {
  method: "POST",
  headers: {
    "X-API-Key": "afk_your_api_key_here",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "wan-2.7-videoedit",
    "wan27VideoeditParams": {
      "video": "https://example.com/input.jpg",
      "reference_image": "https://example.com/input.jpg",
      "resolution": "720p",
      "aspect_ratio": "auto"
    }
  }),
});
const { jobId } = await response.json();
console.log(jobId);

Response & job lifecycle

Generation is asynchronous. A successful submission returns 202 Accepted with a jobId. Poll GET /v2/jobs/{id} (or supply a webhook_url) until the status is COMPLETED; the result field then holds the output URL(s).

1. Submission response (202)

{
  "jobId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
  "status": "QUEUED"
}

2. Poll for the result

curl https://api.apiframe.ai/v2/jobs/JOB_ID \
  -H "X-API-Key: afk_your_api_key_here"
import requests, time

while True:
    job = requests.get(
        "https://api.apiframe.ai/v2/jobs/JOB_ID",
        headers={"X-API-Key": "afk_your_api_key_here"},
    ).json()
    if job["status"] in ("COMPLETED", "FAILED"):
        break
    time.sleep(2)
print(job["result"])
let job;
do {
  await new Promise((r) => setTimeout(r, 2000));
  job = await fetch("https://api.apiframe.ai/v2/jobs/JOB_ID", {
    headers: { "X-API-Key": "afk_your_api_key_here" },
  }).then((r) => r.json());
} while (job.status !== "COMPLETED" && job.status !== "FAILED");
console.log(job.result);

Input schema

Request parameters accepted by the Wan 2.7 VideoEdit endpoint. Model-specific options are nested under the params object shown below.

Parameter Type Required Default Allowed / range Description
model string required "wan-2.7-videoedit" "wan-2.7-videoedit" The model identifier for this endpoint.
wan27VideoeditParams.video string (URL) optional Video to edit (mp4 / mov, 2–10s).
wan27VideoeditParams.reference_image string (URL) optional Optional style / appearance reference for the edit.
wan27VideoeditParams.resolution string optional "720p" "720p", "1080p" Resolution
wan27VideoeditParams.aspect_ratio string optional "auto" "auto", "16:9", "9:16", "1:1", "4:3", "3:4" Aspect ratio
wan27VideoeditParams.audio_setting string optional "auto" "auto", "origin" Audio
wan27VideoeditParams.negative_prompt string optional Negative prompt
wan27VideoeditParams.seed number optional step 1 Reuse a number to reproduce the same result.

Frequently Asked Questions

Common questions about the Wan 2.7 VideoEdit API.

Is there an API for Wan 2.7 VideoEdit?

Yes. Apiframe exposes Wan 2.7 VideoEdit through a single REST endpoint (`POST /v2/videos/edit` with `model: "wan-2.7-videoedit"`). You get one unified API, key, and billing across every supported model — no separate Alibaba account required.

How much does the Wan 2.7 VideoEdit API cost?

Wan 2.7 VideoEdit uses simple pay-as-you-go pricing on Apiframe — you only pay for successful generations. See the pricing page for plans and volume discounts.

How do I call the Wan 2.7 VideoEdit API?

Send a POST request to `/v2/videos/edit` with your `X-API-Key` and a JSON body containing `model: "wan-2.7-videoedit"`. The call returns a `jobId`; poll `GET /v2/jobs/{id}` or use a webhook to receive the result.

What parameters does Wan 2.7 VideoEdit support?

Wan 2.7 VideoEdit accepts 7 model-specific parameters (nested under `wan27VideoeditParams`) plus the common `prompt` and `webhook_url` fields. See the input schema above for the full list with types and defaults.

Still have questions?

Start building with the Wan 2.7 VideoEdit API

Get your API key and integrate Wan 2.7 VideoEdit in minutes — Pay-as-you-go.

Free credits to start
One API for every model
Webhooks, SDKs & idempotency
No provider account required

Questions? Join our Discord or contact sales.