- 在线调用-使用说明
- 基础模型
- 大语言模型 LLM
- 语音识别 ASR
- 语音合成 TTS
- 图片生成 Images Generations
- 视频合成 Video Generations
- RAG模型
- 音色处理 voice processing
- 图生图 Image to Image
- 智能体
- 对话数据
通义万象 文生视频
POST
/v1/video/generations
提示
点击获取api_key
危险
智谱 图片生视频大概时间: 2分30 s
MiniMax 文生视频大概时间: 3分30s
MiniMax 图片生视频大概时间: 3分30 s
请求参数
Header 参数
Authorization
string
认证信息
示例值:
Bearer {{api_key}}
Body 参数application/json
model
enum<string>
必需
枚举值:
wanx2.1-t2v-turbowanx2.1-t2v-plus
prompt
string
视频合成参数
示例值:
乐高模型风格,生成一个大灰狼流口水的看向小红帽
size
enum<string>
必需
枚举值:
1280x720960x960720x12801088x832832x1088
prompt_extend
boolean
可选
默认值:
true
示例
{
"model": "wanx2.1-t2v-turbo",
"prompt": "乐高模型风格,生成一个大灰狼流口水的看向小红帽",
"size": "1088x832",
"prompt_extend": false
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mindcraft.com.cn/v1/video/generations' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "wanx2.1-t2v-turbo",
"prompt": "乐高模型风格,生成一个大灰狼流口水的看向小红帽",
"size": "1088x832",
"prompt_extend": false
}'
返回响应
🟢200成功
application/json
Body
id
string
必需
category
string
必需
model
string
必需
data
object
必需
category
string
必需
model
string
必需
task_id
string
必需
示例
{
"id": "b2c82c6577f247ecb1e5ea681992222c",
"model": "wanx2.1-t2v-turbo",
"category": null,
"usage": {
"cost_points": 1200,
"cost_remake": "1 video 消耗 1200"
},
"data": {
"category": "tongyi_ttv",
"model": "wanx2.1-t2v-turbo",
"task_id": "904f4596-d58b-420d-88e9-5b100a53b95b"
}
}
修改于 2025-02-25 02:52:54