即梦视频生成
POST /jimeng/
即梦官方 API 格式的视频生成接口。
支持通过 Action 参数指定操作类型:
CVSync2AsyncSubmitTask: 提交视频生成任务CVSync2AsyncGetResult: 获取任务结果
需要在查询参数中指定 Action 和 Version。
基本信息
| 项目 | 内容 |
|---|---|
| Base URL | https://www.yunzhuhub.cn |
| 标签 | 视频生成/即梦格式 |
| Operation ID | createJimengVideo |
认证
- BearerAuth:使用 Bearer Token 认证。 格式:
Authorization: Bearer sk-xxxxxx
密钥安全
请只使用你自己的 API Key。示例中的 <YOUR_API_KEY> 必须在本地替换,不要把真实密钥提交到代码仓库或发送给他人。
参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
Action | query | string | 是 | API 操作类型 |
Version | query | string | 是 | API 版本 |
请求体
Content-Type: application/json
json
{
"type": "object",
"description": "即梦官方 API 请求格式",
"properties": {
"req_key": {
"type": "string",
"description": "请求类型标识"
},
"prompt": {
"type": "string",
"description": "文本描述"
},
"binary_data_base64": {
"type": "array",
"items": {
"type": "string"
},
"description": "Base64 编码的图片数据"
}
}
}请求示例
以下示例只用于复制到本地终端,不会从文档站发送请求。
bash
curl --request POST 'https://www.yunzhuhub.cn/jimeng/' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '<REQUEST_JSON>'响应
200 成功处理请求
json
{
"type": "object",
"properties": {
"code": {
"type": "integer",
"description": "响应码"
},
"message": {
"type": "string",
"description": "响应消息"
},
"data": {
"type": "object",
"description": "响应数据",
"properties": {}
}
}
}400 请求参数错误
json
{
"title": "ErrorResponse",
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"message": {
"type": "string",
"description": "错误信息"
},
"type": {
"type": "string",
"description": "错误类型"
},
"param": {
"type": "string",
"description": "相关参数",
"nullable": true
},
"code": {
"type": "string",
"description": "错误代码",
"nullable": true
}
}
}
}
}