Blend
POST
/mj/submit/blendPrice: 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]
required
Base64 encoded image array
Example:
["data:image/png;base64,xxx1","data:image/png;base64,xxx2"]
botType
enum<string>
optional
Bot type; mj(default) or niji
Allowed values:
MID_JOURNEYNIJI_JOURNEY
Example:
MID_JOURNEY
dimensions
enum<string>
optional
Ratio: PORTRAIT(2:3); SQUARE(1:1); LANDSCAPE(3:2)
Allowed values:
PORTRAITSQUARELANDSCAPE
Example:
SQUARE
notifyHook
string
optional
Callback URL; use global notifyHook if empty
state
string
optional
Custom parameters
Example
{
"base64Array": [
"data:image/png;base64,xxx1",
"data:image/png;base64,xxx2"
],
"botType": "MID_JOURNEY",
"dimensions": "PORTRAIT",
"notifyHook": "string",
"state": "string"
}
示例代码
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 个月前