提交Imagine任务
POST
/mj/submit/imagine
请求参数
Authorization
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
botType
enum<string>
必需
枚举值:
MID_JOURNEYNIJI_JOURNEY
示例值:
MID_JOURNEY
prompt
string
提示词
示例值:
Cat
base64Array
array[string]
可选
notifyHook
string
可选
state
string
自定义参数
示例
{
"base64Array": [],
"notifyHook": "",
"prompt": "cat --v 6.0",
"state": "",
"botType": "MID_JOURNEY"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://xuedingmao.online/mj/submit/imagine' \
--header 'Content-Type: application/json' \
--data-raw '{
"base64Array": [],
"notifyHook": "",
"prompt": "cat --v 6.0",
"state": "",
"botType": "MID_JOURNEY"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"code": 1,
"description": "Submit success",
"result": "1730621718151844",//任务id
"properties": {
"discordChannelId": "1300842676874379336",
"discordInstanceId": "1572398367386955776"
}
}
修改于 2024-12-25 13:41:20