Edit or style-transfer an existing video using Wan 2.7 Video Edit. Supports reference images for content transfer. This is a separate model from alibaba/wan-2.7-video.

Model

alibaba/wan-2.7-video-edit

Parameters

ParameterTypeRequiredDefaultDescription
promptstringNo""Text prompt describing the desired edit (max 5000 chars)
negative_promptstringNo""What to avoid (max 500 chars)
video_urlstringYesVideo to edit (MP4/MOV, 2-10s, max 100MB)
reference_image_urlsstring[]NonullUp to 4 reference images for style/content transfer. Formats: JPEG, JPG, PNG, BMP, WEBP. Max 20MB each
resolutionstringNo"1080P""720P" or "1080P"
durationintegerNonullOutput duration in seconds (2-10). Omit to keep input duration
ratiostringNonullForce output aspect ratio: "16:9", "9:16", "1:1", "4:3", "3:4". Omit to match input video
audio_settingstringNo"auto""auto" (model decides based on prompt) or "origin" (keep original audio unchanged)
prompt_extendbooleanNotrueLLM-based prompt rewriting. Improves short prompts but adds latency
watermarkbooleanNofalseAdd “AI Generated” watermark in lower-right corner
seedintegerNonullRandom seed (0-2147483647)

Example - Style Transfer

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

Example - With Reference Image

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"]
    }
  }'

Input Limits

AssetFormatsResolutionDurationFile Size
Input videoMP4, MOV240-4096px, ratio 1:8 to 8:12-10s100MB
Reference imageJPEG, JPG, PNG, BMP, WEBP240-8000px, ratio 1:8 to 8:120MB

Response

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