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. 任务提交

关联按钮动作 - Action

POST
https://api.juheai.top/mj/submit/action
所有的关联按钮动作UPSCALE、VARIATION、REROLL、ZOOM等

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Header 参数
Authorization
string 
可选
在 Header 添加参数 Authorization,其值为在 Bearer 之后拼接 Token 也就是key
Body 参数application/json
customId
string 
动作标识
必需
示例值: MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011
taskId
string 
任务ID
必需
示例值: 14001934816969359
notifyHook
string 
可选
可选
回调地址, 为空时使用全局notifyHook
state
string 
可选
可选
自定义参数
示例
{
    "customId": "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011",
    "taskId": "14001934816969359",
    "notifyHook": "string",
    "state": "string"
}

示例代码

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/action' \
--header 'Content-Type: application/json' \
--data-raw '{
    "customId": "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011",
    "taskId": "14001934816969359",
    "notifyHook": "string",
    "state": "string"
}'

返回响应

🟢200成功
application/json
Body
提交成功
code
integer 
必需
状态码: 1(提交成功), 21(已存在), 22(排队中), other(错误) 示例值: 1
description
string 
示例值: 提交成功
必需
properties
object 
扩展字段
可选
result
integer 
可选
示例值: 1320098173412546
示例
{
    "code": 1,
    "description": "提交成功",
    "properties": {},
    "result": 1320098173412546
}
修改于 2025-07-12 13:21:21
上一页
文生图 - Imagine
下一页
图生文 - Describe
Built with