提交Imagine任务
接口: POST https://4zapi.com/mj/submit/imagine
官方文档:https://docs.midjourney.com/hc/en-us/articles/32023408776205-Prompt-Basics
根据文本提示词生成图像,支持垫图(base64Array)和多机器人类型。
参数
Authorization(header, string): Bearer API Key
请求体 (application/json)
prompt(string, 必填): 图像描述提示词,支持 Midjourney 原生参数(如 `--ar 16:9 --v 6.1`)accountFilter(object): 账号筛选条件(可选)base64Array(array<string>): 垫图 Base64 列表,格式 `data:image/png;base64,...`,最多 5 张botType(string): 机器人类型;NIJI 适合动漫风格 ["MID_JOURNEY", "NIJI_JOURNEY"]notifyHook(string): 任务完成回调 URL(Webhook)state(string): 透传状态字段,原样携带到回调
请求示例
{
"base64Array": [],
"botType": "MID_JOURNEY",
"notifyHook": "",
"prompt": "cat",
"state": ""
}