Ana içeriğe atla
Model logosu

Wan 2.7 API

  • Metinden Videoya
  • Görselden Videoya
  • Referanstan Videoya
  • Videodan Videoya
Mod
Yüklemek için dokununMP3, WAV, FLAC, OGG · Maks. 15MB
Çıktı

Oluşturulan video çıktınız burada görünecek

Güncellendi:

What is the Wan 2.7 API?

The Wan 2.7 API is live on UnificAlly as alibaba/wan-2.7-video, from $0.09 per second of video. Wan 2.7 is Alibaba's March 2026 upgrade to the Wan video line. Three modes share one model ID. Text-to-video accepts a prompt and an optional audio_url for driving timing, with multi-shot controllable through natural language and timestamps in the prompt. Image-to-video covers first-frame, first-and-last-frame, video continuation (extending an existing video), and lip-synced motion when an audio track is supplied. Reference-to-video accepts up to 5 reference images and up to 5 reference videos with "Image 1" and "Video 1" identifiers in the prompt. Output runs at 720P or 1080P in 2 to 15 second videos, with negative prompts, prompt extend, watermark, and seed available across all three modes.

Wan 2.7 API specs

Model IDalibaba/wan-2.7-video
EndpointPOST https://api.unifically.com/v1/tasks
Request typesText-to-video (t2v), image-to-video (i2v), reference-to-video (r2v)
Duration2 to 15 seconds, default 5
Resolution720P or 1080P, default 1080P
Aspect ratio16:9, 9:16, 1:1, 4:3, 3:4 in text-to-video and reference-to-video
Frame inputsFirst frame, first and last frame, or a 2 to 10 second video to continue
Audio inputWAV or MP3, 2 to 30 seconds, as a driving track in text-to-video and image-to-video
ReferencesReference images and reference videos in r2v, plus an optional voice reference
Rate at 720p$0.09/sec
Rate at 1080p$0.135/sec

Billing is per second of output, with no subscription. Each second of reference video you add is billed at the same per-second rate. The pricing page shows the live rate table.

How to use the Wan 2.7 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 sets the mode.
  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",
    "input": {
      "mode": "t2v",
      "prompt": "A kitten running in the moonlight",
      "resolution": "720P",
      "ratio": "16:9"
    }
  }'

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 API parameters

These parameters are shared by the three modes.

ParameterTypeDefaultWhat it does
modestring"t2v""t2v", "i2v", or "r2v"
promptstring""Text prompt, up to 5000 characters. Required for text-to-video and reference-to-video
negative_promptstring""What to avoid, up to 500 characters
resolutionstring"1080P""720P" or "1080P"
durationinteger5Output duration in seconds, 2 to 15
prompt_extendbooleantrueLLM-based prompt rewriting. Improves short prompts but adds latency
watermarkbooleanfalseAdds an "AI Generated" watermark in the lower-right corner
seedintegernullRandom seed, 0 to 2147483647

Each mode adds its own inputs.

ParameterTypeDefaultWhat it does
ratiostring"16:9"t2v and r2v. "16:9", "9:16", "1:1", "4:3", or "3:4". Ignored in r2v when first_frame_url is set
audio_urlstringnullt2v and i2v. WAV or MP3, 2 to 30 seconds, max 15MB. Drives lip-sync and action timing in i2v
first_frame_urlstringnulli2v: first frame image (JPEG, JPG, PNG, BMP, WEBP, max 20MB). r2v: optional first frame for scene control
last_frame_urlstringnulli2v. Last frame image. Requires first_frame_url
video_urlstringnulli2v. Video to continue (MP4 or MOV, 2 to 10 seconds, max 100MB). Cannot be combined with the frame inputs
reference_image_urlsstring[]nullr2v. Reference images, one subject each, max 20MB each
reference_video_urlsstring[]nullr2v. Reference videos, one subject each (MP4 or MOV, 1 to 30 seconds, max 100MB each)
reference_voice_urlstringnullr2v. Audio for voice timbre (WAV or MP3, 1 to 10 seconds, max 15MB)
nsfw_checkbooleanfalseChecks the prompt and input images for NSFW content before generating

The Wan 2.7 API documentation has the full reference, with input limits and more examples for each mode.

Image-to-video request

Send a first frame, and optionally a last frame, with mode set to i2v.

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",
    "input": {
      "mode": "i2v",
      "prompt": "A small black cat looks up at the sky curiously",
      "first_frame_url": "https://example.com/first.png",
      "last_frame_url": "https://example.com/last.png",
      "duration": 10,
      "prompt_extend": false
    }
  }'

