Alibaba logoAlibabaVideo

Wan 2.1 (image-to-video) API

Make videos with Wan 2.1 (image-to-video) through MartLLM.

wan/wan-2-1-image-to-videoConnect to ClaudeGet an API key
Show more

Made by Alibaba. MartLLM does not run this model. Here, sellers serve it through their own provider accounts.

Request

curl https://api.martllm.com/v1/video/generations \
  -H "Authorization: Bearer $UBERLLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/wan-2-1-image-to-video",
  "prompt": "Bring the photo to life: a slow camera push-in, hair and clothes move gently in the wind, the person blinks and smiles slightly; keep the face, outfit and background unchanged",
  "resolution": "480p",
  "duration_seconds": 5,
  "image_url": "https://example.com/photo.jpg"
}'

# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}

Set UBERLLM_API_KEY to your key. Ask /v1/video/generations/<job id> every 5 seconds until status is "succeeded", then download the file with your key. A job that fails says why and costs nothing. Full API guide

Options

Tasks
Image to video, Reference pictures
Resolutions
480p, 720p
Lengths
5 s, 10 s
Shapes
16:9, 9:16
Input pictures
Up to 1
Billing unit
per second of video
Your LoRAs
Up to 3
Model id
wan/wan-2-1-image-to-video

Try Wan 2.1 (image-to-video)

Settings

Start picture

A link to a .safetensors file, or the link of a LoRA you trained here. Up to 3 in the JSON tab.

The same request as the settings on the left, ready to copy.

curl https://api.martllm.com/v1/video/generations \
  -H "Authorization: Bearer $UBERLLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/wan-2-1-image-to-video",
  "prompt": "",
  "resolution": "480p",
  "duration_seconds": 5
}'

# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}

What the Wan 2.1 (image-to-video) API is good at

  • Clips up to 10 seconds long in one request.
  • An exact first frame from your picture.
  • Up to 1 reference pictures for characters, products or places.
  • Output at 480p, 720p.
  • Shapes: 16:9, 9:16.

Examples to start from

01

Bring a photo to life

Bring the photo to life: a slow camera push-in, hair and clothes move gently in the wind, the person blinks and smiles slightly; keep the face, outfit and background unchanged

With your picture · 5 s

02

Turn a product photo

The product in the photo turns slowly on a turntable, soft studio light, the label stays sharp and readable, clean white background

With your picture · 5 s

03

Make a still scene move

The scene in the photo starts moving: leaves sway, light shifts across the ground, a gentle handheld drift; nothing new appears in the frame

With your picture

Wan 2.1 (image-to-video) API parameters

ParameterTypeWhat it does
modelwan/wan-2-1-image-to-videoRequired
promptstringRequired. What to make.
image_urlstringOne of these. The first frame: an https:// link or a data: URI.
input_imagesarray<string>, Up to 1One of these. Several pictures (https:// links or data: URIs).
resolution480p, 720pOptional · 480p. The seller needs one: left out, 480p is sent.
duration_seconds5, 10Optional. Length in seconds. Left out: the model's shortest.
aspect_ratio16:9, 9:16Optional. Shape of the video.
lorasarray<object>, Up to 3Optional. Optional: up to 3 LoRAs to apply (a style or a person you trained). Each path is an https:// link to the weights, a file id from POST /v1/files (.safetensors), or the file link of your own finished training job.

Read from GET https://api.martllm.com/v1/models/wan/wan-2-1-image-to-video: the same rules the API checks every request against.

Wan models compared

ModelModel idFrom, a secondUp toLongest
Wan 2.1 (image-to-video)wan/wan-2-1-image-to-video720p10 s
Wan 2.7 Text-to-Videowan/wan-2-7-text-to-video$0.1115 s
Wan 2.2 A14B Text-to-Videowan/wan-2-2-a14b-text-to-video$0.02865 s
Wan 2.5 Preview Text-to-Videowan/wan-2-5-preview-text-to-video$0.033610 s
Wan 2.6 Text-to-Videowan/wan-2-6-text-to-video$0.1115 s
Wan 2.6 Flash Image-to-Videowan/wan-2-6-flash-image-to-video$0.0341080p15 s
Wan 2.7 (image-to-video)wan/wan-2-7-image-to-video$0.08621080p15 s
Wan 2.5 Preview (image-to-video)wan/wan-2-5-preview-image-to-video$0.06711080p10 s
Wan 2.6 (image-to-video)wan/wan-2-6-image-to-video$0.06711080p15 s
Wan 2.7 (reference-to-video)wan/wan-2-7-reference-to-video$0.03361080p10 s

Wan 2.1 (image-to-video) API FAQ

How much does Wan 2.1 (image-to-video) cost?

Wan 2.1 (image-to-video) is billed at the price shown, which has no MartLLM fee on top. A request that fails costs nothing.

How do I make a video with Wan 2.1 (image-to-video)?

Send a POST to https://api.martllm.com/v1/video/generations with your MartLLM key, model "wan/wan-2-1-image-to-video" and a prompt. You get a job id back; ask https://api.martllm.com/v1/video/generations/<job id> until it says "succeeded", then download it from https://api.martllm.com/v1/media/artifacts/<job id>/0.

Guides

Compare with similar models