Wan 2.7 API (Wan2.7) on APIMart runs Alibaba's Wan 2.7 video model with one model ID, wan2.7. It creates 2–15 second videos at 720P or 1080P from a text prompt, a first frame, first and last frames or a source clip to continue, and can follow a reference audio track.
Service Highlights
Upload audio file
WAV, MP3 (max 15MB)
Video link valid for 72 hours
Transparent pricing with no hidden fees. Pay only for what you use.
| Variant | Tier | GoldCurrent price | Platinum | Diamond | Official | Your savings |
|---|---|---|---|---|---|---|
wan2.7 | 720P | 0.664Credits(~$0.0664)/sec | 0.6308Credits(~$0.0631)/sec | 0.5976Credits(~$0.0598)/sec | 0.83Credits(~$0.083)/sec | 20% |
| 1080P | 1.096Credits(~$0.1096)/sec | 1.0412Credits(~$0.1041)/sec | 0.9864Credits(~$0.0986)/sec | 1.37Credits(~$0.137)/sec | 20% |
* Actual costs are subject to final output.
Wan 2.7 API access on APIMart: turn a prompt, a first frame, first and last frames or an existing clip into a 2–15 second video at 720P or 1080P, with optional driving audio and per-second billing.
50K+
Active Users
99.9%
Uptime
2x
Faster
—
Cost Savings
Call the Wan 2.7 API on APIMart with one POST request. Generation is asynchronous: submit a task, then poll the task endpoint for the video URL.
Save your APIMart key in the APIMART_API_KEY environment variable and send it as Authorization: Bearer <key> on every request.
POST /v1/videos/generations with model wan2.7, your prompt, duration, resolution and size. Add one or two image_urls for image to video. The task ID is in data[0].task_id.
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 API reference for every parameter, mode rule and response field.
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",
"prompt": "A red kite rises over a windy beach at sunrise, children running below, handheld camera, warm golden light",
"duration": 5,
"resolution": "720P",
"size": "16:9"
}'import os
import time
import requests
API_BASE = "https://api.apimart.ai"
headers = {"Authorization": f"Bearer {os.environ['APIMART_API_KEY']}"}
# 1. Submit the generation task
payload = {
"model": "wan2.7",
"prompt": "A red kite rises over a windy beach at sunrise, children running below, handheld camera, warm golden light",
"duration": 5,
"resolution": "720P",
"size": "16:9"
}
resp = requests.post(f"{API_BASE}/v1/videos/generations", headers=headers, json=payload, timeout=60)
resp.raise_for_status()
task_id = resp.json()["data"][0]["task_id"]
# 2. Poll the task until it finishes
for _ in range(200):
task_resp = requests.get(f"{API_BASE}/v1/tasks/{task_id}", headers=headers, timeout=30)
task_resp.raise_for_status()
task = task_resp.json()["data"]
if task["status"] == "completed":
print(task["result"]["videos"][0]["url"][0])
break
if task["status"] == "failed":
raise RuntimeError(task.get("error", {}).get("message", "generation failed"))
time.sleep(10)
else:
raise TimeoutError(f"task {task_id} did not finish in time; continue GET polling with this task ID")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",
"prompt": "Smooth transition from the first frame to the last frame, slow camera push-in",
"image_urls": [
"https://example.com/frame-start.jpg",
"https://example.com/frame-end.jpg"
],
"duration": 5,
"resolution": "720P"
}'TASK_ID="task_xxx" # replace with the task_id returned by the POST request
curl "https://api.apimart.ai/v1/tasks/$TASK_ID" \
-H "Authorization: Bearer $APIMART_API_KEY"| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Required | Default: wan2.7 | Use wan2.7 for every Wan 2.7 generation mode. |
prompt | string | Required | Default: — | Scene and motion description, up to 5,000 characters. Optional for image to video. |
negative_prompt | string | Optional | Default: — | Content to avoid, up to 500 characters. |
resolution | string | Optional | Default: 1080P | 720P or 1080P. |
duration | integer | Optional | Default: 5 | Length in seconds, any whole number from 2 to 15. |
size | string | Optional | Default: 16:9 | 16:9, 9:16, 1:1, 4:3 or 3:4. Text to video only; image to video follows the input image. |
image_urls | array | Optional | Default: — | One image for a first frame, or two for first and last frames. Not combinable with video_urls. |
image_with_roles | array | Optional | Default: — | Images labeled first_frame or last_frame. Use instead of image_urls. |
video_urls | array | Optional | Default: — | A 2–10 second mp4 or mov (up to 100 MB) to continue. Only the first video is used. |
audio_url | string | Optional | Default: — | wav or mp3, 2–30 seconds, up to 15 MB. Background music for text to video, driving audio for image to video. |
prompt_extend | boolean | Optional | Default: true | Rewrite and enrich the prompt. Helps short prompts but adds latency. |
seed | integer | Optional | Default: — | 0 or greater. The same seed gives similar, not identical, results. |
watermark | boolean | Optional | Default: false | Add an AI-generated watermark. |
nsfw_check | boolean | Optional | Default: false | Moderate the prompt and input images with omni-moderation-latest before submission. |
Compare every Alibaba Wan video model on APIMart. One API key calls all of them, billed per second of video.
| Model | Best for | Resolution | Duration |
|---|---|---|---|
| Wan 3.0 API | Longest Wan clips, with first and last frames or image, video, audio, document and webpage references | 480P / 720P / 1080P | 2–30 s |
| Wan 3.0 Prime API | Same parameters as Wan 3.0 under a separate model and price | 480P / 720P / 1080P | 2–30 s |
| Wan 2.7 APIThis page | Text to video, first and last frames, video continuation and audio-driven clips | 720P / 1080P | 2–15 s |
| Wan 2.7 R2V API | Keeping characters consistent from reference images or videos | 720P / 1080P | 2–15 s |
| Wan 2.7 Video Edit API | Editing or restyling an existing video with an instruction | 720P / 1080P | Follows source, up to 10 s |
| Wan 2.6 API | Multi-shot text to video and image to video with audio and effect templates | 720p / 1080p | 5 / 10 / 15 s |
| Wan 2.6 I2V API | Dedicated image to video from a single first frame | 720p / 1080p | 5 / 10 / 15 s |
| Wan 2.6 I2V Flash API | Image to video at any length from 2 to 15 seconds, with or without audio | 720p / 1080p | 2–15 s |
| Wan 2.5 API | Short clips that always include sound, with a low-cost 480p tier | 480p / 720p / 1080p | 5 / 10 s |
Guides, comparisons and pricing analysis from the APIMart blog.
Every mode of the wan2.7 model, chosen automatically from the inputs you send
Workflows that rely on Wan 2.7 frame control, continuation and audio
From sign-up to your first Wan 2.7 video in three steps
Register on APIMart, add balance and create an API key in the dashboard.
Try prompts, frames, durations and resolutions above and check the cost estimate before you write code.
Submit tasks from your backend with the example below, then poll for the result.
Real feedback from creators and developers using WAN 2.7 worldwide. These reviews describe experiences with the Wan 2.7 series.
“The consistency of WAN 2.7 is amazing! Character images remain stable across multiple clips, which was previously hard to achieve.”
Wei Zhang
Independent Animator
“As a developer, I value stability and speed. WAN 2.7 on APIMart delivers great performance with an easy-to-use API.”
David Chen
Full-Stack Engineer
“The image-to-video feature saved me so much post-production time. I just provide the keyframes and let WAN 2.7 do the rest.”
Ming Li
Illustrator
“WAN 2.7 dramatically cut our short-form video turnaround. Cinematic camera moves and stable character consistency make our brand stand out on social.”
Sarah Kim
Content Creator
Answers about Wan 2.7 modes, parameters, pricing and related Wan models
Wan 2.7 is an Alibaba video model that creates 2–15 second videos at 720P or 1080P from text, a first frame, first and last frames or an existing clip. On APIMart its model ID is wan2.7.
Alibaba announced Wan2.7-Video in April 2026 and offers it as a hosted API. The wan2.7 model is available through the APIMart Wan 2.7 API now.
It is one asynchronous endpoint, POST /v1/videos/generations with model wan2.7. The mode is chosen from your inputs: no images for text to video, one image for image to video, two images for first and last frames, or video_urls for continuation. You then poll the task for the video.
Wan 2.7 accepts any length from 2 to 15 seconds instead of 5, 10 or 15, adds first-last-frame control and continuation of an existing clip, and defaults to 1080P. Wan 2.6 offers multi-shot generation and effect templates instead.
Use wan2.7 to generate from text, frames or a clip to continue. Use Wan 2.7 R2V (wan2.7-r2v) to keep characters from reference images or videos, and Wan 2.7 Video Edit (wan2.7-videoedit) to restyle or change an existing video with an instruction. Each has its own page and pricing.
model (wan2.7) is required, and prompt is required for text to video. Optional fields are negative_prompt (up to 500 characters), resolution (720P or 1080P, default 1080P), duration (2–15, default 5), size (16:9, 9:16, 1:1, 4:3 or 3:4, text to video only), image_urls or image_with_roles, video_urls, audio_url, prompt_extend (default true), seed, watermark and nsfw_check.
Yes. Send one image in image_urls for a first frame, or two images for first and last frames; image_with_roles lets you label them explicitly. In image to video the aspect ratio comes from the input image, so size is ignored.
Yes. Pass one mp4 or mov of 2–10 seconds (up to 100 MB) in video_urls. You can combine it with a last frame, but not with a first frame, image_urls or audio_url.
Yes. audio_url takes a wav or mp3 of 2–30 seconds and up to 15 MB. In text to video it is used as background music; in image to video it drives the motion. It cannot be combined with video continuation.
Submit to POST /v1/videos/generations and read the task ID from data[0].task_id. Poll GET /v1/tasks/{task_id} every few seconds until status is completed, then read data.result.videos[0].url[0]. Generation is asynchronous, and time depends on duration and resolution.
Wan 2.7 is billed per second of video, and 1080P costs more per second than 720P. All modes are billed the same way. See the pricing table on this page for current rates; Gold members save 20%, and Platinum and Diamond members save up to 28%.
No. APIMart has no free quota for Wan 2.7; you pay per second for each task. Alibaba offers Wan 2.7 as a hosted API and has not published its weights. Alibaba's open-weight Wan releases are the Wan 2.2 family and specialized models such as Wan-Dancer; Wan 2.5 and later general video models are API-only.
Sign up on APIMart, add balance and create a key on the API Keys page. Send it as Authorization: Bearer <key>. The same key works for every Wan model and the rest of the APIMart catalog.
Yes. Wan2.7, Wan 2.7 and Alibaba Wan 2.7 video, including Alibaba's Wan2.7-t2v and Wan2.7-i2v modes, all map to the APIMart model ID wan2.7. Wan 2.7 Image is a separate image model with its own page.
Explore more models in the same category.

