Wan 2.7 overview
Wan 2.7 specs
- Model ID
alibaba/wan2.7-t2v- Developer
- Alibaba Cloud
- Input
- Text
- Output
- Video
- Endpoint
POST https://api.aimlapi.com/v2/video/generations
Four ways to create video
Each mode in the Wan 2.7 suite targets a specific production scenario. They share the same underlying diffusion transformer architecture but expose different input contracts and motion-handling strategies.
Text to Video
Most text-to-video models treat a prompt as a flat string. Wan 2.7's T2V endpoint feeds it through an internal reasoning pass, what the team calls "thinking mode", before generation begins. The result is noticeably better layout on complex prompts: multi-character scenes hold spatial logic, camera directions land where you expect them, and lighting descriptions actually propagate across the full clip.
Key T2V capabilities
- Accepts natural-language scene descriptions with embedded camera and lighting instructions
- Generates multi-shot sequences from a single prompt with automatic transition planning
- Supports audio URL input for synchronized background music or sound design
- Prompt expansion option rewrites short inputs with cinematographic detail before generation
- Output at 720p or 1080p, in 16:9, 9:16, 1:1, 4:3, and 3:4 aspect ratios
- Duration is configurable; 2–15 seconds depending on scene complexity
Prompt expansion is worth enabling when you're working from short or incomplete descriptions. The model internally elaborates on scene depth, focal length, and motion dynamics, then exposes the actual prompt used so you can inspect and iterate on it.
Image to Video
Where most image-to-video tools animate from a starting frame and let motion drift wherever physics and chance take it, Wan 2.7's I2V gives you explicit control over both endpoints. You supply the first frame, the last frame, and the model fills in the motion path. Subject identity stays consistent across the transition, which eliminates the ghosting and gradual drift that typically ruins longer clips.
Multi-angle and 9-grid support
When you need a product shown from multiple perspectives in the same sequence, the 9-grid input lets you feed in a contact sheet of reference angles. The model stitches these into a coherent multi-shot clip rather than treating each angle as a separate generation, keeping brand visuals consistent across every frame.
I2V also accepts
- A preceding video clip as a continuation reference (first_clip_url) for scene-to-scene flow
- A driving audio track for lip-sync or rhythm-matched motion
- Optional text prompt layered on top of image references for guided motion direction
Use cases
Wan 2.7 is documented as suited to high-quality image generation, including text-to-image workflows that produce detailed, well-composed images at up to 2K.
It is documented as suited to image style transfer and photo restyling, including editing images with bilingual prompts.
It is documented as suited to cinematic video generation from text, including 1080p output with multiple aspect ratios and clips up to 15 seconds.
It is documented as suited to talking-head videos and audio-driven lip-sync, including generating synchronized motion from a portrait photo plus audio.
Wan 2.7 API pricing
| Usage | Price | Unit |
|---|---|---|
| Video generation | $0.1 | per second |
| Additional | $0.195 | per /sec |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
Wan 2.7 vs other video models: prices
AI/ML API rates for 5 models, per second.
| Model | Per second |
|---|---|
| $0.1 | |
| $0.05 | |
| $0.1 | |
| $0.1 | |
| $0.14 |
How to use the Wan 2.7 API
Build with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"2Make your first request
curl 'https://api.aimlapi.com/v2/video/generations' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "alibaba/wan2.7-t2v",
"prompt": "A slow dolly shot through a sunlit greenhouse full of ferns, light dust in the air, natural camera motion"
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "alibaba/wan2.7-t2v",
"prompt": "A slow dolly shot through a sunlit greenhouse full of ferns, light dust in the air, natural camera motion"
}
response = requests.post("https://api.aimlapi.com/v2/video/generations", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v2/video/generations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "alibaba/wan2.7-t2v",
"prompt": "A slow dolly shot through a sunlit greenhouse full of ferns, light dust in the air, natural camera motion"
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());The request returns a generation id. Poll GET https://api.aimlapi.com/v2/video/generations?generation_id=<id> until the status is completed.
Wan 2.7 FAQ
How much does Wan 2.7 cost?
Wan 2.7 costs $0.1 per second on AI/ML API, billed as you go with no subscription.
Who created Wan 2.7?
Wan 2.7 was built by Alibaba Cloud.
What is the Wan 2.7 model ID?
Use alibaba/wan2.7-t2v as the model parameter. Requests go to https://api.aimlapi.com/v2/video/generations with your AI/ML API key.