Imagine
POST
/mj/submit/imaginePrice: 0.05 PTC / call
请求参数
Header Params
mj-api-secret
string
required
API Key for 302.AI backend
Example:
{{YOUR_API_KEY}}
Body Params application/json
base64Array
array[string]
optional
Base64 encoded image array
botType
enum<string>
optional
Bot type; mj(default) or niji
Allowed values:
MID_JOURNEYNIJI_JOURNEY
Example:
MID_JOURNEY
notifyHook
string
optional
Callback URL; use global notifyHook if empty
prompt
string
required
Text description of the target image.
Example:
Cat
state
string
optional
Custom parameters
Example
{
"base64Array": [],
"botType": "MID_JOURNEY",
"notifyHook": "",
"prompt": "Cat",
"state": ""
}
示例代码
Responses
OK(200)
Created(201)
Unauthorized(401)
Forbidden(403)
Not Found(404)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
No schema defined
Example
Not configured
Last modified: 2 个月前