video-edit

WAN 2.7 - Edit video

Edit an existing video using WAN 2.7. Transform video content with text instructions, apply visual references, or transfer artistic styles.

Three editing modes:

  • Instruction-based editing: Provide prompt with editing instructions (e.g., "change the sky to sunset")
  • Reference-image editing: Provide prompt and image_urls to apply visual references to the video
  • Style transfer: Provide prompt and image_urls with style reference images to transfer artistic styles

Key features:

  • 720P and 1080P resolution support
  • Up to 3 reference images for editing or style transfer
  • Set duration to 0 to preserve the full input video duration
  • Configurable audio handling: auto-generate or preserve original
post/v1/ai/video-edit/wan-2-7

Request

  • Base URL: https://api.magnific.com
  • URL: https://api.magnific.com/v1/ai/video-edit/wan-2-7
  • Auth: API key in header x-magnific-api-key

Request body

webhook_urlstring uri

Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.

promptstring

Editing instructions describing the desired changes. For reference-image or style-transfer modes, describe how the reference images should be applied.

negative_promptstring

Elements to avoid in the edited video.

video_urlstring uri required

URL of the input video to edit. Must be publicly accessible.

Supported formats: MP4, MOV Duration: 2-10 seconds Dimensions: 240-4096px per side, aspect ratio between 1:8 and 8:1 Maximum file size: 100MB

image_urlsstring[]

Reference images for editing or style transfer. Up to 3 images.

Supported formats: JPEG, PNG, BMP, WEBP Dimensions: 240-8000px per side Maximum file size: 20MB each

aspect_ratio'16:9' | '9:16' | '1:1' | '4:3' | '3:4'

Output video aspect ratio for editing. If not specified, the aspect ratio of the input video is preserved.

  • 16:9: Landscape (widescreen)
  • 9:16: Portrait (vertical, mobile-optimized)
  • 1:1: Square
  • 4:3: Standard landscape
  • 3:4: Standard portrait
resolution'720P' | '1080P'

Output video resolution:

  • 720P: 720p HD (1280x720)
  • 1080P: 1080p Full HD (1920x1080)
durationinteger

Duration of the output video in seconds. Set to 0 to preserve the full duration of the input video.

seedinteger

Random seed for reproducible generation. Use the same seed with identical parameters to reproduce results. Leave unset for random seed.

Example request

{
  "webhook_url": "https://www.example.com/webhook",
  "prompt": "Change the background to a futuristic cityscape with neon lights",
  "negative_prompt": "watermark, text, distortion, blurry",
  "video_url": "https://example.com/input-video.mp4",
  "image_urls": [
    "https://example.com/reference1.jpg"
  ],
  "seed": 12345,
  "additional_settings": {
    "prompt_extend": true
  }
}

Response

OK - The task exists and the status is returned

Example response

{
  "data": {
    "generated": [
      "https://openapi-generator.tech",
      "https://openapi-generator.tech"
    ],
    "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "status": "CREATED"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.