W
Wan-AI/Wan2.2-T2V-A14B
模型介绍模型推理文件和版本分析
Wan2.2-T2V-A14B 在线推理
文本生成视频
New
下载视频
调用 API 代码
cURL
添加令牌为:
import requests # generate video task url = "https://api.gitcode.com/api/v5/video/generate" headers = { "Authorization": "Bearer {os.environ['ACCESS_TOKEN']}", "Content-Type": "application/json" } data = { "model": "Wan2.2-T2V-A14B", "prompt": "生成动画视频" } response = requests.post(url, headers=headers, json=data) print(response.json()) # get task status url = "https://api.gitcode.com/api/v5/video/status" headers = { "Authorization": "Bearer {os.environ['ACCESS_TOKEN']}", "Content-Type": "application/json" } data = { "request_id": "b911321eb7924f34ad51dc45xxxxx" } response = requests.post(url, headers=headers, json=data) print(response.json())