APIMart
Wan 2.7 Video Edit model icon
Video

Wan 2.7 Video Edit API

Wan 2.7 Video Edit API (wan2.7-videoedit) on APIMart runs Alibaba's Wan 2.7 video editing model. Send a 2 to 10 second source clip and an instruction to change outfits, replace backgrounds, add elements or restyle the whole video, optionally guided by up to 4 reference images, and get the edited clip at 720P or 1080P with the original or regenerated audio.

Instruction EditingStyle TransferUp to 4 Reference ImagesKeep or Regenerate Audio

Service Highlights

  • Official Discounts
  • Pay-as-you-go
  • Fast & Low Latency
Input
28/5000
Prompt Extend
Watermark
Output

Video link valid for 72 hours

Wan 2.7 Video Edit API Pricing

Transparent pricing with no hidden fees. Pay only for what you use.

VariantTierGoldCurrent pricePlatinumDiamondOfficialYour savings
wan2.7-videoedit720P0.664Credits(~$0.0664)/sec0.6308Credits(~$0.0631)/sec0.5976Credits(~$0.0598)/sec0.83Credits(~$0.083)/sec20%
1080P1.096Credits(~$0.1096)/sec1.0412Credits(~$0.1041)/sec0.9864Credits(~$0.0986)/sec1.37Credits(~$0.137)/sec20%

* Actual costs are subject to final output.

Wan 2.7 Video Edit API - Alibaba Wan Video Editing

Use the Wan 2.7 Video Edit API on APIMart to edit an existing 2 to 10 second clip with a text instruction: replace backgrounds, change outfits, add elements or restyle it from reference images, at 720P or 1080P with per-second billing.

50K+

Active Users

99.9%

Uptime

2x

Faster

—

Cost Savings

Wan 2.7 Video Edit API Example: Instruction Edit and Reference Image

Call the Wan 2.7 Video Edit API on APIMart with one POST request. Editing is asynchronous: submit a task, then poll the task endpoint for the video URL.

  1. 1

    Authenticate Wan 2.7 Video Edit requests

    Save your APIMart key in the APIMART_API_KEY environment variable and send it as Authorization: Bearer <key> on every request.

  2. 2

    Submit a Wan 2.7 Video Edit task

    POST /v1/videos/generations with model wan2.7-videoedit, the source clip in video_urls and your edit instruction. Add image_urls for a target style. The task ID is in data[0].task_id.

  3. 3

    Get the edited video

    Poll GET /v1/tasks/{task_id} until status is completed, then read the video URL from data.result.videos[0].url[0] and save the file to your own storage.

    See the Wan 2.7 Video Edit API reference for every parameter, input limit and response field.

POST /v1/videos/generations
curl -X POST https://api.apimart.ai/v1/videos/generations \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan2.7-videoedit",
    "prompt": "Replace the background with a snowy mountain village at dusk and keep the person and their movement unchanged",
    "video_urls": [
      "https://example.com/source.mp4"
    ],
    "resolution": "720P"
  }'

Wan 2.7 Video Edit API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: wan2.7-videoeditUse wan2.7-videoedit.
video_urlsarrayRequiredDefault: —Source clip (mp4 or mov, 2–10 seconds, up to 100 MB). Only the first video is used.
promptstringOptionalDefault: —Edit instruction, up to 5,000 characters. Without it the model applies a default style transfer.
negative_promptstringOptionalDefault: —Content to avoid, up to 500 characters.
image_urlsarrayOptionalDefault: —Up to 4 reference images for the target style or appearance.
resolutionstringOptionalDefault: 1080P720P or 1080P.
durationintegerOptionalDefault: 00 keeps the full source length; 2 to 10 keeps that many seconds from the start.
sizestringOptionalDefault: —16:9, 9:16, 1:1, 4:3 or 3:4. Leave out to match the source video.
prompt_extendbooleanOptionalDefault: trueRewrite and enrich the prompt. Helps short prompts but adds time.
seedintegerOptionalDefault: —0 or higher. The same seed gives similar, not identical, results.
watermarkbooleanOptionalDefault: falseAdd an AI Generated watermark.
metadata.audio_settingstringOptionalDefault: autoauto regenerates matching audio; origin keeps the source audio.
nsfw_checkbooleanOptionalDefault: falseModerate the prompt and input images with omni-moderation-latest before submission.

Compare Alibaba Wan Video Models

Compare every Alibaba Wan video model on APIMart. One API key calls all of them, billed per second of video.

ModelBest forResolutionDuration
Wan 3.0 APILongest Wan clips, with first and last frames or image, video, audio, document and webpage references480P / 720P / 1080P2–30 s
Wan 3.0 Prime APISame parameters as Wan 3.0 under a separate model and price480P / 720P / 1080P2–30 s
Wan 2.7 APIText to video, first and last frames, video continuation and audio-driven clips720P / 1080P2–15 s
Wan 2.7 R2V APIKeeping characters consistent from reference images or videos720P / 1080P2–15 s
Wan 2.7 Video Edit APIThis pageEditing or restyling an existing video with an instruction720P / 1080PFollows source, up to 10 s
Wan 2.6 APIMulti-shot text to video and image to video with audio and effect templates720p / 1080p5 / 10 / 15 s
Wan 2.6 I2V APIDedicated image to video from a single first frame720p / 1080p5 / 10 / 15 s
Wan 2.6 I2V Flash APIImage to video at any length from 2 to 15 seconds, with or without audio720p / 1080p2–15 s
Wan 2.5 APIShort clips that always include sound, with a low-cost 480p tier480p / 720p / 1080p5 / 10 s

Guides, comparisons and pricing analysis from the APIMart blog.