NO.1 API
  1. MidJourney
NO.1 API
  • 前言(必读)
  • OpenAI官方库使用教程
  • 聊天模型(Chat)
    • 聊天接口(通用)
      POST
    • 列出可用模型
      GET
    • 聊天接口(o1系列模型)
      POST
    • 聊天补全
      POST
    • Claude3+(全系列)
      POST
    • Gemini1.5+(全系列)
      POST
    • GPTs
      POST
    • gpt-4-all 文件分析
      POST
    • gpt-4o-all 文件分析
      POST
    • 聊天接口(图片分析)
      POST
  • 向量嵌入
    • 创建嵌入
  • 音频模型(Audio)
    • 文字转语音 TTS
    • 语音转文字 whisper-1
    • 创建翻译
  • 绘画模型(Painting)
    • MidJourney
      • 提交模式与状态码说明
      • 任务:换脸 swap_face
        POST
      • 任务:图生图 Blend
        POST
      • 任务:文生图、文图生图 Imagine
        POST
      • 任务:提示词缩短 Shorten
        POST
      • 上传:上传图片到Discord
        POST
      • 任务:局部重绘 Modal
        POST
      • 任务:绘图变化
        POST
      • 任务:执行动作
        POST
      • 任务:绘图变化-simple
        POST
      • 任务:图生文 Describe
        POST
      • 查询:根据ID列表查任务
        POST
      • 查询:根据ID查询任务
        GET
      • 查询:根据ID获取图片
        GET
      • 查询:根据ID获取图片 Seed
        GET
    • Dalle
      • 图像生成
      • 图像编辑
    • stable-diffusion
      POST
    • Flux Ai
      POST
  • 音乐创作(suno)
    • 接口介绍
    • 任务:生成歌曲
    • 聊天方式:生成歌曲
    • 任务:生成歌词
    • 查询:批量查询任务
    • 查询:单个任务
  • 视频模型(Video)
    • 视频模型说明
    • 快手可灵AI
      • 查询:单个任务
      • 任务:图像生成
      • 任务:文生视频
      • 任务:图生视频
    • luma视频
      • 任务:生成视频
      • 任务:拓展视频
      • 获取:无水印视频
      • 查询:单个任务
      • 查询:批量查询任务
    • runway视频
      • 任务:生成视频.gen2
      • 任务:生成视频.gen3
      • 查询:单个任务
      • 上传:参考图 A认证
      • 上传:参考图 C 获取
      • 任务:拓展视频
  • 更多接口开发中...
  1. MidJourney

查询:根据ID列表查任务

POST
/mj/task/list-by-condition

请求参数

Body 参数application/json
ids
array[string]
任务ID数组
可选
示例
{
  "ids": [
    "1725018853016218",
    "1725017986212425"
  ]
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/mj/task/list-by-condition' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ids": [
        "1725018853016218",
        "1725017986212425"
    ]
}'

返回响应

