Wan-T2V
复制成功!
视频生成
概述
视频生成
万相2.1-文生视频-Plus,一句话生成视频。视频品质更高,支持大幅度复杂运动、现实物理规律还原、丰富艺术风格和影视级画面质感,指令遵循能力进一步提升。
输入
文本
输出
视频
功能
定价
- 视频生成(720P)¥0.7每秒
速率限制
- RPM每分钟请求数120
- 并发2并发
- 异步队列上限500个任务
API 参考
获取 API Key复制成功!
123456789101112131415161718192021
from http import HTTPStatus
from dashscope import VideoSynthesis
import dashscope
dashscope.base_http_api_url = 'https://dashscope.aliyuncs.com/api/v1'
def sample_sync_call_t2v():
# call sync api, will return the result
print('please wait...')
rsp = VideoSynthesis.call(model='wanx2.1-t2v-plus',
prompt='一只小猫在月光下奔跑',
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()