API接口文档
  1. 任务提交
API接口文档
  • JuheNext
  • OpenAI兼容格式
    • 普通对话
      POST
    • 识图模型
      POST
    • 流式输出
      POST
    • 结构化输出
      POST
    • Fouctions调用
      POST
    • 嵌入模型
      POST
    • 审查模型
      POST
    • Dalle绘图模型
      POST
    • GPT-image-1新绘图
      POST
    • tts文本转语音
      POST
    • 新绘图 - 图生图(对话格式)
      POST
    • 新绘图 - 图生图(绘图格式)
      POST
    • 新绘图 - 文生图
      POST
    • 新response端点o3-pro
      POST
    • Gemini视频识别
      POST
    • GeminiPDF文件识别
      POST
    • 普通对话 Copy
      POST
  • Gemini原生格式
    • 普通对话
      POST
    • 图像生成
      POST
    • 音频生成
      POST
    • 结构化输出
      POST
    • 思考设置
      POST
    • 函数调用
      POST
    • PDF文件识别
      POST
    • 图像识别
      POST
    • 视频识别
      POST
    • 流式响应
      POST
  • Anthropic原生格式
    • 普通对话
    • 图像识别
    • 函数调用
    • Web search tool
  • Midjourney绘图
    • 任务提交
      • 文生图 - Imagine
        POST
      • 关联按钮动作 - Action
        POST
      • 图生文 - Describe
        POST
      • 图像混合 - Blend
        POST
      • 局部重绘 - Modal
        POST
    • 任务查询
      • 多任务查询 - ListByCondition
      • 单任务查询 - FetchFromTask
      • Seed查询 - ImageSeed
  • 列出支持的模型
    GET
  1. 任务提交

文生图 - Imagine

POST
https://api.juheai.top/mj/submit/imagine
文生图,文图生图

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Body 参数application/json
imagineDTO
botType
string 
bot类型
可选
bot类型,mj(默认)或niji,可用值:MID_JOURNEY,NIJI_JOURNEY,示例值(MID_JOURNEY)
prompt
string 
提示词
必需
提示词,示例值(Cat),本系统为了适配新功能 无翻译功能
base64Array
array[string]
垫图
可选
垫图base64数组(可以在上面的prompt里面 使用图片url+prompt的形式达到图文生图的效果)
notifyHook
string 
回调地址
可选
接口暴露信息 暂时关闭
state
string 
自定义参数
可选
自定义参数
示例
{
  "botType": "MID_JOURNEY",
  "prompt": "Cat",
  "base64Array": [],
  "accountFilter": {
    "channelId": "",
    "instanceId": "",
    "modes": [],
    "remark": "",
    "remix": true,
    "remixAutoConsidered": true
  },
  "notifyHook": "",
  "state": ""
}

示例代码

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://api.juheai.top/mj/submit/imagine' \
--header 'Content-Type: application/json' \
--data-raw '{
  "botType": "MID_JOURNEY",
  "prompt": "Cat",
  "base64Array": [],
  "accountFilter": {
    "channelId": "",
    "instanceId": "",
    "modes": [],
    "remark": "",
    "remix": true,
    "remixAutoConsidered": true
  },
  "notifyHook": "",
  "state": ""
}'

返回响应

🟢200成功
application/json
Body
提交结果
code
integer 
状态码
必需
状态码: 1(提交成功), 22(排队中), other(错误)
description
string 
描述
必需
描述
properties
object 
扩展字段
必需
扩展字段
result
integer 
任务ID
必需
任务ID
示例
{
	"code": 1,
	"description": "提交成功",
	"properties": {},
	"result": 1320098173412546
}
🟢201成功
🟠401没有权限
🟠403禁止访问
🟠404记录不存在
修改于 2025-07-12 13:21:21
上一页
Web search tool
下一页
关联按钮动作 - Action
Built with