慧言API
  1. 任务提交
慧言API
  • chatgpt对话
    • gpt-3.5-turbo
      POST
    • gpt-4o-mini
      POST
    • gpt-4o
      POST
    • chatgpt-4o-latest
      POST
    • o1-mini
      POST
    • o3-mini
      POST
    • deepseek-r1
      POST
    • 函数
      POST
    • embedding
      POST
  • chatgpt绘图识图
    • 绘图dalle3
      POST
    • gpt-4-turbo
      POST
    • gpt-4o
      POST
    • gpt-4o-mini
      POST
  • claude-gemini
    • claude-3-7-sonnet-20250219
      POST
    • claude-3-5-sonnet-20241022
      POST
    • claude-3-5-sonnet-20240620
      POST
    • claude-3-opus-20240229
      POST
    • claude-3-haiku-20240307
      POST
    • gemini2
      POST
  • 逆向模型
    • 识图gpt-4-all
    • 绘图gpt-4-all
    • 逆向流式o1-mini-all
  • 绘图midjourney-proxy-plus
    • 任务提交
      • 文生图
        POST
      • 提交Describe任务
        POST
      • 提交Modal
        POST
      • 执行动作
        POST
      • 上传文件到discord
        POST
      • 提交Shorten任务
        POST
      • 提交Blend任务
        POST
    • 任务查询
      • 根据ID列表查询任务
      • 分页查询任务
      • 取消任务
      • 指定ID获取任务
      • 查询任务队列
      • 根据ID列表查询任务-字段displays
      • 获取任务图片的seed(需设置mj或niji的私信ID)
      • 查询所有任务
    • InsightFace任务提交
      • 提交swap_face任务
  • 音乐
    • suno音乐
    • 查询音乐
    • 上传音乐
  • 绘图dall-e-3
    POST
  1. 任务提交

提交Describe任务

开发中
国内站
国内站
POST
https://api.huiyan-ai.cn
/mj/submit/describe

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Header 参数
Accept
string 
可选
示例值:
*/*
Content-Type
string 
可选
示例值:
application/json
Body 参数application/json
botType
string 
可选
bot类型,mj(默认)或niji
示例值:
MID_JOURNEY
base64
string 
图片base64
可选
示例值:
data:image/png;base64,xxx
accountFilter
object (账号筛选条件) 
可选
channelId
string 
频道ID
可选
instanceId
string 
账号实例ID
可选
modes
array[string]
账号模式
可选
remark
string 
备注包含
可选
remix
boolean 
账号是否remix
可选
remixAutoConsidered
boolean 
可选
账号过滤时,remix自动提交 视为 账号的remix为false
notifyHook
string 
可选
回调地址, 为空时使用全局notifyHook
state
string 
自定义参数
可选
示例
{
  "botType": "MID_JOURNEY",
  "base64": "data:image/png;base64,xxx",
  "accountFilter": {
    "channelId": "",
    "instanceId": "",
    "modes": [
      ""
    ],
    "remark": "",
    "remix": "",
    "remixAutoConsidered": ""
  },
  "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.huiyan-ai.cn/mj/submit/describe' \
--header 'Accept: */*' \
--header 'Content-Type: application/json' \
--data-raw '{
    "botType": "MID_JOURNEY",
    "base64": "data:image/png;base64,xxx",
    "accountFilter": {
        "channelId": "",
        "instanceId": "",
        "modes": [
            ""
        ],
        "remark": "",
        "remix": "",
        "remixAutoConsidered": ""
    },
    "notifyHook": "",
    "state": ""
}'

返回响应

🟢200成功
application/json
Body
code
integer <int32>
可选
状态码: 1(提交成功), 22(排队中), other(错误)
示例值:
1
description
string 
描述
可选
示例值:
提交成功
properties
object 
扩展字段
可选
result
string 
任务ID
可选
示例值:
1320098173412546
示例
{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}
🟠404失败
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
修改于 2024-05-30 09:04:15
上一页
文生图
下一页
提交Modal
Built with