ViduQ 3
Vidu Q3 is an advanced AI video generation model developed by Shengshu Technology that creates cinematic videos from text prompts or images. It supports both text-to-video and image-to-video workflows, generating clips up to around 16 seconds with synchronized native audio, including dialogue and sound effects.

ViduQ 3 Mix
Vidu Q3 is an advanced AI video generation model developed by Shengshu Technology that creates cinematic videos from text prompts or images. It supports both text-to-video and image-to-video workflows, generating clips up to around 16 seconds with synchronized native audio, including dialogue and sound effects.

Wan 2.6 I2v
wan2.6‑i2v is the image‑to‑video variant of Alibaba’s Wan 2.6 AI video generation model that animates a single static image into a dynamic, cinematic clip with smooth motion, consistent subject identity, and synchronized audio. It supports multi‑shot storytelling sequences of up to 15 seconds at 1080p resolution, preserving visual features such as character appearance and background while creating natural motion and narrative flow from a single input frame.

Wan 2.6 I2v Flash
wan2.6‑i2v‑flash is Alibaba’s fast image‑to‑video generation model that quickly animates a single static image into a smooth, cinematic clip of up to 15 seconds with optional synchronized audio. It trades some detailed processing for faster inference while still delivering consistent visuals, fluid motion, and multi‑shot narrative support at 720p or 1080p resolution. This makes it ideal for rapid iteration, real‑time content creation, and scenarios needing quick turnaround without sacrificing core video quality.