20% off all GPT 🎉 30% off DeepSeekLearn more

Wan 2.7

Video Generation
alibaba/wan-2.7

Wan 2.7 is Alibaba's Tongyi Wanxiang video generation model, enhancing Wan 2.6 with expanded image-to-video capabilities. It supports first-frame-to-video, first-and-last-frame-to-video, and video continuation tasks, with improved frame coherence and stronger instruction following compared to its predecessor. Accessible via the OpenAI-compatible protocol.

Duration
2-15s
Audio
Supported
Released
2026-04-14
Generation Modes
t2vText to Videoi2vImage to Videov2vVideo to Video
Resolutions
720p1080p
Aspect Ratios
16:99:161:1
Capabilities
Video Input
Available Providers
Alibaba CloudAliyun
Supported Protocols
openai

Providers

Alibaba Cloudprovider.type: "alicloud"
From $0.1/s
ResolutionModeAudioPrice / Second
720pAnyAny$0.086/s
1080pAnyAny$0.15/s
All other combinations$0.15/s
Protocols
openai/v1/videos
Aliyunprovider.type: "aliyun"
From $0.1/s
ResolutionModeAudioPrice / Second
720pAnyAny$0.086/s
1080pAnyAny$0.15/s
All other combinations$0.15/s
Protocols
openai/v1/videos

Billed per second of generated video. Supported parameter combinations and prices are determined by the live API and may vary by model version.

Playground

Code Examples

import time
import requests
BASE = "https://api.ofox.run/v1/videos"
HEADERS = {"Authorization": "Bearer YOUR_OFOX_API_KEY"}
# Create the generation task
task = requests.post(BASE, headers=HEADERS, json={
"model": "alibaba/wan-2.7",
"prompt": "A golden retriever running on the beach at sunset",
"duration": 2,
"resolution": "1080p",
"generate_audio": True,
"provider": {"type": "alicloud"},
# Or: "provider": {"type": "aliyun"}
}).json()
# Poll until the task reaches a terminal state
while True:
task = requests.get(f"{BASE}/{task['id']}", headers=HEADERS).json()
if task["status"] in ("completed", "failed", "cancelled", "expired"):
break
time.sleep(10)
# Prefer mirror_urls (persistent) then fall back to unsigned_urls (24h)
print((task.get("mirror_urls") or task.get("unsigned_urls") or [None])[0])

Frequently Asked Questions

Wan 2.7 on Ofox.ai costs from $0.1 per second of generated video. The exact rate depends on resolution, generation mode, and audio. Pay-as-you-go, no monthly fees.