🟢200成功
application/json
Body
array of:
id
string 
任务ID
可选
action
enum<string> 
任务类型
可选
枚举值:
IMAGINEUPSCALEVARIATIONREROLLDESCRIBEBLEND
customId
string 
可选
botType
string 
可选
prompt
string 
提示词
可选
promptEn
string 
提示词-英文
可选
description
string 
任务描述
可选
state
string 
自定义参
可选
submitTime
integer 
提交时间
可选
startTime
integer 
开始时间
可选
finishTime
integer 
结束时间
可选
imageUrl
string 
图片地址
可选
status
enum<string> 
任务状态
可选
枚举值:
NOT_STARTSUBMITTEDIN_PROGRESSFAILURESUCCESS
progress
string 
任务进度
可选
failReason
string 
失败原因
可选
buttons
array [object {5}] 
必需
customId
string 
Action 提交时使用
必需
emoji
string 
必需
label
string 
MJ 显示的图标
必需
type
integer 
必需
style
integer 
必需
maskBase64
string 
可选
properties
object 
可选
finalPrompt
string 
必需
finalZhPrompt
string 
必需
示例
[
  {
    "id": "1724957502830765",
    "action": "IMAGINE",
    "customId": "",
    "botType": "",
    "prompt": "a white dog",
    "promptEn": "a white dog",
    "description": "Submit success",
    "state": "",
    "submitTime": 1724957502830,
    "startTime": 1724957503801,
    "finishTime": 1724957529477,
    "imageUrl": "http://localhost:3001/mj/image/1724957502830765",
    "status": "SUCCESS",
    "progress": "100%",
    "failReason": "",
    "buttons": [
      {
        "customId": "MJ::JOB::upsample::1::7ca4f5b2-d6a0-4c44-8ba9-5635bf116ec3",
        "emoji": "",
        "label": "U1",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::upsample::2::7ca4f5b2-d6a0-4c44-8ba9-5635bf116ec3",
        "emoji": "",
        "label": "U2",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::upsample::3::7ca4f5b2-d6a0-4c44-8ba9-5635bf116ec3",
        "emoji": "",
        "label": "U3",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::upsample::4::7ca4f5b2-d6a0-4c44-8ba9-5635bf116ec3",
        "emoji": "",
        "label": "U4",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::reroll::0::7ca4f5b2-d6a0-4c44-8ba9-5635bf116ec3::SOLO",
        "emoji": "🔄",
        "label": "",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::variation::1::7ca4f5b2-d6a0-4c44-8ba9-5635bf116ec3",
        "emoji": "",
        "label": "V1",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::variation::2::7ca4f5b2-d6a0-4c44-8ba9-5635bf116ec3",
        "emoji": "",
        "label": "V2",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::variation::3::7ca4f5b2-d6a0-4c44-8ba9-5635bf116ec3",
        "emoji": "",
        "label": "V3",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::variation::4::7ca4f5b2-d6a0-4c44-8ba9-5635bf116ec3",
        "emoji": "",
        "label": "V4",
        "type": 2,
        "style": 2
      }
    ],
    "maskBase64": "",
    "properties": {
      "finalPrompt": "a white dog",
      "finalZhPrompt": ""
    }
  },
  {
    "id": "1724962644658552",
    "action": "IMAGINE",
    "customId": "",
    "botType": "",
    "prompt": "a white dog",
    "promptEn": "a white dog",
    "description": "Submit success",
    "state": "",
    "submitTime": 1724962644658,
    "startTime": 1724962645477,
    "finishTime": 1724962680696,
    "imageUrl": "http://localhost:3001/mj/image/1724962644658552",
    "status": "SUCCESS",
    "progress": "100%",
    "failReason": "",
    "buttons": [
      {
        "customId": "MJ::JOB::upsample::1::ab498c4a-3517-4fe1-a4b3-fa87d03e897f",
        "emoji": "",
        "label": "U1",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::upsample::2::ab498c4a-3517-4fe1-a4b3-fa87d03e897f",
        "emoji": "",
        "label": "U2",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::upsample::3::ab498c4a-3517-4fe1-a4b3-fa87d03e897f",
        "emoji": "",
        "label": "U3",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::upsample::4::ab498c4a-3517-4fe1-a4b3-fa87d03e897f",
        "emoji": "",
        "label": "U4",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::reroll::0::ab498c4a-3517-4fe1-a4b3-fa87d03e897f::SOLO",
        "emoji": "🔄",
        "label": "",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::variation::1::ab498c4a-3517-4fe1-a4b3-fa87d03e897f",
        "emoji": "",
        "label": "V1",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::variation::2::ab498c4a-3517-4fe1-a4b3-fa87d03e897f",
        "emoji": "",
        "label": "V2",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::variation::3::ab498c4a-3517-4fe1-a4b3-fa87d03e897f",
        "emoji": "",
        "label": "V3",
        "type": 2,
        "style": 2
      },
      {
        "customId": "MJ::JOB::variation::4::ab498c4a-3517-4fe1-a4b3-fa87d03e897f",
        "emoji": "",
        "label": "V4",
        "type": 2,
        "style": 2
      }
    ],
    "maskBase64": "",
    "properties": {
      "finalPrompt": "a white dog",
      "finalZhPrompt": ""
    }
  }
]
上一页
任务:图生文 Describe
下一页
查询:根据ID查询任务
Built with