Midjourney API 中文版
  1. 账号管理
Midjourney API 中文版
  • 简介
  • 账号管理
    • 创建账号
      POST
    • 分页查询账号
      POST
    • 执行账号相关动作
      POST
    • 更改mj绘图版本
      POST
    • 删除账号
      DELETE
    • 指定ID获取账号
      GET
    • 同步账号信息
      POST
    • 更新账号并重连
      PUT
  • 任务提交
    • 执行动作
      POST
    • 提交Blend任务
      POST
    • 提交Describe任务
      POST
    • 提交Imagine任务
      POST
    • 提交Modal
      POST
    • 提交Shorten任务
      POST
  • 任务查询
    • 查询所有任务
      GET
    • 根据ID列表查询任务
      POST
    • 分页查询任务
      POST
    • 查询任务队列
      GET
    • 取消任务
      POST
    • 指定ID获取任务
      GET
    • 获取任务图片的seed
      GET
  1. 账号管理

更新账号并重连

PUT
/mj/account/{id}/update-reconnect
账号管理

请求参数

Path 参数
id
string 
账号ID
必需
Body 参数application/json
coreSize
integer <int32>
并发数
可选
示例值:
3
enable
boolean 
是否可用
可选
示例值:
true
mjBotChannelId
string 
MJ私信ID
可选
nijiBotChannelId
string 
niji私信ID
可选
queueSize
integer <int32>
等待队列长度
可选
示例值:
10
remark
string 
备注说明
可选
remixAutoSubmit
boolean 
remix自动提交
可选
示例值:
false
timeoutMinutes
integer <int32>
可选
任务超时时间(分钟)
示例值:
5
userAgent
string 
可选
用户UserAgent
userToken
string 
用户Token
可选
示例
{
    "coreSize": 3,
    "enable": true,
    "mjBotChannelId": "string",
    "nijiBotChannelId": "string",
    "queueSize": 10,
    "remark": "string",
    "remixAutoSubmit": false,
    "timeoutMinutes": 5,
    "userAgent": "string",
    "userToken": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.aigcbest.top/mj/account//update-reconnect' \
--header 'Content-Type: application/json' \
--data-raw '{
    "coreSize": 3,
    "enable": true,
    "mjBotChannelId": "string",
    "nijiBotChannelId": "string",
    "queueSize": 10,
    "remark": "string",
    "remixAutoSubmit": false,
    "timeoutMinutes": 5,
    "userAgent": "string",
    "userToken": "string"
}'

返回响应

🟢200OK
application/json
Body
code
integer <int32>
可选
description
string 
可选
示例
{
    "code": 0,
    "description": "string"
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
上一页
同步账号信息
下一页
执行动作
Built with