提交Imagine任务(文生图、文图生图)
POST
{{BASE_URL}}/mj/submit/imagine请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
botType
enum<string>
自定义参数
枚举值:
MID_JOURNEYNIJI_JOURNEY
prompt
string
提示词
提示词
base64Array
array[string]
垫图base64数组
垫图base64数组
notifyHook
string
回调地址
回调地址, 为空时使用全局notifyHook
示例1
{
"botType": "MID_JOURNEY",
"prompt": "Cat"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
状态码: 1(提交成功), 21(已存在), 22(排队中), other(错误)
description
string
描述
properties
object
扩展字段
result
integer
任务ID
示例
{
"code": 1,
"description": "提交成功",
"properties": {},
"result": 1320098173412546
}
最后修改时间: 5 个月前