主题
执行Action动作
POST
https://az.gptplus5.com/mj/submit/action
官方文档:https://docs.midjourney.com/hc/en-us/articles/32804058614669-Upscalers
请求参数
Authorization
在 Header 添加参数Authorization,其值为在 Bearer 之后拼接 Token
示例:Authorization: Bearer ********************
Header 参数
| 参数名 | 类型 | 必需 | 说明 | 示例 |
|---|---|---|---|---|
Authorization | string | 可选 | Bearer {{YOUR_API_KEY}} |
Body 参数 (application/json)
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
chooseSameChannel | boolean | 必需 | 是否选择同一频道下的账号,默认只使用任务关联的账号 |
customId | string | 可选 | |
taskId | string | 可选 | |
notifyHook | string | 可选 | 回调地址, 为空时使用全局notifyHook |
state | string | 可选 |
请求示例
json
{
"chooseSameChannel": true,
"customId": "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011",
"taskId": "14001934816969359",
"notifyHook": "",
"state": ""
}cURL 示例
bash
curl --location --request POST 'https://az.gptplus5.com/mj/submit/action' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"chooseSameChannel": true,
"customId": "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011",
"taskId": "14001934816969359",
"notifyHook": "",
"state": ""
}'返回响应
🟢200Create image
响应 Body
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
created | integer | 必需 | |
data | array[object] | 必需 | |
└ url | string | 必需 |
响应示例
json
{
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}