即梦视频生成
curl --request POST \
--url https://zero.cat/jimeng/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"req_key": "<string>",
"prompt": "<string>",
"binary_data_base64": [
"<string>"
]
}
'import requests
url = "https://zero.cat/jimeng/"
payload = {
"req_key": "<string>",
"prompt": "<string>",
"binary_data_base64": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({req_key: '<string>', prompt: '<string>', binary_data_base64: ['<string>']})
};
fetch('https://zero.cat/jimeng/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"data": {}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}视频
即梦视频生成
即梦官方 API 格式的视频生成接口。
支持通过 Action 参数指定操作类型:
CVSync2AsyncSubmitTask: 提交视频生成任务CVSync2AsyncGetResult: 获取任务结果
需要在查询参数中指定 Action 和 Version。
POST
/
jimeng
/
即梦视频生成
curl --request POST \
--url https://zero.cat/jimeng/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"req_key": "<string>",
"prompt": "<string>",
"binary_data_base64": [
"<string>"
]
}
'import requests
url = "https://zero.cat/jimeng/"
payload = {
"req_key": "<string>",
"prompt": "<string>",
"binary_data_base64": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({req_key: '<string>', prompt: '<string>', binary_data_base64: ['<string>']})
};
fetch('https://zero.cat/jimeng/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"data": {}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}授权
ZeroCat API 密钥(sk- 开头),在控制台「API 密钥」页面创建。
格式:Authorization: Bearer sk-xxxxxx
查询参数
API 操作类型
可用选项:
CVSync2AsyncSubmitTask, CVSync2AsyncGetResult API 版本
请求体
application/json

