铭电API
  1. 任务提交
铭电API
  • 发出请求
  • 模型接口
    • 聊天接口(Chat)
      • 聊天接口
      • gpts
      • gemini-pro
      • gpt-4-all(分析图片)
      • gpt-4-vision-preview
    • 自动补全接口(Completions)
      • 内容补全接口
    • 图像接口(Images)
      • Midjourney
        • 补充 - 其他参数以及回调
        • InsightFace任务提交
          • 提交swap_face任务
        • 任务提交
          • 执行动作
            POST
          • 提交Blend任务
            POST
          • 提交Describe任务
            POST
          • 提交Imagine任务
            POST
          • 提交Modal
            POST
          • 提交Shorten任务
            POST
        • 任务查询
          • 查询所有任务
          • 根据ID列表查询任务
          • 分页查询任务
          • 查询任务队列
          • 取消任务
          • 指定ID获取任务
          • 获取任务图片的seed(需设置mj或niji的私信ID)
      • DALL·E 3
        POST
      • Stable-Diffusion
        POST
      • gpt-4-all(生成图片)
        POST
    • 向量生成接口(Embeddings)
      • 创建嵌入
    • 音频接口(Audio)
      • 创建转录
      • 创建翻译
      • TTS文本转语音
  • 帮助中心
    • 常见问题及解决办法
  1. 任务提交

提交Describe任务

POST
https://gpt.mnxcc.com/mj/submit/describe
任务提交

请求参数

Body 参数application/json
botType
enum<string> 
可选
bot类型,mj(默认)或niji
枚举值:
MID_JOURNEYNIJI_JOURNEY
示例值:
MID_JOURNEY
base64
string 
图片base64
必需
示例值:
data:image/png;base64,xxx
accountFilter
object (账号筛选条件) 
可选
instanceId
string 
账号实例ID
可选
modes
array[string]
账号模式
可选
枚举值:
RELAXFASTTURBO
remix
boolean 
账号是否remix
可选
remixAutoConsidered
boolean 
可选
账号过滤时,remix自动提交 视为 账号的remix为false
notifyHook
string 
可选
回调地址, 为空时使用全局notifyHook
state
string 
自定义参数
可选
示例
{
  "botType": "MID_JOURNEY",
  "base64": "data:image/png;base64,xxx",
  "accountFilter": {
    "instanceId": "string",
    "modes": [
      "RELAX"
    ],
    "remix": true,
    "remixAutoConsidered": true
  },
  "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://gpt.mnxcc.com/mj/submit/describe' \
--header 'Content-Type: application/json' \
--data-raw '{
    "botType": "MID_JOURNEY",
    "base64": "data:image/png;base64,xxx",
    "accountFilter": {
        "instanceId": "string",
        "modes": [
            "RELAX"
        ],
        "remix": true,
        "remixAutoConsidered": true
    },
    "notifyHook": "string",
    "state": "string"
}'

返回响应

🟢200OK
application/json
Body
code
integer <int32>
必需
状态码: 1(提交成功), 22(排队中), other(错误)
示例值:
1
description
string 
描述
必需
示例值:
提交成功
properties
object 
扩展字段
可选
result
string 
任务ID
可选
示例值:
1320098173412546
示例
{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
上一页
提交Blend任务
下一页
提交Imagine任务
Built with