Wan-T2V
Copy success!
Overview
The upgraded Wan 2.2 Plus text to video model, delivers higher quality results with stable sweeping complex movements, cinematic vision control, more powerful prompt following, and realistic world recreation.
Input
Text
Output
Video
Features
Prefix Completion
Enable Partial Mode when calling the Qwen API to make the model continue strictly from your provided prefix text.View docsFunction Calling
Use function calling to connect large language models with external tools and systems.View docsCache
Context Cache stores shared prefixes for long-context requests to reduce repeated computation, improve latency, and lower cost.View docsStructured Outputs
Structured Outputs help ensure the model returns a JSON string in the expected format.View docsPricing
- Video Generation(480P)$0.02Per second
- Video Generation(1080P)$0.1Per second
Rate Limits
- Concurrency2concurrent
- Async Queue Limit500tasks
- RPMRequests Per Minute120
API Reference
Call APICopy success!
123456789101112131415161718192021
from http import HTTPStatus
from dashscope import VideoSynthesis
import dashscope
dashscope.base_http_api_url = 'https://maas.qwencloudapi.com/api/v1'
def sample_sync_call_t2v():
# call sync api, will return the result
print('please wait...')
rsp = VideoSynthesis.call(model='wan2.2-t2v-plus',
prompt='A kitten running in the moonlight',
size='1280*720')
print(rsp)
if rsp.status_code == HTTPStatus.OK:
print(rsp.output.video_url)
else:
print('Failed, status_code: %s, code: %s, message: %s' %
(rsp.status_code, rsp.code, rsp.message))
if __name__ == '__main__':
sample_sync_call_t2v()