全部接口
查询视频生成任务(官方格式
查询万相 3.0 视频任务
Wan查询任务
创建万相 3.0 视频任务(官方格式
创建万相 3.0 视频任务
Wan图生视频
Wan文生视频
Wan首尾帧图生视频
模型信息
| 模型 ID | wan3.0-video | 供应商 | Aliyun(Qwen) |
|---|---|---|---|
| 输入模态 | text、image、video、audio | 输出模态 | video |
| 分类 | video | 发布时间 | 2026-08-25 18:20:22 |
调用接口
| 分组 | 接口 | 渠道 | 方法 | 路径 |
|---|---|---|---|---|
| 创建万相 3.0 视频任务 | 创建万相 3.0 视频任务 | 本站 AI 中转站 | POST | /v1/videos |
POST /v1/videos
### 创建万相 3.0 视频任务
统一支持文生视频、图生视频(首帧 / 首尾帧)和参考生视频。
prompt 与媒体素材至少提供其一。
模式推断(未传 mode 且未传官方 media 时):
- 有视频 / 音频 / file / link:参考生视频
- 正好 1 或 2 张图:图生视频(第 1 张为首帧,第 2 张为尾帧)
- 其他:参考生视频
reference_* / file / link 与 first_frame / last_frame 互斥,不能混用。
{
"tags": [
"qwen_wan3"
],
"summary": "创建万相 3.0 视频任务",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"id",
"object",
"status"
],
"properties": {
"id": {
"type": "string",
"description": "上游 task_id。"
},
"size": {
"type": "string"
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
},
"model": {
"type": "string"
},
"object": {
"type": "string",
"examples": [
"video"
]
},
"status": {
"enum": [
"queued",
"in_progress",
"completed",
"failed"
],
"type": "string"
},
"seconds": {
"type": "string",
"description": "创建时回显时长;智能时长为 auto。"
},
"progress": {
"type": "integer",
"format": "int64",
"description": "成功时为 100。"
},
"video_url": {
"type": "string",
"description": "仅 completed 时返回,有效期 24 小时。"
},
"created_at": {
"type": "integer",
"format": "int64",
"description": "Unix 秒。"
}
}
}
}
},
"description": "任务已提交"
},
"400": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"param": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
}
}
}
},
"description": "请求错误"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"type": {
"type": "string"
},
"param": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
}
}
}
},
"description": "未授权"
}
},
"parameters": [],
"description": "### 创建万相 3.0 视频任务\n统一支持文生视频、图生视频(首帧 / 首尾帧)和参考生视频。\nprompt 与媒体素材至少提供其一。\n\n模式推断(未传 mode 且未传官方 media 时):\n- 有视频 / 音频 / file / link:参考生视频\n- 正好 1 或 2 张图:图生视频(第 1 张为首帧,第 2 张为尾帧)\n- 其他:参考生视频\n\nreference_* / file / link 与 first_frame / last_frame 互斥,不能混用。",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "创建万相 3.0 视频任务",
"$schema": "",
"required": [
"model",
"prompt"
],
"properties": {
"file": {
"type": "string",
"description": "参考文件 URL。不可与 link 同时传。也可用 fileUrl。"
},
"link": {
"type": "string",
"description": "公开网页 URL。不可与 file 同时传。也可用 linkUrl。"
},
"mode": {
"enum": [
"image-to-video",
"reference-to-video"
],
"type": "string",
"description": "未传 media 时生效。自动推导用什么mode"
},
"seed": {
"type": "integer",
"description": "随机种子,大于 0 时传给上游。范围 0 到 2147483647。"
},
"audio": {
"type": "boolean",
"default": true,
"description": "输出是否含音轨,默认 true。"
},
"media": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"url"
],
"properties": {
"url": {
"type": "string",
"description": "公网 URL、OSS 临时 URL 或图像 Base64 data URI。"
},
"type": {
"enum": [
"first_frame",
"last_frame",
"reference_image",
"reference_video",
"reference_audio",
"file",
"link"
],
"type": "string"
}
}
},
"description": "官方格式媒体数组。传入后不再按 image_urls 等字段推断。reference_* / file / link 与 first_frame / last_frame / video_urls/ audio_urls / file / link 互斥。"
},
"model": {
"enum": [
"wan3.0-video",
"wan3.0-video-prime"
],
"type": "string",
"examples": [
"wan3.0-video"
]
},
"prompt": {
"type": "string",
"description": "文本提示词,中英文均可,最长 20000 字符。参考模式下可用「图1」「视频1」指代 media 顺序。"
},
"duration": {
"type": "integer",
"examples": [
5
],
"description": "也支持字段名称 seconds。"
},
"watermark": {
"type": "boolean",
"default": false,
"description": "是否加水印,默认 false。"
},
"audio_urls": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 5,
"description": "参考音频。最多 5 段。也可用 audioUrls、input_audio、audio_url。"
},
"image_urls": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 10,
"description": "图片列表。也可用 imageUrls、images、input_reference、first_frame_url、last_frame_url。"
},
"resolution": {
"enum": [
"480P",
"720P",
"1080P"
],
"type": "string",
"default": "1080P",
"description": "未识别时默认 1080P。"
},
"video_urls": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 5,
"description": "参考视频。最多 5 段,总时长不超过 15 秒。也可用 videoUrls、input_video、video_url。"
},
"aspect_ratio": {
"enum": [
"adaptive",
"16:9",
"4:3",
"1:1",
"3:4",
"9:16"
],
"type": "string",
"default": "adaptive",
"description": "也可用从 size 推导。无法识别时为 adaptive。"
},
"prompt_extend": {
"type": "boolean",
"default": true,
"description": "是否智能改写 prompt,默认 true。"
}
},
"description": "prompt 与媒体素材至少提供其一。也可直接传官方 input / parameters。",
"x-apifox-id": "505897644"
}
}
},
"required": true
}
}价格
| 价格组 | 渠道 | 计费项 | 价格 | 单位 |
|---|---|---|---|---|
| default | 本站 AI 中转站 | duration | CNY 0.45 | s |
| 国产特价2 | 本站 AI 中转站 | duration | CNY 0.36 | s |
服务级错误码参照(error_code):
| 错误码 | 说明 | |
|---|---|---|
| 221301 | 数据源超时 | |
| 221303 | 认证失败 认证失败,请稍后重试 认证失败,该卡当日连续多次认证不通过被限制校验,次日恢复 |
|
| 221306 | 参数错误 参数错误:姓名格式不正确 参数错误:手机号格式不正确 参数错误:身份证格式不正确 参数错误:银行卡号格式不正确 同一银行卡请求过于频繁 |
系统级错误码参照:
| 错误码 | 说明 | |
|---|---|---|
| 10001 | 错误的请求KEY | |
| 10002 | 该KEY无请求权限 | |
| 10003 | KEY过期 | |
| 10004 | 错误的OPENID | |
| 10005 | 应用未审核超时,请提交认证 | |
| 10007 | 未知的请求源 | |
| 10008 | 被禁止的IP | |
| 10009 | 被禁止的KEY | |
| 10011 | 当前IP请求超过限制 | |
| 10012 | 请求超过次数限制 | |
| 10013 | 测试KEY超过请求限制 | |
| 10014 | 系统内部异常(调用充值类业务时,请务必联系客服或通过订单查询接口检测订单,避免造成损失) | |
| 10020 | 接口维护 | |
| 10021 | 接口停用 |
错误码格式说明(示例:200201):
| 2 | 002 | 01 | |
|---|---|---|---|
| 服务级错误(1为系统级错误) | 服务模块代码(即数据ID) | 具体错误代码 |
使用文档下载
| 附件标题/下载链接 | 更新时间 | |
|---|---|---|
| 接口资料:POST /v1/videos(创建万相 3.0 视频任务) | 2026-09-09 15:29:05 | |
| 价格分组:default(CNY 0.45/s) | 2026-09-09 15:29:05 | |
| 价格分组:国产特价2(CNY 0.36/s) | 2026-09-09 15:29:05 | |
| 阶梯与倍率计费资料 | 2026-09-09 15:29:05 | |
| 供应商令牌分组折扣资料 | 2026-09-09 15:29:05 |
常见问题:
| 标题 | 更新时间 | |
|---|---|---|
| Token 是什么?中文、英文与上下文窗口如何计算 | 2026-09-21 00:31:09 | |
| LLM API 费用如何计算?如何选择合适的模型 | 2026-09-21 00:31:33 | |
| Word-to-Token 转换与用量估算指南 | 2026-09-21 00:31:09 |
gemini-3.8-flash-thinking-medium
gemini-3.8-flash-thinking-high