Wan 2.1 (image-to-video) API
Make videos with Wan 2.1 (image-to-video) through MartLLM.
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
| Parameter | Type | What it does |
|---|---|---|
| model | wan/wan-2-1-image-to-video | Required |
| prompt | string | Required. What to make. |
| image_url | string | One of these. The first frame: an https:// link or a data: URI. |
| input_images | array<string>, Up to 1 | One of these. Several pictures (https:// links or data: URIs). |
| resolution | 480p, 720p | Optional · 480p. The seller needs one: left out, 480p is sent. |
| duration_seconds | 5, 10 | Optional. Length in seconds. Left out: the model's shortest. |
| aspect_ratio | 16:9, 9:16 | Optional. Shape of the video. |
| loras | array<object>, Up to 3 | Optional. 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
| Model | Model id | From, a second | Up to | Longest |
|---|---|---|---|---|
| Wan 2.1 (image-to-video) | wan/wan-2-1-image-to-video | 720p | 10 s | |
| Wan 2.7 Text-to-Video | wan/wan-2-7-text-to-video | $0.11 | 15 s | |
| Wan 2.2 A14B Text-to-Video | wan/wan-2-2-a14b-text-to-video | $0.0286 | 5 s | |
| Wan 2.5 Preview Text-to-Video | wan/wan-2-5-preview-text-to-video | $0.0336 | 10 s | |
| Wan 2.6 Text-to-Video | wan/wan-2-6-text-to-video | $0.11 | 15 s | |
| Wan 2.6 Flash Image-to-Video | wan/wan-2-6-flash-image-to-video | $0.034 | 1080p | 15 s |
| Wan 2.7 (image-to-video) | wan/wan-2-7-image-to-video | $0.0862 | 1080p | 15 s |
| Wan 2.5 Preview (image-to-video) | wan/wan-2-5-preview-image-to-video | $0.0671 | 1080p | 10 s |
| Wan 2.6 (image-to-video) | wan/wan-2-6-image-to-video | $0.0671 | 1080p | 15 s |
| Wan 2.7 (reference-to-video) | wan/wan-2-7-reference-to-video | $0.0336 | 1080p | 10 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.