Reference-to-video request

The Wan 2.7 API numbers images and videos separately, in array order. Name them in the prompt as "Image 1" or "Video 1".

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",
    "input": {
      "mode": "r2v",
      "prompt": "The reference image character walks through a sunlit garden",
      "reference_image_urls": ["https://example.com/person.png"],
      "resolution": "1080P",
      "ratio": "16:9",
      "duration": 5
    }
  }'

Key features of Wan 2.7

Five features cover the surface area you'll actually use day to day.

First-and-last-frame in image-to-video

Supply a start frame and an optional end frame. The model interpolates the camera move between them while keeping aspect ratio from the input. Useful for storyboard-driven animation.

Video continuation

Pass a 2–10 second source video via video_url. The model generates new content up to the requested duration. Useful for stretching a hero video past the per-call cap without restarting the look.

Lip-sync via driving audio

In image-to-video, pass an audio_url (wav/mp3, 2–30 seconds). The model times mouth movements and motion to the audio. No separate lip-sync pipeline needed.

Reference-to-video up to 5 inputs each

Mix up to 5 reference images and up to 5 reference videos. Reference each one in the prompt with "Image 1" or "Video 1". Useful for ads with multiple recurring characters or props.

Multi-shot from natural language

Control shot structure in the prompt itself, with timestamped beats like "Shot 1 [0-3s] wide shot…" The model interprets and chains shots without a separate multi_prompt array.

What Wan 2.7 is best for

  • Last-frame interpolation

    Supply start and end frames in image-to-video and the model lands on the target.

  • Video continuation

    Stretch a finished video past the per-call cap by feeding it back in as video_url.

  • Lip-synced character videos

    Pass an audio track in image-to-video for mouth movements timed to the recording.

  • Multi-character reference-to-video

    Up to 5 reference images and up to 5 reference videos for scenes with recurring characters and props.

  • Multi-shot narratives

    Control shot boundaries with timestamps in the prompt, no separate multi-shot field.

  • Brand-restyled video

    Pair text-to-video or image-to-video with prompt extend and seeds for repeatable brand-aligned output.

Wan 2.7 limitations

last_frame_url requires first_frame_url. Video continuation (video_url) is mutually exclusive with the frame inputs. Audio inputs are capped at 30 seconds and 15MB. Reference videos are capped at 30 seconds and 100MB. Reference-to-video does not accept a seed. Aspect ratio in reference-to-video is ignored when first_frame_url is set.

SSS

Wan 2.7 hakkında sık sorulan sorular

Wan 2.7 is Alibaba's March 2026 upgrade to the Wan video line. It exposes three modes (text-to-video, image-to-video, reference-to-video) with new features including first-and-last-frame interpolation, video continuation, lip-sync from a driving audio track, and reference-to-video with up to 5 reference images and up to 5 reference videos.

Wan 2.7 uses one model ID, alibaba/wan-2.7-video, for all three modes, so a key from the API keys page in the Authorization: Bearer header covers text, image and reference requests. Output is billed per second, and each second of reference video is billed at the same rate.

Set mode to t2v, i2v or r2v and add that mode's inputs: a prompt and optional audio_url for text-to-video, first_frame_url, last_frame_url or a video_url to continue for image-to-video, and reference_image_urls or reference_video_urls for reference-to-video. resolution takes 720P or 1080P and duration 2 to 15 seconds; the finished Wan 2.7 API task carries the video URL.

Wan 2.7 adds last-frame control in image-to-video, video continuation that extends an existing video, lip-sync via a driving audio_url in image-to-video, and a unified reference-to-video mode with up to 5 reference images and up to 5 reference videos, using "Image 1" / "Video 1" identifiers in the prompt. Multi-shot can be controlled by natural language with timestamps in the prompt.

Three. text-to-video (t2v) with optional audio, image-to-video (i2v) with first-frame, last-frame, video continuation, and lip-sync, and reference-to-video (r2v) with up to 5 reference images and up to 5 reference videos, using "Image 1" / "Video 1" identifiers in the prompt.

In image-to-video mode, pass a video_url instead of a first frame. The model extends the input video up to the requested duration. If your input is 3 seconds and you ask for 15, the model generates 12 new seconds and the final output is 15.

Pass an audio_url (wav or mp3, 2–30 seconds, max 15MB) in image-to-video mode. The model times mouth movements and motion to the audio.

16:9, 9:16, 1:1, 4:3, and 3:4. The default is 16:9.

Yes. Wan 2.7 Video Edit is a separate model (alibaba/wan-2.7-video-edit) for editing or style-transferring an existing video with optional reference images.