Imagine
POST
https://api.cometapi.com/mj/submit/imagineCreate a midjourney image generation task through UniAgi midjourney api. You have access to all parameters same as Midjourney Discord Channel.
Request
[message.headerParameter]
Authorization
string
可选
示例值:
Bearer sk-xxx
[message.bodyParameter]application/json
base64Array
array[string]
可选
Base64 array of pad image
notifyHook
string
可选
Callback address, use global notifyHook if empty
prompt
string
必需
the prompt you want midjourney to generate image for
state
string
可选
self-defined state
[api.label.example]
{
"base64Array": [],
"notifyHook": "",
"prompt": "Cat",
"state": ""
}
Request samples
[api.label.responses]
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
[response.label.jsonSchema]
code
integer
必需
description
string
必需
properties
object
必需
result
integer
必需
[api.label.example]
{
"code": 1,
"description": "提交成功",
"properties": {},
"result": 1320098173412546
}
[updatedIn] 6 个月前