全部接口
获取任务
查询单个任务(免费
获取视频无水印链接(VIP版才支持)(废弃,查询接口有返回
获取视频(免费
获取视频链接
视频任务状态查询
指定ID获取任务(免费
获取任务图片的seed(免费
Wan查询任务
Seedance查询任务
Veo查询任务
图生视频
多图参考生视频
文生视频
视频延长
提交生成视频任务
视频生成任务
提交swap_face任务
执行动作(所有的关联按钮动作UPSCALE; VARIATION; REROLL; ZOOM等)
提交Blend任务(图生图)
绘图变化(UPSCALE; VARIATION; REROLL)
提交Describe任务(图生文)
提交edits任务(图片编辑)
提交Imagine任务(文生图、文图生图)
提交Modal(提交局部重绘、ZOOM)
提交Shorten任务(prompt分析)
绘图变化-simple(UPSCALE; VARIATION; REROLL)
上传图片获得url
提交Video任务(文生视频、文图生视频)
根据ID列表查询任务(免费
Wan图生视频
Wan文生视频
Wan首尾帧图生视频
Seedance文生视频
Seedance图生视频
Seedance首尾帧图生视频
Veo文生视频
Veo图生视频
模型信息
| 模型 ID | viggle-proxy | 供应商 | |
|---|---|---|---|
| 输入模态 | 未注明 | 输出模态 | 未注明 |
| 分类 | 未注明 | 发布时间 | 未注明 |
调用接口
| 分组 | 接口 | 渠道 | 方法 | 路径 |
|---|---|---|---|---|
| 全部接口 | 获取任务 | 本站 AI 中转站 | GET | /bfl/v1/get_result |
| 全部接口 | 查询单个任务(免费 | 本站 AI 中转站 | GET | /luma/generations/{task_id} |
| 全部接口 | 获取视频无水印链接(VIP版才支持)(废弃,查询接口有返回 | 本站 AI 中转站 | GET | /luma/generations/{task_id}/download_video_url |
| 全部接口 | 获取视频(免费 | 本站 AI 中转站 | GET | /luma/v1/task |
| 全部接口 | 获取视频链接 | 本站 AI 中转站 | GET | /minimax/v1/files/retrieve |
| 全部接口 | 视频任务状态查询 | 本站 AI 中转站 | GET | /minimax/v1/query/video_generation |
| 全部接口 | 指定ID获取任务(免费 | 本站 AI 中转站 | GET | /mj/task/{id}/fetch |
| 全部接口 | 获取任务图片的seed(免费 | 本站 AI 中转站 | GET | /mj/task/{id}/image-seed |
| 全部接口 | Wan查询任务 | 本站 AI 中转站 | GET | /v2/videos/generations/{task_id} |
| 全部接口 | Seedance查询任务 | 本站 AI 中转站 | GET | /v2/videos/generations/{task_id} |
| 全部接口 | Veo查询任务 | 本站 AI 中转站 | GET | /v2/videos/generations/{task_id} |
| 全部接口 | 图生视频 | 本站 AI 中转站 | POST | /kling/v1/videos/image2video |
| 全部接口 | 多图参考生视频 | 本站 AI 中转站 | POST | /kling/v1/videos/multi-image2video |
| 全部接口 | 文生视频 | 本站 AI 中转站 | POST | /kling/v1/videos/text2video |
| 全部接口 | 视频延长 | 本站 AI 中转站 | POST | /kling/v1/videos/video-extend |
| 全部接口 | 提交生成视频任务 | 本站 AI 中转站 | POST | /luma/generations |
| 全部接口 | 视频生成任务 | 本站 AI 中转站 | POST | /minimax/v1/video_generation |
| 全部接口 | 提交swap_face任务 | 本站 AI 中转站 | POST | /mj/insight-face/swap |
| 全部接口 | 执行动作(所有的关联按钮动作UPSCALE; VARIATION; REROLL; ZOOM等) | 本站 AI 中转站 | POST | /mj/submit/action |
| 全部接口 | 提交Blend任务(图生图) | 本站 AI 中转站 | POST | /mj/submit/blend |
| 全部接口 | 绘图变化(UPSCALE; VARIATION; REROLL) | 本站 AI 中转站 | POST | /mj/submit/change |
| 全部接口 | 提交Describe任务(图生文) | 本站 AI 中转站 | POST | /mj/submit/describe |
| 全部接口 | 提交edits任务(图片编辑) | 本站 AI 中转站 | POST | /mj/submit/edits |
| 全部接口 | 提交Imagine任务(文生图、文图生图) | 本站 AI 中转站 | POST | /mj/submit/imagine |
| 全部接口 | 提交Modal(提交局部重绘、ZOOM) | 本站 AI 中转站 | POST | /mj/submit/modal |
| 全部接口 | 提交Shorten任务(prompt分析) | 本站 AI 中转站 | POST | /mj/submit/shorten |
| 全部接口 | 绘图变化-simple(UPSCALE; VARIATION; REROLL) | 本站 AI 中转站 | POST | /mj/submit/simple-change |
| 全部接口 | 上传图片获得url | 本站 AI 中转站 | POST | /mj/submit/upload-discord-images |
| 全部接口 | 提交Video任务(文生视频、文图生视频) | 本站 AI 中转站 | POST | /mj/submit/video |
| 全部接口 | 根据ID列表查询任务(免费 | 本站 AI 中转站 | POST | /mj/task/list-by-condition |
| 全部接口 | Wan图生视频 | 本站 AI 中转站 | POST | /v2/videos/generations |
| 全部接口 | Wan文生视频 | 本站 AI 中转站 | POST | /v2/videos/generations |
| 全部接口 | Wan首尾帧图生视频 | 本站 AI 中转站 | POST | /v2/videos/generations |
| 全部接口 | Seedance文生视频 | 本站 AI 中转站 | POST | /v2/videos/generations |
| 全部接口 | Seedance图生视频 | 本站 AI 中转站 | POST | /v2/videos/generations |
| 全部接口 | Seedance首尾帧图生视频 | 本站 AI 中转站 | POST | /v2/videos/generations |
| 全部接口 | Veo文生视频 | 本站 AI 中转站 | POST | /v2/videos/generations |
| 全部接口 | Veo图生视频 | 本站 AI 中转站 | POST | /v2/videos/generations |
GET /bfl/v1/get_result
{
"summary": "获取任务",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"id",
"result",
"status",
"details",
"progress"
],
"properties": {
"id": {
"type": "string"
},
"result": {
"type": "object",
"required": [
"seed",
"prompt",
"sample",
"duration",
"end_time",
"start_time"
],
"properties": {
"seed": {
"type": "integer"
},
"prompt": {
"type": "string"
},
"sample": {
"type": "string"
},
"duration": {
"type": "number"
},
"end_time": {
"type": "number"
},
"start_time": {
"type": "number"
}
}
},
"status": {
"type": "string"
},
"details": {
"type": "null"
},
"progress": {
"type": "null"
}
}
}
}
},
"description": "成功"
}
},
"parameters": [
{
"in": "query",
"name": "id",
"schema": {
"type": "string",
"example": "{task_id}"
},
"required": true,
"description": ""
}
],
"description": "",
"requestBody": {
"content": {
"text/plain": {
"schema": {
"type": "object",
"title": "获取任务",
"$schema": "",
"x-apifox-id": "306433290"
}
}
},
"required": true
}
}GET /luma/generations/{task_id}
### 查询单个任务(免费
vip 账号的会在 video. download_url 返回 无水印地址,有时可能为空,需要另外从 无水印接口获取
"state": "completed" 枚举值: "pending", "processing", "completed", "failed"
{
"summary": "查询单个任务(免费",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "成功"
}
},
"parameters": [
{
"in": "path",
"name": "task_id",
"schema": {
"type": "string",
"description": "任务ID"
},
"required": true,
"description": "任务ID"
}
],
"description": "### 查询单个任务(免费\nvip 账号的会在 video. download_url 返回 无水印地址,有时可能为空,需要另外从 无水印接口获取\n\"state\": \"completed\" 枚举值: \"pending\", \"processing\", \"completed\", \"failed\""
}GET /luma/generations/{task_id}/download_video_url
### 获取视频无水印链接(VIP版才支持)(废弃,查询接口有返回
废弃,查询接口有返回
需要在视频任务状态返回完成后调用,否则返回400错误
获取到的视频链接请尽快下载,否则账号轮换后,不可再次获取
{
"summary": "获取视频无水印链接(VIP版才支持)(废弃,查询接口有返回",
"security": [
{
"bearerAuth": []
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "成功"
}
},
"parameters": [
{
"in": "path",
"name": "task_id",
"schema": {
"type": "string"
},
"required": true,
"description": ""
}
],
"description": "### 获取视频无水印链接(VIP版才支持)(废弃,查询接口有返回\n废弃,查询接口有返回\n需要在视频任务状态返回完成后调用,否则返回400错误\n获取到的视频链接请尽快下载,否则账号轮换后,不可再次获取",
"x-security-schemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer"
}
}
}GET /luma/v1/task
{
"summary": "获取视频(免费",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "成功"
}
},
"parameters": [
{
"in": "query",
"name": "id",
"schema": {
"type": "string",
"example": "2de97e1c-6a60-4770-8418-2d90fb0b2c71"
},
"required": false,
"description": ""
},
{
"in": "query",
"name": "server_id",
"schema": {
"type": "string",
"example": "af228629-9749-40e6-ae32-84cd03a41010"
},
"required": false,
"description": ""
}
],
"description": ""
}GET /minimax/v1/files/retrieve
{
"summary": "获取视频链接",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"file",
"base_resp"
],
"properties": {
"file": {
"type": "object",
"required": [
"file_id",
"bytes",
"created_at",
"filename",
"purpose",
"download_url",
"backup_download_url"
],
"properties": {
"bytes": {
"type": "integer"
},
"file_id": {
"type": "integer"
},
"purpose": {
"type": "string"
},
"filename": {
"type": "string"
},
"created_at": {
"type": "integer"
},
"download_url": {
"type": "string"
},
"backup_download_url": {
"type": "string"
}
}
},
"base_resp": {
"type": "object",
"required": [
"status_code",
"status_msg"
],
"properties": {
"status_msg": {
"type": "string"
},
"status_code": {
"type": "integer"
}
}
}
}
}
}
},
"description": "成功"
}
},
"parameters": [
{
"in": "query",
"name": "file_id",
"schema": {
"type": "string",
"example": "302892389810432"
},
"required": true,
"description": ""
}
],
"description": ""
}GET /minimax/v1/query/video_generation
{
"summary": "视频任务状态查询",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"task_id",
"status",
"file_id",
"base_resp"
],
"properties": {
"status": {
"type": "string"
},
"file_id": {
"type": "string"
},
"task_id": {
"type": "string"
},
"base_resp": {
"type": "object",
"required": [
"status_code",
"status_msg"
],
"properties": {
"status_msg": {
"type": "string"
},
"status_code": {
"type": "integer"
}
}
}
}
}
}
},
"description": "成功"
}
},
"parameters": [
{
"in": "query",
"name": "task_id",
"schema": {
"type": "array",
"example": [
"{task_id}"
],
"description": "视频生成任务的唯一标识ID"
},
"required": false,
"description": "视频生成任务的唯一标识ID"
}
],
"description": ""
}GET /mj/task/{id}/fetch
{
"tags": [
"任务查询"
],
"summary": "指定ID获取任务(免费",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"buttons": {
"type": "array",
"items": {
"type": "object",
"required": [
"customId",
"type",
"label",
"style",
"emoji"
],
"properties": {
"type": {
"type": "string"
},
"emoji": {
"type": "string"
},
"label": {
"type": "string",
"description": "MJ 显示的图标"
},
"style": {
"type": "string"
},
"customId": {
"type": "string",
"description": "action 提交用"
}
}
}
}
}
}
}
},
"description": "OK"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Unauthorized"
},
"403": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Forbidden"
},
"404": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Not Found"
}
},
"parameters": [
{
"in": "path",
"name": "id",
"schema": {
"type": "string",
"description": "任务ID"
},
"required": true,
"description": "任务ID"
}
],
"description": ""
}GET /mj/task/{id}/image-seed
{
"tags": [
"任务查询"
],
"summary": "获取任务图片的seed(免费",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/definitions/77436430"
}
}
},
"description": "OK"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Unauthorized"
},
"403": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Forbidden"
},
"404": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Not Found"
}
},
"parameters": [
{
"in": "path",
"name": "id",
"schema": {
"type": "string",
"description": "任务ID"
},
"required": true,
"description": "任务ID"
}
],
"description": ""
}GET /v2/videos/generations/{task_id}
### Wan查询任务
统一接口格式
status 枚举:
NOT_START : 未开始
IN_PROGRESS : 正在执行
SUCCESS : 执行完成
FAILURE : 失败
{
"summary": "Wan查询任务",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "成功"
}
},
"parameters": [
{
"in": "path",
"name": "task_id",
"schema": {
"type": "string"
},
"required": true,
"description": ""
}
],
"description": "### Wan查询任务\n统一接口格式\nstatus 枚举:\nNOT_START : 未开始\nIN_PROGRESS : 正在执行\nSUCCESS : 执行完成\nFAILURE : 失败",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Wan查询任务",
"$schema": "",
"required": [
"prompt",
"model"
],
"properties": {
"seed": {
"type": "integer"
},
"size": {
"type": "string"
},
"model": {
"type": "string"
},
"images": {
"type": "array",
"items": {
"type": "string"
}
},
"prompt": {
"type": "string"
},
"duration": {
"type": "integer"
},
"template": {
"type": "string"
},
"watermark": {
"type": "boolean"
},
"resolution": {
"type": "string"
},
"prompt_extend": {
"type": "string"
},
"negative_prompt": {
"type": "string"
}
},
"x-apifox-id": "342240878"
}
}
},
"required": true
}
}GET /v2/videos/generations/{task_id}
### Seedance查询任务
统一接口格式
status 枚举:
NOT_START : 未开始
IN_PROGRESS : 正在执行
SUCCESS : 执行完成
FAILURE : 失败
{
"summary": "Seedance查询任务",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "成功"
}
},
"parameters": [
{
"in": "path",
"name": "task_id",
"schema": {
"type": "string"
},
"required": true,
"description": ""
}
],
"description": "### Seedance查询任务\n统一接口格式\nstatus 枚举:\nNOT_START : 未开始\nIN_PROGRESS : 正在执行\nSUCCESS : 执行完成\nFAILURE : 失败",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Seedance查询任务",
"$schema": "",
"required": [
"prompt",
"model"
],
"properties": {
"seed": {
"type": "integer"
},
"size": {
"type": "string"
},
"model": {
"type": "string"
},
"images": {
"type": "array",
"items": {
"type": "string"
}
},
"prompt": {
"type": "string"
},
"duration": {
"type": "integer"
},
"template": {
"type": "string"
},
"watermark": {
"type": "boolean"
},
"resolution": {
"type": "string"
},
"prompt_extend": {
"type": "string"
},
"negative_prompt": {
"type": "string"
}
},
"x-apifox-id": "343444780"
}
}
},
"required": true
}
}GET /v2/videos/generations/{task_id}
### Veo查询任务
统一接口格式
status 枚举:
NOT_START : 未开始
IN_PROGRESS : 正在执行
SUCCESS : 执行完成
FAILURE : 失败
{
"summary": "Veo查询任务",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "成功"
}
},
"parameters": [
{
"in": "path",
"name": "task_id",
"schema": {
"type": "string"
},
"required": true,
"description": ""
}
],
"description": "### Veo查询任务\n统一接口格式\nstatus 枚举:\nNOT_START : 未开始\nIN_PROGRESS : 正在执行\nSUCCESS : 执行完成\nFAILURE : 失败",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Veo查询任务",
"$schema": "",
"required": [
"prompt",
"model"
],
"properties": {
"seed": {
"type": "integer"
},
"size": {
"type": "string"
},
"model": {
"type": "string"
},
"images": {
"type": "array",
"items": {
"type": "string"
}
},
"prompt": {
"type": "string"
},
"duration": {
"type": "integer"
},
"template": {
"type": "string"
},
"watermark": {
"type": "boolean"
},
"resolution": {
"type": "string"
},
"prompt_extend": {
"type": "string"
},
"negative_prompt": {
"type": "string"
}
},
"x-apifox-id": "343593236"
}
}
},
"required": true
}
}POST /kling/v1/videos/image2video
### 图生视频
本文档不实时更新,完整版请查看官方文档:
{
"summary": "图生视频",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"code",
"message",
"request_id",
"data"
],
"properties": {
"code": {
"type": "integer",
"description": "错误码;具体定义错误码"
},
"data": {
"type": "object",
"required": [
"task_id",
"task_status",
"created_at",
"updated_at"
],
"properties": {
"task_id": {
"type": "string",
"description": "任务ID,系统生成"
},
"created_at": {
"type": "integer",
"description": "任务创建时间,Unix时间戳、单位ms"
},
"updated_at": {
"type": "integer",
"description": "任务更新时间,Unix时间戳、单位ms"
},
"task_status": {
"enum": [
"submitted(已提交)",
"processing(处理中)",
"succeed(成功)",
"failed(失败)"
],
"type": "string",
"description": "任务状态,枚举值:submitted(已提交)、processing(处理中)、succeed(成功)、failed(失败)"
}
}
},
"message": {
"type": "string",
"description": "错误信息"
},
"request_id": {
"type": "string",
"description": "请求ID,系统生成,用于跟踪请求、排查问题"
}
}
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "### 图生视频\n本文档不实时更新,完整版请查看官方文档:",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "图生视频",
"$schema": "",
"required": [
"image"
],
"properties": {
"mode": {
"enum": [
"std(高性能)",
"pro(高表现)"
],
"type": "string",
"description": "生成视频的模式,可选,枚举值:std(高性能)或 pro(高表现)"
},
"image": {
"type": "string",
"description": "参考图像,必须,支持Base64编码或图片URL,支持.jpg / .jpeg / .png格式,大小不能超过10MB,分辨率不小于300*300px"
},
"prompt": {
"type": "string",
"maxLength": 5000,
"description": "正向文本提示, 可选,不能超过500个字符"
},
"duration": {
"enum": [
"5",
"10"
],
"type": "string",
"description": "生成视频时长,单位秒,可选,枚举值:5,10(包含尾帧的请求仅支持5秒)"
},
"cfg_scale": {
"type": "number",
"maximum": 1,
"minimum": 0,
"description": "生成视频的自由度,可选,值越大相关性越强,取值范围:[0, 1]"
},
"image_tail": {
"type": "string",
"description": "参考图像 - 尾帧控制,可选,支持Base64编码或图片URL,支持.jpg / .jpeg / .png格式,大小不能超过10MB,分辨率不小于300*300px"
},
"model_name": {
"type": "string",
"description": "kling-v1、kling-v1-5、kling-v1-6"
},
"callback_url": {
"type": "string",
"description": "本次任务结果回调通知地址,可选"
},
"negative_prompt": {
"type": "string",
"maxLength": 2000,
"description": "负向文本提示,可选,不能超过200个字符"
}
},
"x-apifox-id": "216574020"
}
}
},
"required": true
}
}POST /kling/v1/videos/multi-image2video
### 多图参考生视频
本文档不实时更新,完整版请查看官方文档:
{
"summary": "多图参考生视频",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"code",
"message",
"request_id",
"data"
],
"properties": {
"code": {
"type": "integer",
"description": "错误码;具体定义错误码"
},
"data": {
"type": "object",
"required": [
"task_id",
"task_status",
"created_at",
"updated_at"
],
"properties": {
"task_id": {
"type": "string",
"description": "任务ID,系统生成"
},
"created_at": {
"type": "integer",
"description": "任务创建时间,Unix时间戳、单位ms"
},
"updated_at": {
"type": "integer",
"description": "任务更新时间,Unix时间戳、单位ms"
},
"task_status": {
"enum": [
"submitted(已提交)",
"processing(处理中)",
"succeed(成功)",
"failed(失败)"
],
"type": "string",
"description": "任务状态,枚举值:submitted(已提交)、processing(处理中)、succeed(成功)、failed(失败)"
}
}
},
"message": {
"type": "string",
"description": "错误信息"
},
"request_id": {
"type": "string",
"description": "请求ID,系统生成,用于跟踪请求、排查问题"
}
}
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "### 多图参考生视频\n本文档不实时更新,完整版请查看官方文档:",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "多图参考生视频",
"$schema": "",
"required": [
"image_list",
"model_name",
"prompt"
],
"properties": {
"mode": {
"enum": [
"std",
"pro"
],
"type": "string",
"description": "生成视频的模式,可选,枚举值:std(高性能)或 pro(高表现)"
},
"prompt": {
"type": "string",
"maxLength": 5000,
"description": "正向文本提示, 可选,不能超过500个字符"
},
"duration": {
"enum": [
"5",
"10"
],
"type": "string",
"description": "生成视频时长,单位秒,可选,枚举值:5,10(包含尾帧的请求仅支持5秒)"
},
"cfg_scale": {
"type": "number",
"maximum": 1,
"minimum": 0,
"description": "生成视频的自由度,可选,值越大相关性越强,取值范围:[0, 1]"
},
"image_list": {
"type": "array",
"items": {
"type": "object",
"required": [
"image"
],
"properties": {
"image": {
"type": "string"
}
}
},
"description": "参考图像,必须,支持Base64编码或图片URL,支持.jpg / .jpeg / .png格式,大小不能超过10MB,分辨率不小于300*300px"
},
"model_name": {
"type": "string",
"description": "kling-v1-6"
},
"callback_url": {
"type": "string",
"description": "本次任务结果回调通知地址,可选"
},
"negative_prompt": {
"type": "string",
"maxLength": 2000,
"description": "负向文本提示,可选,不能超过200个字符"
}
},
"x-apifox-id": "327714825"
}
}
},
"required": true
}
}POST /kling/v1/videos/text2video
### 文生视频
本文档不实时更新,完整版请查看官方文档:
{
"summary": "文生视频",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"code",
"message",
"request_id",
"data"
],
"properties": {
"code": {
"type": "integer",
"description": "错误码;具体定义错误码"
},
"data": {
"type": "object",
"required": [
"task_id",
"updated_at",
"created_at",
"task_status"
],
"properties": {
"task_id": {
"type": "string",
"description": "任务ID,系统生成"
},
"created_at": {
"type": "integer",
"description": "任务创建时间,Unix时间戳、单位ms"
},
"updated_at": {
"type": "integer",
"description": "任务更新时间,Unix时间戳、单位ms"
},
"task_status": {
"enum": [
"submitted(已提交",
"processing(处理中)",
"succeed(成功)",
"failed(失败)"
],
"type": "string",
"description": "任务状态,枚举值:submitted(已提交)、processing(处理中)、succeed(成功)、failed(失败)"
}
}
},
"message": {
"type": "string",
"description": "错误信息"
},
"request_id": {
"type": "string",
"description": "请求ID,系统生成,用于跟踪请求、排查问题"
}
}
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "### 文生视频\n本文档不实时更新,完整版请查看官方文档:",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "文生视频",
"$schema": "",
"required": [
"prompt"
],
"properties": {
"mode": {
"enum": [
"std(高性能)",
"pro(高表现)"
],
"type": "string",
"description": "生成视频的模式,可选,枚举值:std(高性能)或 pro(高表现)"
},
"prompt": {
"type": "string",
"maxLength": 500,
"description": "正向文本提示,必须,不能超过500个字符"
},
"duration": {
"enum": [
"5",
"10"
],
"type": "string",
"description": "生成视频时长,单位秒,可选,枚举值:5,10"
},
"cfg_scale": {
"type": "number",
"maximum": 1,
"minimum": 0,
"description": "生成视频的自由度,可选,值越大,相关性越强,取值范围:[0,1]"
},
"model_name": {
"type": "string",
"description": "kling-v1、kling-v1-5、kling-v1-6"
},
"aspect_ratio": {
"enum": [
"16:9",
"9:16",
"1:1"
],
"type": "string",
"description": "生成视频的画面纵横比,可选,枚举值:16:9, 9:16, 1:1"
},
"callback_url": {
"type": "string",
"description": "本次任务结果回调通知地址,可选"
},
"camera_control": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"config": {
"type": "object",
"properties": {
"pan": {
"type": "integer",
"maximum": 10,
"minimum": -10,
"description": "水平摇镜,可选,取值范围:[-10, 10]"
},
"roll": {
"type": "integer",
"maximum": 10,
"minimum": -10,
"description": "旋转运镜,可选,取值范围:[-10, 10]"
},
"tilt": {
"type": "integer",
"maximum": 10,
"minimum": -10,
"description": "垂直摇镜,可选,取值范围:[-10, 10]"
},
"zoom": {
"type": "integer",
"maximum": 10,
"minimum": -10,
"description": "变焦,可选,取值范围:[-10, 10]"
},
"vertical": {
"type": "integer",
"maximum": 10,
"minimum": -10,
"description": "垂直运镜,可选,取值范围:[-10, 10]"
},
"horizontal": {
"type": "integer",
"maximum": 10,
"minimum": -10,
"description": "水平运镜,可选,取值范围:[-10, 10]"
}
},
"description": "包含六个字段,用于指定摄像机的运动或变化"
}
},
"description": "控制摄像机运动的协议,可选,未指定则智能匹配"
},
"negative_prompt": {
"type": "string",
"maxLength": 200,
"description": "负向文本提示,可选,不能超过200个字符"
}
},
"x-apifox-id": "216574019"
}
}
},
"required": true
}
}POST /kling/v1/videos/video-extend
### 视频延长
1、生成视频
2、此接口要求传入任务id和视频id
此接口属于子任务,需要在父任务账号上使用,请尽快操作避免资源包过期。
官方文档:
{
"summary": "视频延长",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "### 视频延长\n1、生成视频\n2、此接口要求传入任务id和视频id\n此接口属于子任务,需要在父任务账号上使用,请尽快操作避免资源包过期。\n官方文档:",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "视频延长",
"$schema": "",
"required": [
"video_id",
"prompt"
],
"properties": {
"prompt": {
"type": "string"
},
"video_id": {
"type": "string"
}
},
"x-apifox-id": "257160028"
}
}
},
"required": true
}
}POST /luma/generations
{
"summary": "提交生成视频任务",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "提交生成视频任务",
"$schema": "",
"required": [
"user_prompt"
],
"properties": {
"loop": {
"type": "boolean",
"description": "是否循环 首尾呼应"
},
"duration": {
"type": "string",
"description": "时长 5s 或者 10s"
},
"image_url": {
"type": "string",
"description": "参考图,支持第三方图片地址、Base64"
},
"model_name": {
"enum": [
"ray-v1",
"ray-v2",
"ray-v3"
],
"type": "string"
},
"resolution": {
"type": "string",
"description": "720p或者1080p默认720p"
},
"notify_hook": {
"type": "string",
"description": "回调地址:"
},
"user_prompt": {
"type": "string",
"description": "提示词"
},
"expand_prompt": {
"type": "boolean",
"description": "是否开启prompt 优化"
},
"image_end_url": {
"type": "string",
"description": "关键帧,支持第三方图片地址、Base64"
}
},
"x-apifox-id": "189360757"
}
}
},
"required": true
}
}POST /minimax/v1/video_generation
### 视频生成任务
接口名称: Minimax视频生成任务 [Text/Image to Video]
接口描述: 创建视频生成任务,支持文生视频和图生视频两种模式
{
"summary": "视频生成任务",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
}
}
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "### 视频生成任务\n\n\n接口名称: Minimax视频生成任务 [Text/Image to Video]\n\n接口描述: 创建视频生成任务,支持文生视频和图生视频两种模式",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "视频生成任务",
"$schema": "",
"required": [
"model",
"prompt"
],
"properties": {
"model": {
"type": "string"
},
"prompt": {
"type": "string"
},
"duration": {
"type": "integer"
},
"resolution": {
"type": "string"
}
},
"x-apifox-id": "313272194"
}
}
},
"required": true
}
}POST /mj/insight-face/swap
{
"tags": [
"InsightFace任务提交"
],
"summary": "提交swap_face任务",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/definitions/77436430"
}
}
},
"description": "OK"
},
"201": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Created"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Unauthorized"
},
"403": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Forbidden"
},
"404": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Not Found"
}
},
"parameters": [],
"description": "",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "提交swap_face任务",
"$schema": "",
"properties": [],
"x-apifox-id": "139393499"
}
}
},
"required": true
}
}POST /mj/submit/action
{
"tags": [
"任务提交"
],
"summary": "执行动作(所有的关联按钮动作UPSCALE; VARIATION; REROLL; ZOOM等)",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/definitions/77436447"
}
}
},
"description": "OK"
},
"201": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Created"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Unauthorized"
},
"403": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Forbidden"
},
"404": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Not Found"
}
},
"parameters": [],
"description": "",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "执行动作(所有的关联按钮动作UPSCALE; VARIATION; REROLL; ZOOM等)",
"$schema": "",
"properties": [],
"x-apifox-id": "139393501"
}
}
},
"required": true
}
}POST /mj/submit/blend
{
"tags": [
"任务提交"
],
"summary": "提交Blend任务(图生图)",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/definitions/77436447"
}
}
},
"description": "OK"
},
"201": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Created"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Unauthorized"
},
"403": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Forbidden"
},
"404": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Not Found"
}
},
"parameters": [],
"description": "",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "提交Blend任务(图生图)",
"$schema": "",
"properties": [],
"x-apifox-id": "139393503"
}
}
},
"required": true
}
}POST /mj/submit/change
### 绘图变化(UPSCALE; VARIATION; REROLL)
即将废弃,请使用 执行动作 接口;功能更多,对接更简单
{
"tags": [
"任务提交"
],
"summary": "绘图变化(UPSCALE; VARIATION; REROLL)",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/definitions/77436447"
}
}
},
"description": "OK"
},
"201": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Created"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Unauthorized"
},
"403": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Forbidden"
},
"404": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Not Found"
}
},
"parameters": [],
"description": "### 绘图变化(UPSCALE; VARIATION; REROLL)\n即将废弃,请使用 执行动作 接口;功能更多,对接更简单",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "绘图变化(UPSCALE; VARIATION; REROLL)",
"$schema": "",
"properties": [],
"x-apifox-id": "139393500"
}
}
},
"required": true
}
}POST /mj/submit/describe
{
"tags": [
"任务提交"
],
"summary": "提交Describe任务(图生文)",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/definitions/77436447"
}
}
},
"description": "OK"
},
"201": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Created"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Unauthorized"
},
"403": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Forbidden"
},
"404": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Not Found"
}
},
"parameters": [],
"description": "",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "提交Describe任务(图生文)",
"$schema": "",
"properties": [],
"x-apifox-id": "139393504"
}
}
},
"required": true
}
}POST /mj/submit/edits
{
"tags": [
"任务提交"
],
"summary": "提交edits任务(图片编辑)",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/definitions/77436447"
}
}
},
"description": "OK"
},
"201": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Created"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Unauthorized"
},
"403": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Forbidden"
},
"404": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Not Found"
}
},
"parameters": [],
"description": "",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "提交edits任务(图片编辑)",
"$schema": "",
"required": [
"prompt",
"image",
"01K0DXE082FMKS5ZWV1SH9GK07"
],
"properties": {
"image": {
"type": "string"
},
"prompt": {
"type": "string"
},
"maskBase64": {
"type": "string",
"description": "蒙版base64,编辑区域使用透明,可随意调节尺寸"
},
"notifyHook": {
"type": "string"
}
},
"x-apifox-id": "323778871"
}
}
},
"required": true
}
}POST /mj/submit/imagine
{
"tags": [
"任务提交"
],
"summary": "提交Imagine任务(文生图、文图生图)",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/definitions/77436447"
}
}
},
"description": "OK"
},
"201": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Created"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Unauthorized"
},
"403": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Forbidden"
},
"404": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Not Found"
}
},
"parameters": [],
"description": "",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "提交Imagine任务(文生图、文图生图)",
"$schema": "",
"properties": [],
"x-apifox-id": "139393505"
}
}
},
"required": true
}
}POST /mj/submit/modal
{
"tags": [
"任务提交"
],
"summary": "提交Modal(提交局部重绘、ZOOM)",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/definitions/77436447"
}
}
},
"description": "OK"
},
"201": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Created"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Unauthorized"
},
"403": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Forbidden"
},
"404": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Not Found"
}
},
"parameters": [],
"description": "",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/definitions/77436431",
"title": "提交Modal(提交局部重绘、ZOOM)",
"$schema": "",
"x-apifox-id": "139393506"
}
}
},
"required": true
}
}POST /mj/submit/shorten
{
"tags": [
"任务提交"
],
"summary": "提交Shorten任务(prompt分析)",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/definitions/77436447"
}
}
},
"description": "OK"
},
"201": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Created"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Unauthorized"
},
"403": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Forbidden"
},
"404": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Not Found"
}
},
"parameters": [],
"description": "",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "提交Shorten任务(prompt分析)",
"$schema": "",
"properties": [],
"x-apifox-id": "139393507"
}
}
},
"required": true
}
}POST /mj/submit/simple-change
### 绘图变化-simple(UPSCALE; VARIATION; REROLL)
即将废弃,请使用 执行动作 接口;功能更多,对接更简单
{
"tags": [
"任务提交"
],
"summary": "绘图变化-simple(UPSCALE; VARIATION; REROLL)",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/definitions/77436447"
}
}
},
"description": "OK"
},
"201": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Created"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Unauthorized"
},
"403": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Forbidden"
},
"404": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Not Found"
}
},
"parameters": [],
"description": "### 绘图变化-simple(UPSCALE; VARIATION; REROLL)\n即将废弃,请使用 执行动作 接口;功能更多,对接更简单",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/definitions/77436443",
"title": "绘图变化-simple(UPSCALE; VARIATION; REROLL)",
"$schema": "",
"x-apifox-id": "139393502"
}
}
},
"required": true
}
}POST /mj/submit/upload-discord-images
{
"tags": [
"任务提交"
],
"summary": "上传图片获得url",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"code",
"description",
"result",
"properties"
],
"properties": {
"code": {
"type": "integer"
},
"result": {
"type": "array",
"items": {
"type": "string"
}
},
"properties": {
"type": "object",
"properties": []
},
"description": {
"type": "string"
}
}
}
}
},
"description": "OK"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Unauthorized"
},
"403": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Forbidden"
},
"404": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Not Found"
}
},
"parameters": [],
"description": "",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "上传图片获得url",
"$schema": "",
"required": [
"base64Array"
],
"properties": {
"base64Array": {
"type": "array",
"items": {
"type": "string"
}
}
},
"x-apifox-id": "295408056"
}
}
},
"required": true
}
}POST /mj/submit/video
### 提交Video任务(文生视频、文图生视频)
一次出 4 个视频
{
"tags": [
"任务提交"
],
"summary": "提交Video任务(文生视频、文图生视频)",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/definitions/77436447"
}
}
},
"description": "OK"
},
"201": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Created"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Unauthorized"
},
"403": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Forbidden"
},
"404": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Not Found"
}
},
"parameters": [],
"description": "### 提交Video任务(文生视频、文图生视频)\n一次出 4 个视频",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "提交Video任务(文生视频、文图生视频)",
"$schema": "",
"required": [
"prompt",
"image",
"motion"
],
"properties": {
"image": {
"type": "string",
"description": "url \\ base64; 首帧图片,扩展时可为空"
},
"index": {
"type": "string",
"maxLength": 3,
"minLength": 0,
"description": "扩展视频;执行的视频索引号"
},
"action": {
"enum": [
"extend"
],
"type": "string",
"description": "扩展视频;对视频任务进行操作。不为空时,index、taskId必填"
},
"motion": {
"enum": [
"low",
"high"
],
"type": "string"
},
"prompt": {
"type": "string"
},
"task_id": {
"type": "string",
"description": "扩展视频; 需要操作的视频父任务ID"
},
"notifyHook": {
"type": "string"
}
},
"x-apifox-id": "323778153"
}
}
},
"required": true
}
}POST /mj/task/list-by-condition
{
"tags": [
"任务查询"
],
"summary": "根据ID列表查询任务(免费",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/77436440"
}
}
}
},
"description": "OK"
},
"201": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Created"
},
"401": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Unauthorized"
},
"403": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Forbidden"
},
"404": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "Not Found"
}
},
"parameters": [],
"description": "",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/definitions/77436441",
"title": "根据ID列表查询任务(免费",
"$schema": "",
"x-apifox-id": "139393508"
}
}
},
"required": true
}
}POST /v2/videos/generations
### Wan图生视频
统一接口格式
{
"summary": "Wan图生视频",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"task_id"
],
"properties": {
"task_id": {
"type": "string"
}
}
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "### Wan图生视频\n统一接口格式",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Wan图生视频",
"$schema": "",
"required": [
"prompt",
"images",
"model"
],
"properties": {
"seed": {
"type": "integer"
},
"model": {
"enum": [
"wan2.2-i2v-plus",
"wan2.2-i2v-flash",
"wanx2.1-i2v-turbo",
"wanx2.1-i2v-plus"
],
"type": "string"
},
"images": {
"type": "array",
"items": {
"type": "string"
},
"description": "仅支持一张参考图"
},
"prompt": {
"type": "string"
},
"duration": {
"type": "integer"
},
"template": {
"type": "string"
},
"watermark": {
"type": "boolean"
},
"resolution": {
"enum": [
"720P",
"480P",
"1080P"
],
"type": "string",
"description": "wan2.2-i2v-plus:有效值:480P 和 1080P。默认值:1080P\nwan2.2-i2v-flash:有效值:480P 和 720P。默认值:720P\nwanx2.1-i2v-plus:有效值:720P。默认值:720P\nwanx2.1-i2v-turbo:有效值:480P 和 720P。默认值:720P"
},
"prompt_extend": {
"type": "string"
},
"negative_prompt": {
"type": "string"
}
},
"x-apifox-id": "342181510"
}
}
},
"required": true
}
}POST /v2/videos/generations
### Wan文生视频
通义万相文生视频模型基于文本提示词,生成一段流畅的视频。支持的能力包括:
基础能力:时长灵活(5秒/10秒)、指定视频分辨率(480P/720P/1080P)、智能改写prompt、添加水印。
音频能力:支持自动配音,或传入自定义音频文件,实现音画同步。(仅wan2.5支持)
{
"summary": "Wan文生视频",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"task_id"
],
"properties": {
"task_id": {
"type": "string"
}
}
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "### Wan文生视频\n通义万相文生视频模型基于文本提示词,生成一段流畅的视频。支持的能力包括:\n\n基础能力:时长灵活(5秒/10秒)、指定视频分辨率(480P/720P/1080P)、智能改写prompt、添加水印。\n\n音频能力:支持自动配音,或传入自定义音频文件,实现音画同步。(仅wan2.5支持)",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Wan文生视频",
"$schema": "",
"required": [
"prompt",
"model"
],
"properties": {
"seed": {
"type": "integer",
"description": "一个随机数种子,用于控制模型生成的内容的随机性。该值必须在 [0, 2147483647] 的范围内。\n如果不提供此参数,则算法会自动为种子生成一个随机数。如果希望生成的内容保持相对稳定,可以使用相同的种子值。"
},
"size": {
"type": "string",
"description": "wan2.2-t2v-plus:支持所有对应 480P 和 1080P 的分辨率。默认分辨率为 1920x1080\nwanx2.1-t2v-turbo:支持所有对应 480P 和 720P 的分辨率。默认分辨率为 1280×720 (720P)。\nwanx2.1-t2v-plus:仅支持 720P 对应的分辨率。默认分辨率为 1280×720 (720P)。\n480P: The optional video resolutions and their corresponding aspect ratios are:\n480P:可选的视频分辨率及其相应的宽高比为:\n\n832×480: 16:9. 832×480:16:9。\n\n480×832: 9:16. 480×832:9:16。\n\n624×624: 1:1. 624×624:1。\n\n720P: The optional video resolutions and their corresponding aspect ratios are:\n720P:可选的视频分辨率及其相应的宽高比为:\n\n1280×720: 16:9. 1280×720:16:9。\n\n720×1280: 9:16. 720×1280:9:16。\n\n960×960: 1:1. 960×960:1:1。\n\n1088×832: 4:3. 1088×832:4:3。\n\n832×1088: 3:4. 832×1088:3:4。\n\n1080P: The optional video resolutions and their corresponding aspect ratios are:\n1080P:可选的视频分辨率及其相应的宽高比为:\n\n1920×1080: 16:9.\n1920×1080:16:9。\n\n1080×1920: 9:16.\n1080×1920:9:16。\n\n1440×1440: 1:1. 1440×1440:1:1。\n\n1632×1248: 4:3. 1632×1248:4:3。\n\n1248×1632: 3:4. 1248×1632:3:4。"
},
"model": {
"enum": [
"wan2.2-t2v-plus",
"wanx2.1-t2v-turbo",
"wanx2.1-t2v-plus"
],
"type": "string",
"description": "型号名称。示例:wan2.1-t2v-turbo。"
},
"prompt": {
"type": "string",
"description": "The text prompt supports Chinese and English, with a maximum length of 800 characters. Each Chinese character or letter counts as one character. Content that exceeds this limit will be truncated.\n文本提示支持中英文,最大长度为800个字符。每个汉字或字母算作一个字符。超过此限制的内容将被截断。\n\nExample: A kitten running in the moonlight.\n示例:一只小猫在月光下奔跑。"
},
"duration": {
"type": "integer",
"description": "生成视频的持续时间(以秒为单位)。该参数固定为 5,无法修改。模型始终生成一个 5 秒的视频。"
},
"template": {
"type": "string"
},
"watermark": {
"type": "boolean",
"description": "指定是否添加水印。水印位于视频的右下角,注明“由人工智能生成”。"
},
"prompt_extend": {
"type": "boolean",
"description": "指定是否启用提示重写。如果启用,则使用大型语言模型 (LLM) 智能重写输入提示。这显着改善了较短提示的生成结果,但增加了处理时间。"
},
"negative_prompt": {
"type": "string",
"description": "A negative prompt is used to describe content that you do not want to appear in the video, which lets you restrict the video content.\n否定提示用于描述您不想出现在视频中的内容,这可以让您限制视频内容。\n\nIt supports Chinese and English, with a maximum length of 500 characters. Content that exceeds this limit will be truncated.\n它支持中英文,最大长度为 500 个字符。超过此限制的内容将被截断。\n\nExamples: low resolution, error, worst quality, low quality, defects, extra fingers, poor proportions.\n例如:低分辨率、错误、质量最差、质量低、缺陷、多余手指、比例差。"
}
},
"x-apifox-id": "342290999"
}
}
},
"required": true
}
}POST /v2/videos/generations
### Wan首尾帧图生视频
统一接口格式
{
"summary": "Wan首尾帧图生视频",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"task_id"
],
"properties": {
"task_id": {
"type": "string"
}
}
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "### Wan首尾帧图生视频\n统一接口格式",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Wan首尾帧图生视频",
"$schema": "",
"required": [
"prompt",
"model",
"images"
],
"properties": {
"seed": {
"type": "integer"
},
"model": {
"enum": [
"wanx2.1-kf2v-plus"
],
"type": "string",
"description": "wanx2.1-kf2v-plus"
},
"images": {
"type": "array",
"items": {
"type": "string"
},
"description": "第一张是首帧,第二张是尾帧\n使用公网可访问URL\n\n支持 HTTP 或 HTTPS 协议。本地文件可通过上传文件获取临时URL。\n\n示例值:\n\n传入 Base64 编码图像后的字符串\n\n数据格式:data:{MIME_type};base64,{base64_data}。\n\n示例值:data:image/png;base64,GDU7MtCZzEbTbmRZ......。(编码字符串过长,仅展示片段)"
},
"prompt": {
"type": "string"
},
"duration": {
"type": "integer"
},
"template": {
"type": "string"
},
"watermark": {
"type": "boolean"
},
"resolution": {
"type": "string"
},
"prompt_extend": {
"type": "string"
},
"negative_prompt": {
"type": "string"
}
},
"x-apifox-id": "342291320"
}
}
},
"required": true
}
}POST /v2/videos/generations
### Seedance文生视频
统一接口格式
{
"summary": "Seedance文生视频",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"task_id"
],
"properties": {
"task_id": {
"type": "string"
}
}
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "### Seedance文生视频\n统一接口格式",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Seedance文生视频",
"$schema": "",
"required": [
"prompt",
"model"
],
"properties": {
"seed": {
"type": "integer",
"description": "一个随机数种子,用于控制模型生成的内容的随机性。该值必须在 [0, 2147483647] 的范围内。\n如果不提供此参数,则算法会自动为种子生成一个随机数。如果希望生成的内容保持相对稳定,可以使用相同的种子值。"
},
"model": {
"enum": [
"doubao-seedance-2.5",
"doubao-seedance-2-0-260128",
"doubao-seedance-2-0-fast-260128",
"doubao-seedance-2.0-mini",
"doubao-seedance-1-0-pro-250528",
"doubao-seedance-1-0-lite-t2v-250428",
"doubao-seedance-1-0-lite-i2v-250428"
],
"type": "string",
"description": "型号名称。示例:doubao-seedance-1-0-pro-250528"
},
"ratio": {
"type": "string",
"default": "16:9",
"description": "生成视频的宽高比例\n21:9\n16:9 \n4:3\n1:1\n3:4\n9:16\n9:21\nkeep_ratio:所生成视频的宽高比与所上传图片的宽高比保持一致。\nadaptive:根据所上传图片的比例,自动选择最合适的宽高比。"
},
"prompt": {
"type": "string",
"description": "文本提示词(必填):支持中英文。建议不超过500字。字数过多信息容易分散,模型可能因此忽略细节,只关注重点,造成视频缺失部分元素"
},
"duration": {
"enum": [
5,
10
],
"type": "integer",
"default": 5,
"description": "生成视频的持续时间(以秒为单位)。该参数固定为 5,无法修改。模型始终生成一个 5 秒的视频。"
},
"watermark": {
"type": "boolean",
"default": false,
"description": "指定是否添加水印。水印位于视频的右下角,注明“由人工智能生成”。"
},
"resolution": {
"enum": [
"480p",
"720p",
"1080p"
],
"type": "string",
"default": "480p",
"description": "视频分辨率"
},
"camerafixed": {
"type": "boolean",
"default": false,
"description": "是否固定摄像头\ntrue:固定摄像头。平台会在用户提示词中追加固定摄像头,实际效果不保证。\nfalse:不固定摄像头。"
},
"generate_audio": {
"type": "boolean"
},
"return_last_frame": {
"type": "boolean",
"default": false,
"description": "true:返回生成视频的尾帧图像。尾帧图像的格式为 png,宽高像素值与生成的视频一致,无水印。您可通过查询视频生成任务接口获取视频的尾帧图像。\nfalse:不返回生成视频的尾帧图像。"
}
},
"x-apifox-id": "343444777"
}
}
},
"required": true
}
}POST /v2/videos/generations
### Seedance图生视频
统一接口格式
{
"summary": "Seedance图生视频",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"task_id"
],
"properties": {
"task_id": {
"type": "string"
}
}
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "### Seedance图生视频\n统一接口格式",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Seedance图生视频",
"$schema": "",
"required": [
"prompt",
"model",
"images"
],
"properties": {
"seed": {
"type": "integer",
"description": "一个随机数种子,用于控制模型生成的内容的随机性。该值必须在 [0, 2147483647] 的范围内。\n如果不提供此参数,则算法会自动为种子生成一个随机数。如果希望生成的内容保持相对稳定,可以使用相同的种子值。"
},
"model": {
"enum": [
"doubao-seedance-2.5",
"doubao-seedance-2-0-260128",
"doubao-seedance-2-0-fast-260128",
"doubao-seedance-2.0-mini",
"doubao-seedance-1-0-pro-250528",
"doubao-seedance-1-0-lite-t2v-250428",
"doubao-seedance-1-0-lite-i2v-250428"
],
"type": "string",
"description": "型号名称。示例:doubao-seedance-1-0-pro-250528"
},
"ratio": {
"type": "string",
"description": "生成视频的宽高比例\n21:9\n16:9 \n4:3\n1:1\n3:4\n9:16\n9:21\nkeep_ratio:所生成视频的宽高比与所上传图片的宽高比保持一致。\nadaptive:根据所上传图片的比例,自动选择最合适的宽高比。"
},
"images": {
"type": "array",
"items": {
"type": "string"
},
"description": "参考图"
},
"prompt": {
"type": "string",
"description": "The text prompt supports Chinese and English, with a maximum length of 800 characters. Each Chinese character or letter counts as one character. Content that exceeds this limit will be truncated.\n文本提示支持中英文,最大长度为800个字符。每个汉字或字母算作一个字符。超过此限制的内容将被截断。\n\nExample: A kitten running in the moonlight.\n示例:一只小猫在月光下奔跑。"
},
"duration": {
"enum": [
5,
10
],
"type": "integer",
"description": "生成视频的持续时间(以秒为单位)。该参数固定为 5,无法修改。模型始终生成一个 5 秒的视频。"
},
"watermark": {
"type": "boolean",
"description": "指定是否添加水印。水印位于视频的右下角,注明“由人工智能生成”。"
},
"resolution": {
"enum": [
"480p",
"720p",
"1080p"
],
"type": "string",
"description": "视频分辨率"
},
"camerafixed": {
"type": "boolean",
"description": "是否固定摄像头\ntrue:固定摄像头。平台会在用户提示词中追加固定摄像头,实际效果不保证。\nfalse:不固定摄像头。"
},
"generate_audio": {
"type": "boolean"
},
"return_last_frame": {
"type": "boolean",
"description": "仅doubao-seedance-1-0-lite-i2v支持该参\ntrue:返回生成视频的尾帧图像。尾帧图像的格式为 png,宽高像素值与生成的视频一致,无水印。您可通过查询视频生成任务接口获取视频的尾帧图像。\nfalse:不返回生成视频的尾帧图像。"
}
},
"x-apifox-id": "343464094"
}
}
},
"required": true
}
}POST /v2/videos/generations
### Seedance首尾帧图生视频
统一接口格式
{
"summary": "Seedance首尾帧图生视频",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"task_id"
],
"properties": {
"task_id": {
"type": "string"
}
}
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "### Seedance首尾帧图生视频\n统一接口格式",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Seedance首尾帧图生视频",
"$schema": "",
"required": [
"prompt",
"model",
"images"
],
"properties": {
"seed": {
"type": "integer",
"description": "一个随机数种子,用于控制模型生成的内容的随机性。该值必须在 [0, 2147483647] 的范围内。\n如果不提供此参数,则算法会自动为种子生成一个随机数。如果希望生成的内容保持相对稳定,可以使用相同的种子值。"
},
"model": {
"enum": [
"doubao-seedance-2.5",
"doubao-seedance-2-0-260128",
"doubao-seedance-2-0-fast-260128",
"doubao-seedance-2.0-mini",
"doubao-seedance-1-0-lite-i2v-250428"
],
"type": "string",
"description": "型号名称。示例:doubao-seedance-1-0-pro-250528"
},
"ratio": {
"type": "string",
"description": "生成视频的宽高比例\n21:9\n16:9 \n4:3\n1:1\n3:4\n9:16\n9:21\nkeep_ratio:所生成视频的宽高比与所上传图片的宽高比保持一致。\nadaptive:根据所上传图片的比例,自动选择最合适的宽高比。"
},
"images": {
"type": "array",
"items": {
"type": "string"
},
"description": "参考图"
},
"prompt": {
"type": "string",
"description": "The text prompt supports Chinese and English, with a maximum length of 800 characters. Each Chinese character or letter counts as one character. Content that exceeds this limit will be truncated.\n文本提示支持中英文,最大长度为800个字符。每个汉字或字母算作一个字符。超过此限制的内容将被截断。\n\nExample: A kitten running in the moonlight.\n示例:一只小猫在月光下奔跑。"
},
"duration": {
"enum": [
5,
10
],
"type": "integer",
"description": "生成视频的持续时间(以秒为单位)。该参数固定为 5,无法修改。模型始终生成一个 5 秒的视频。"
},
"watermark": {
"type": "boolean",
"description": "指定是否添加水印。水印位于视频的右下角,注明“由人工智能生成”。"
},
"resolution": {
"enum": [
"480p",
"720p",
"1080p"
],
"type": "string",
"description": "视频分辨率"
},
"camerafixed": {
"type": "boolean",
"description": "是否固定摄像头\ntrue:固定摄像头。平台会在用户提示词中追加固定摄像头,实际效果不保证。\nfalse:不固定摄像头。"
},
"generate_audio": {
"type": "boolean"
},
"return_last_frame": {
"type": "boolean",
"description": "仅doubao-seedance-1-0-lite-i2v支持该参\ntrue:返回生成视频的尾帧图像。尾帧图像的格式为 png,宽高像素值与生成的视频一致,无水印。您可通过查询视频生成任务接口获取视频的尾帧图像。\nfalse:不返回生成视频的尾帧图像。"
}
},
"x-apifox-id": "343464933"
}
}
},
"required": true
}
}POST /v2/videos/generations
{
"summary": "Veo文生视频",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Veo文生视频",
"$schema": "",
"required": [
"prompt",
"model"
],
"properties": {
"model": {
"enum": [
"veo3",
"veo3-fast",
"veo3-pro",
"veo3-pro-frames",
"veo2",
"veo2-fast",
"veo2-fast-frames",
"veo2-fast-components",
"veo2-pro",
"veo3-fast-frames",
"veo3.1",
"veo3.1-pro"
],
"type": "string"
},
"prompt": {
"type": "string"
},
"aspect_ratio": {
"enum": [
"16:9",
"9:16"
],
"type": "string"
},
"enhance_prompt": {
"type": "boolean",
"description": "是否优化提示词,一般是false;由于 veo 只支持英文提示词,所以如果需要中文自动转成英文提示词,可以开启此开关"
},
"enable_upsample": {
"type": "boolean",
"description": "是否分辨率提升;返回 1080p 视频"
}
},
"x-apifox-id": "343590061"
}
}
},
"required": true
}
}POST /v2/videos/generations
### Veo图生视频
当模型是带 veo2-fast-frames 最多支持两个,分别是首尾帧
当模型是 veo3-pro-frames 最多支持一个首帧
当模型是 veo2-fast-components 最多支持 3 个,此时图片为视频中的元素
不传 aspect_ratio 参数时,会根据参考图自动匹配比例,如果无法判断默认生成横屏
{
"summary": "Veo图生视频",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": []
}
}
},
"description": "成功"
}
},
"parameters": [],
"description": "### Veo图生视频\n当模型是带 veo2-fast-frames 最多支持两个,分别是首尾帧\n当模型是 veo3-pro-frames 最多支持一个首帧\n当模型是 veo2-fast-components 最多支持 3 个,此时图片为视频中的元素\n\n不传 aspect_ratio 参数时,会根据参考图自动匹配比例,如果无法判断默认生成横屏",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"title": "Veo图生视频",
"$schema": "",
"required": [
"prompt",
"model",
"images"
],
"properties": {
"model": {
"enum": [
"veo3-pro-frames",
"veo3-fast-frames",
"veo2-fast-frames",
"veo2-fast-components",
"veo3.1",
"veo3.1-pro",
"veo3.1-components"
],
"type": "string"
},
"images": {
"type": "array",
"items": {
"type": "string"
},
"description": "url or base64;当模型是带 veo2-fast-frames 最多支持两个,分别是首尾帧,当模型是 veo3-pro-frames 最多支持一个首帧,当模型是 veo2-fast-components 最多支持 3 个,此时图片为视频中的元素"
},
"prompt": {
"type": "string"
},
"aspect_ratio": {
"enum": [
"9:16",
"16:9"
],
"type": "string"
},
"enhance_prompt": {
"type": "boolean",
"description": "是否优化提示词,一般是false;由于 veo 只支持英文提示词,所以如果需要中文自动转成英文提示词,可以开启此开关"
}
},
"x-apifox-id": "343632235"
}
}
},
"required": true
}
}价格
| 价格组 | 渠道 | 计费项 | 价格 | 单位 |
|---|---|---|---|---|
| default | AI 中转站 | request | CNY 0.01 | request |
服务级错误码参照(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) | 具体错误代码 |
使用文档下载
常见问题:
| 标题 | 更新时间 | |
|---|---|---|
| Token 是什么?中文、英文与上下文窗口如何计算 | 2026-09-21 00:31:09 | |
| LLM API 费用如何计算?如何选择合适的模型 | 2026-09-21 01:16:03 | |
| Word-to-Token 转换与用量估算指南 | 2026-09-21 00:31:09 |
gemini-3.8-flash-thinking-medium
gemini-3.8-flash-thinking-high