استخدم POST /mj/submit/imagine في CometAPI لإنشاء مهام Imagine في Midjourney مع جميع معاملات Discord، وتتبع حالة task_id، وتمكين تأثيرات الحركة من الصورة إلى الفيديو.
curl --request POST \
--url https://api.cometapi.com/mj/submit/imagine \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "a paper boat floating on calm water at sunrise --v 6.1"
}
'{
"code": 1,
"description": "提交成功",
"result": "1773314942177684",
"properties": {
"discordChannelId": "5e6ca8e1f40e4de6",
"discordInstanceId": "5e6ca8e1f40e4de6"
}
}result هو معرّف المهمة الذي ستقوم باستطلاع حالته بعد ذلكdescription هي رسالة تغليف وقد تكون مترجمة محليًاcode رمز نجاح حتى عندما لا يكون 200 بأسلوب HTTPالاستطلاع حتى تكتمل المهمة
SUCCESS أو MODAL أو FAILURE.المتابعة إلى المعالجة اللاحقة
--video و--motion.
SUCCESS مع imageUrl و9 أزرار إجراءات.Bearer token authentication. Use your CometAPI key.
Text prompt for the generation. Supports standard Midjourney parameters such as --v, --ar, --stylize, etc.
"a paper boat floating on calm water at sunrise --v 6.1"
Bot type to use. MID_JOURNEY for Midjourney (default), NIJI_JOURNEY for Niji.
MID_JOURNEY, NIJI_JOURNEY Filter which Midjourney account modes may be used for this task.
Show child attributes
Base64-encoded reference images. Each item should be a data URI such as data:image/png;base64,xxx.
Custom state string. Returned as-is in the task result and webhook callback for your own tracking.
curl --request POST \
--url https://api.cometapi.com/mj/submit/imagine \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "a paper boat floating on calm water at sunrise --v 6.1"
}
'{
"code": 1,
"description": "提交成功",
"result": "1773314942177684",
"properties": {
"discordChannelId": "5e6ca8e1f40e4de6",
"discordInstanceId": "5e6ca8e1f40e4de6"
}
}