DeerAPI 提交Imagine任务接口文档:通过 UniAgi Midjourney API 调用 POST /mj/submit/imagine 创建图像生成任务,返回 task_id 并可查询进度,支持图片转视频参数 —motion/—video 及循环、结束图。
curl --request POST \
--url https://api.deerapi.com/mj/submit/imagine \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"botType": "MID_JOURNEY",
"prompt": "Cat",
"accountFilter": {
"modes": [
"FAST"
]
}
}
'{
"code": 123,
"description": "<string>",
"properties": null,
"result": "<string>"
}task_id| 参数 | 值 | 说明 |
|---|---|---|
--video | 1 | 启用视频生成 |
--motion | low / high | 动态效果强度 |
{
"prompt": "https://cdn.midjourney.com/xxx.png add a dog --motion high --video 1",
"base64": "",
"notifyHook": "",
"videoType": "vid_1.1_i2v_720",
"state": ""
}
视频任务新参数支持
loop:支持循环播放视频
endImage:支持自定义视频结束时显示的图像
Bearer token authentication. Use your DeerAPI key.
curl --request POST \
--url https://api.deerapi.com/mj/submit/imagine \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"botType": "MID_JOURNEY",
"prompt": "Cat",
"accountFilter": {
"modes": [
"FAST"
]
}
}
'{
"code": 123,
"description": "<string>",
"properties": null,
"result": "<string>"
}