Authorization 字段进行鉴权。| 参数名 | 位置 | 类型 | 描述 | 示例 |
|---|---|---|---|---|
| Authorization | Header | string | API Key | {{YOUR_API_KEY}} |
/mj/submit/imaginePOST| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| botType | string | 否 | bot类型: MID_JOURNEY (默认), NIJI_JOURNEY |
| prompt | string | 是 | 提示词 |
| base64Array | array | 否 | 垫图base64数组 |
| notifyHook | string | 否 | 回调地址 |
| noStorage | boolean | 否 | 是否返回官方链接 (默认 false) |
| accountFilter | object | 否 | 账号筛选配置 |
| 参数名 | 类型 | 描述 |
|---|---|---|
| modes | array | 速度筛选,如 ["RELAX"] |
{
"botType": "MID_JOURNEY",
"prompt": "Cat",
"base64Array": [],
"notifyHook": "",
"noStorage": false
}提交结果 对象。{
"code": 1,
"description": "提交成功",
"result": "1320098173412546"
}/mj/submit/blendPOST| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| base64Array | array | 是 | 图片base64数组 (2-5张) |
| botType | string | 否 | bot类型: MID_JOURNEY (默认), NIJI_JOURNEY |
| dimensions | string | 否 | 比例: PORTRAIT(2:3), SQUARE(1:1), LANDSCAPE(3:2) |
| notifyHook | string | 否 | 回调地址 |
| state | string | 否 | 自定义参数 |
{
"botType": "MID_JOURNEY",
"base64Array": [
"data:image/png;base64,xxx1",
"data:image/png;base64,xxx2"
],
"dimensions": "SQUARE"
}/mj/submit/describePOST| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| botType | string | 否 | bot类型: MID_JOURNEY (默认), NIJI_JOURNEY |
| base64 | string | 否 | 图片base64 (与link二选一) |
| link | string | 否 | 图片链接 (与base64二选一) |
| notifyHook | string | 否 | 回调地址 |
| state | string | 否 | 自定义参数 |
| language | string | 否 | 语言: en (默认), zh_cn |
{
"botType": "MID_JOURNEY",
"link": "https://example.com/image.jpg",
"language": "en"
}/mj/submit/actionPOST| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| customId | string | 是 | 动作标识 (从任务查询结果的 buttons 中获取) |
| taskId | string | 是 | 任务ID |
| notifyHook | string | 否 | 回调地址 |
| state | string | 否 | 自定义参数 |
| noStorage | boolean | 否 | True: 返回原始图片链接 |
| enableRemix | boolean | 否 | 是否使用 remix 模式 (默认 false) |
{
"customId": "MJ::JOB::variation::1::UUID",
"taskId": "1746531634074810",
"enableRemix": true
}/mj/submit/modalPOST| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| taskId | string | 是 | 任务ID |
| prompt | string | 否 | 提示词 |
| maskBase64 | string | 否 | 局部重绘的蒙版base64 |
| noStorage | boolean | 否 | True: 返回原始图片链接 |
{
"taskId": "14001934816969359",
"prompt": "new prompt"
}/mj/submit/videoPOST| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| videoType | string | 是 | 视频类型: vid_1.1_i2v_480, vid_1.1_i2v_720 |
| image | string | 是 | 首帧图片 (url 或 base64) |
| motion | string | 是 | 运动幅度: low, high |
| prompt | string | 否 | 提示词 |
| endImage | string | 否 | 尾帧图片 (url 或 base64) |
| loop | boolean | 否 | 是否循环 |
| batchSize | integer | 否 | 生成数量 (1, 2, 4, 默认 4) |
| action | string | 否 | 操作类型: extend (扩展视频时填写) |
| index | integer | 否 | 视频索引 (0-3, action不为空时必填) |
| taskId | string | 否 | 父任务ID (action不为空时必填) |
| notifyHook | string | 否 | 回调地址 |
{
"prompt": "run cat",
"videoType": "vid_1.1_i2v_480",
"image": "https://example.com/cat.jpg",
"motion": "low",
"batchSize": 1
}/mj/submit/editsPOST| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| prompt | string | 是 | 提示词 |
| image | string | 是 | 图片 (url 或 base64) |
| maskBase64 | string | 否 | 蒙版base64 (透明表示编辑区域) |
| notifyHook | string | 否 | 回调地址 |
| noStorage | boolean | 否 | 是否不存储 |
/mj/submit/retexturePOST| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| prompt | string | 是 | 提示词 |
| image | string | 是 | 图片 (url 或 base64) |
| notifyHook | string | 否 | 回调地址 |
/mj/submit/upload-discord-imagesPOST| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| base64Array | array | 否 | base64字符串数组 |
/mj/task/{id}/fetchGETid (任务ID)| 字段名 | 类型 | 描述 |
|---|---|---|
| id | string | 任务ID |
| status | string | 状态: NOT_START, SUBMITTED, IN_PROGRESS, FAILURE, SUCCESS, CANCEL |
| progress | string | 进度 (如 "100%") |
| imageUrl | string | 主图链接 |
| imageUrls | array | 单图链接列表 |
| action | string | 任务类型 (IMAGINE, UPSCALE, VARIATION 等) |
| prompt | string | 提示词 |
| promptEn | string | 英文提示词 |
| description | string | 状态描述 |
| failReason | string | 失败原因 |
| submitTime | integer | 提交时间 |
| startTime | integer | 开始时间 |
| finishTime | integer | 结束时间 |
| buttons | array | 可执行的操作按钮列表 |
| 字段名 | 类型 | 描述 |
|---|---|---|
| customId | string | 动作标识 |
| label | string | 按钮文本 (U1, V1 等) |
| emoji | string | 图标 |
/mj/task/list-by-conditionPOST| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| ids | array | 否 | 任务ID字符串数组 |
/mj/task/{id}/image-seedGETid (任务ID){
"code": 1,
"description": "Success",
"result": "123456789"
}| 字段 | 类型 | 描述 |
|---|---|---|
| code | integer | 状态码: 1(成功), 22(排队中), 其他(错误) |
| description | string | 描述 |
| result | string | 任务ID |
NOT_START: 未开始SUBMITTED: 已提交MODAL: 等待弹窗确认IN_PROGRESS: 执行中FAILURE: 失败SUCCESS: 成功CANCEL: 已取消