Skip to main content
Model logo

Wan 2.7 Video Edit API

  • Video Edit
Tap to uploadMP4, WEBM, MOV · Max 100MB
Tap to uploadPNG, JPG, WEBP, GIF · Max 20MB
Output

Your generated video will appear here

Updated

What is the Wan 2.7 Video Edit API?

The Wan 2.7 Video Edit API is live on UnificAlly as alibaba/wan-2.7-video-edit, from $0.09 per second of video. Wan 2.7 Video Edit is the dedicated video-to-video model in the Wan 2.7 family. It transforms an existing video using a text prompt and optional reference images. The input video runs 2 to 10 seconds; output renders at 720P or 1080P. Up to four reference images can guide style or content. Audio can pass through unchanged via audio_setting: "origin", or the model can decide automatically. Use it for style transfer, background swaps, lighting changes, character restyling, and brand restyling on existing videos.

Wan 2.7 Video Edit API specs

Model IDalibaba/wan-2.7-video-edit
EndpointPOST https://api.unifically.com/v1/tasks
Request typesVideo edit from a prompt, video edit with reference images
Input videoMP4 or MOV, 2 to 10 seconds, up to 100MB
Output resolution720P, 1080P
Output duration2 to 10 seconds, or the input length when omitted
Aspect ratio16:9, 9:16, 1:1, 4:3, 3:4, or the input ratio when omitted
Audioauto or origin (keep the source audio)
Reference imagesUp to 4, JPEG, JPG, PNG, BMP or WEBP, up to 20MB each
Rate at 720P$0.09/sec
Rate at 1080P$0.135/sec

Billing is per second, with no subscription. The pricing page shows the live rates for the Wan 2.7 Video Edit API.

How to use the Wan 2.7 Video Edit API

  1. Create an API key on the API keys page.
  2. Send a POST request to /v1/tasks with the model ID and an input object that holds the video_url.
  3. Read the task_id from the response, then check the task until it is finished, or pass a callback URL and wait for the result.
curl -X POST https://api.unifically.com/v1/tasks   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "alibaba/wan-2.7-video-edit",
    "input": {
      "prompt": "Convert the entire scene to a claymation style",
      "video_url": "https://example.com/scene.mp4",
      "resolution": "720P"
    }
  }'

The response returns the task ID straight away:

{
  "code": 200,
  "success": true,
  "data": {
    "task_id": "abc123def456",
    "status": "processing"
  }
}

The finished task carries the video URL.

curl https://api.unifically.com/v1/tasks/{task_id}   -H "Authorization: Bearer YOUR_API_KEY"

Wan 2.7 Video Edit API parameters

ParameterTypeDefaultWhat it does
video_urlstringnoneRequired. The video to edit. MP4 or MOV, 2 to 10 seconds, up to 100MB
promptstring""Text prompt describing the edit, up to 5,000 characters
negative_promptstring""What to avoid, up to 500 characters
reference_image_urlsstring[]nullUp to 4 reference images for style or content transfer. JPEG, JPG, PNG, BMP or WEBP, up to 20MB each
resolutionstring1080P720P or 1080P
durationintegernullOutput length in seconds, 2 to 10. Omit to keep the input duration
ratiostringnullForce the output aspect ratio: 16:9, 9:16, 1:1, 4:3, or 3:4. Omit to match the input video
audio_settingstringautoauto lets the model decide from the prompt. origin keeps the original audio unchanged
prompt_extendbooleantrueRewrites the prompt before generation. Improves short prompts but adds latency
watermarkbooleanfalseAdds an "AI Generated" watermark in the lower-right corner
seedintegernullRandom seed, 0 to 2147483647
nsfw_checkbooleanfalseChecks the prompt and input images for NSFW content before generating. Off unless set to true

The Wan 2.7 Video Edit API documentation has the full reference, with input limits and examples.

Edit with a reference image

Pass reference_image_urls to carry content or style from an image into the video.

curl -X POST https://api.unifically.com/v1/tasks   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "alibaba/wan-2.7-video-edit",
    "input": {
      "prompt": "Replace the clothes of the girl with the clothes from the image",
      "video_url": "https://example.com/girl.mp4",
      "reference_image_urls": ["https://example.com/outfit.png"]
    }
  }'

Key features of Wan 2.7 Video Edit

Four features cover what the model exposes.

Video-to-video editing

Pass a 2–10 second source video via video_url. The model preserves source motion while transforming appearance based on the prompt and any reference images.

Up to 4 reference images for style

Pass reference_image_urls to anchor style or content. Useful for outfit replacement, prop placement, and brand-aligned restyles.

Audio passthrough or auto

Set audio_setting: "origin" to keep the source audio unchanged. Default auto lets the model decide based on the prompt. Useful for preserving voiceover while restyling visuals.

Optional duration and aspect override

Omit duration and ratio to keep the input length and aspect, or force a value when the output needs a specific shape. Useful for repurposing videos into multiple cuts.

What Wan 2.7 Video Edit is best for

  • Style transfer

    Apply artistic styles to existing videos in a single call.

  • Background swaps

    Replace the background while preserving subject motion from the source video.

  • Brand adaptation

    Restyle source videos to match brand colour and lighting.

  • Seasonal transformations

    Day-to-night, summer-to-winter, era shifts on the same source.

  • Creative exploration

    Run multiple edit directions on the same source video.

  • Pipeline plug-in

    Drop into a content pipeline that already produces source video and needs a styling pass.

Wan 2.7 Video Edit limitations

Source video is capped at 2 to 10 seconds and 100MB. Output duration is 2 to 10 seconds (omit to keep input length). Reference images cap at four, max 20MB each. Resolution is 720P or 1080P only. The model preserves source motion, so structural changes that require entirely new motion (e.g. replacing a walking subject with a running one) are out of scope; use Wan 2.7's reference-to-video mode for that. For sources longer than 10 seconds or a fifth reference image, the HappyHorse 1.0 Video Edit API accepts 3 to 60 seconds (it edits the first 15) and up to five references.

FAQs

People also ask about Wan 2.7 Video Edit

Wan 2.7 Video Edit (alibaba/wan-2.7-video-edit) is the dedicated video-to-video model in the Wan 2.7 family. It transforms an existing video using a text prompt and optional reference images. Source videos are 2 to 10 seconds; output runs at 720P or 1080P.

Editing calls authenticate with a key from the API keys page, sent as Authorization: Bearer <key>. Before the first Wan 2.7 Video Edit API request, host the source as an MP4 or MOV of 2 to 10 seconds and up to 100MB at a public video_url.

Model alibaba/wan-2.7-video-edit takes the required video_url, a prompt describing the change, up to four reference_image_urls, resolution (720P or 1080P) and audio_setting (auto, or origin to keep the original sound). Poll the task or pass a callback_url; the finished task carries the video URL.

The base Wan 2.7 generates new videos from text, image, or reference inputs. Wan 2.7 Video Edit takes an existing video as input via video_url and modifies it with a prompt and up to four reference images. Different model ID, different surface.

Up to four. Useful for style transfer, outfit replacement, prop placement, and other content swaps that need a visual anchor.

Style transfer (apply a look across frames), background swap, lighting and colour shifts, character or outfit restyling, and seasonal or thematic transformations of existing videos.

Yes. Set audio_setting to origin to keep the source audio unchanged. The default is auto, which lets the model decide based on the prompt.

Both are optional. Omit duration to keep the input length (2 to 10 seconds). Omit ratio to keep the input aspect ratio. Force a different value when needed.