更新日期:2026-06-06
执行操作
Action - 放大 / 变体
请求参数
请求示例
cURL
响应示例
Blend - 混合图片
请求参数
请求示例
cURL
响应示例
Describe - 图片描述
请求参数
请求示例
cURL
Modal - 弹窗确认
请求参数
请求示例
cURL
所有操作提交后都会返回新的任务 ID,需通过 查询任务状态 接口获取结果。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
执行 Midjourney 后续操作:放大、变体、混合、描述等
更新日期:2026-06-06
POST /mj/submit/action
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
taskId | string | 是 | 原始任务 ID |
customId | string | 是 | 操作按钮的 customId,从任务的 buttons 字段获取 |
notifyHook | string | 否 | 回调地址 |
state | string | 否 | 自定义状态 |
curl -X POST https://api.crazyrouter.com/mj/submit/action \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"taskId": "task_1234567890",
"customId": "MJ::JOB::upsample::1::abc123"
}'
{
"code": 1,
"description": "提交成功",
"result": "task_action_001",
"properties": {}
}
POST /mj/submit/blend
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
botType | string | 否 | MID_JOURNEY(默认)或 NIJI_JOURNEY |
base64Array | array | 是 | Base64 编码的图片数组,2-5 张 |
dimensions | string | 否 | 输出尺寸:PORTRAIT、SQUARE、LANDSCAPE |
notifyHook | string | 否 | 回调地址 |
state | string | 否 | 自定义状态 |
curl -X POST https://api.crazyrouter.com/mj/submit/blend \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"base64Array": [
"data:image/png;base64,iVBORw0KGgo...",
"data:image/png;base64,iVBORw0KGgo..."
],
"dimensions": "SQUARE"
}'
{
"code": 1,
"description": "提交成功",
"result": "task_blend_001"
}
POST /mj/submit/describe
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
botType | string | 否 | MID_JOURNEY(默认)或 NIJI_JOURNEY |
base64 | string | 是 | Base64 编码的图片 |
notifyHook | string | 否 | 回调地址 |
state | string | 否 | 自定义状态 |
curl -X POST https://api.crazyrouter.com/mj/submit/describe \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"base64": "data:image/png;base64,iVBORw0KGgo..."
}'
POST /mj/submit/modal
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
taskId | string | 是 | 原始任务 ID |
prompt | string | 否 | 弹窗中的提示词 |
maskBase64 | string | 否 | 遮罩图片的 Base64 编码 |
curl -X POST https://api.crazyrouter.com/mj/submit/modal \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"taskId": "task_1234567890",
"prompt": "add a rainbow in the sky"
}'