全部接口
查询视频生成任务(官方格式
查询万相 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 | /qwen/api/v1/services/aigc/video-generation/video-synthesis |
POST /qwen/api/v1/services/aigc/video-generation/video-synthesis
### 创建万相 3.0 视频任务(官方格式
创建异步视频生成任务。`input.prompt` 和 `input.media` 至少填写一个。
`reference_*`、`file`、`link` 类型不能与 `first_frame`、`last_frame` 类型混用。
官方文档链接:
{
"tags": [
"VideoGeneration"
],
"summary": "创建万相 3.0 视频任务(官方格式",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"output",
"request_id"
],
"properties": {
"output": {
"type": "object",
"required": [
"task_id",
"task_status"
],
"properties": {
"task_id": {
"type": "string",
"description": "任务 ID,有效期为 24 小时。"
},
"task_status": {
"enum": [
"PENDING",
"RUNNING",
"SUCCEEDED",
"FAILED",
"CANCELED",
"UNKNOWN"
],
"type": "string"
}
}
},
"request_id": {
"type": "string",
"description": "请求唯一标识。"
}
}
}
}
},
"description": "任务创建成功。"
},
"400": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"code",
"message",
"request_id"
],
"properties": {
"code": {
"type": "string",
"description": "错误码。"
},
"message": {
"type": "string",
"description": "错误详情。"
},
"request_id": {
"type": "string",
"description": "请求唯一标识。"
}
}
}
}
},
"description": "请求参数错误。"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"code",
"message",
"request_id"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"request_id": {
"type": "string"
}
}
}
}
},
"description": "API Key 缺失或无效。"
},
"default": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"request_id": {
"type": "string"
}
}
}
}
},
"description": "其他错误。"
}
},
"parameters": [],
"description": "### 创建万相 3.0 视频任务(官方格式\n创建异步视频生成任务。`input.prompt` 和 `input.media` 至少填写一个。\n`reference_*`、`file`、`link` 类型不能与 `first_frame`、`last_frame` 类型混用。\n官方文档链接:",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "创建万相 3.0 视频任务(官方格式",
"$schema": "",
"required": [
"model",
"input"
],
"properties": {
"input": {
"type": "object",
"anyOf": [
{
"required": [
"prompt"
]
},
{
"required": [
"media"
]
}
],
"properties": {
"media": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"url"
],
"properties": {
"url": {
"type": "string",
"examples": [
""
],
"description": "公网 HTTP(S) URL、OSS 临时 URL;图片还可传入\n`data:{MIME_type};base64,{base64_data}` 格式的数据。"
},
"type": {
"enum": [
"first_frame",
"last_frame",
"reference_image",
"reference_video",
"reference_audio",
"file",
"link"
],
"type": "string",
"description": "媒体素材类型。"
}
}
},
"minItems": 1,
"description": "媒体素材列表。图片最多 10 张;视频最多 5 段且总时长不超过 15 秒;\n音频最多 5 段且总时长不超过 15 秒;文件或网页链接最多 1 个且二者互斥;\n首帧、尾帧各最多 1 张。各类素材的组合限制需由调用方遵守。"
},
"prompt": {
"type": "string",
"maxLength": 20000,
"description": "描述期望生成的视频内容,支持中英文。全能参考模式下可使用“图1”、\n“视频1”、“音频1”等称呼引用 media 中同类素材的出现顺序。"
}
},
"description": "输入信息。prompt 和 media 至少填写一个。",
"minProperties": 1
},
"model": {
"enum": [
"wan3.0-video-prime",
"wan3.0-video"
],
"type": "string",
"description": "模型名称。"
},
"parameters": {
"type": "object",
"properties": {
"seed": {
"type": "integer",
"maximum": 2147483647,
"minimum": 0,
"description": "用于复现生成结果的随机种子。"
},
"audio": {
"type": "boolean",
"default": true,
"description": "输出视频是否包含音轨。"
},
"ratio": {
"enum": [
"adaptive",
"16:9",
"4:3",
"1:1",
"3:4",
"9:16"
],
"type": "string",
"default": "adaptive",
"description": "输出视频宽高比。"
},
"duration": {
"type": "integer",
"default": 5,
"description": "输出时长(秒)。`-1` 表示智能时长;无视频输入时可取 2~30;\n有视频输入时,输入视频总时长与输出视频时长之和不得超过 30 秒。"
},
"watermark": {
"type": "boolean",
"default": false,
"description": "是否添加水印标识。"
},
"resolution": {
"enum": [
"1080P",
"720P",
"480P"
],
"type": "string",
"default": "1080P",
"description": "输出分辨率档位。"
},
"prompt_extend": {
"type": "boolean",
"default": true,
"description": "是否启用提示词智能改写。"
}
},
"description": "视频生成参数。"
}
},
"x-apifox-id": "505913152"
}
}
},
"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 /qwen/api/v1/services/aigc/video-generation/video-synthesis(创建万相 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