- 聊天对话-OpenAI格式(/chat/completions)
- 聊天对话-Anthropic格式(/messages)
- 绘图模型-OpenAI格式(/images)
- 绘图模型-Midjourney(/mj)
- 向量化(/embeddings)
按钮点击(Action)-选择图片
POST
/mj/submit/action
可以用来获取某一张图片,4张图片就有4个customId
请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer {YOUR_API_KEY}
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
chooseSameChannel
boolean
可选
customId
string
动作标识
taskId
string
必需
accountFilter
object
可选
channelId
string
必需
instanceId
string
必需
modes
array[string]
必需
remark
string
必需
remix
boolean
必需
remixAutoConsidered
boolean
必需
notifyHook
string
可选
state
string
可选
示例
{
"chooseSameChannel": true,
"customId": "MJ::JOB::upsample::1::82c51c9d-bc33-4c07-a471-36c3dcb1a6f0",
"taskId": "1728781324658687",
"accountFilter": {
"channelId": "",
"instanceId": "",
"modes": [],
"remark": "",
"remix": true,
"remixAutoConsidered": true
},
"notifyHook": "",
"state": ""
}
示例代码
HTTP
Shell
JavaScript
Java
Swift
Go
PHP
Python
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
HTTP
Shell
JavaScript
Java
curl --location --request POST 'https://api.wenwen-ai.com/mj/submit/action' \
--header 'Authorization: Bearer {YOUR_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"chooseSameChannel": true,
"customId": "MJ::JOB::upsample::1::82c51c9d-bc33-4c07-a471-36c3dcb1a6f0",
"taskId": "1728781324658687",
"accountFilter": {
"channelId": "",
"instanceId": "",
"modes": [],
"remark": "",
"remix": true,
"remixAutoConsidered": true
},
"notifyHook": "",
"state": ""
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
description
string
必需
properties
object
必需
result
integer
必需
示例
{
"code": 1,
"description": "提交成功",
"properties": {},
"result": 1320098173412546
}
修改于 2025-06-14 12:40:22