1. Midjourney Open API
MaxAPI Docs
  • Quick Start
  • OpenAI API
    • About OpenAI Compatible API
    • Chat
      • Chat Completion
    • Images
      • Create Image
    • Audio
      • Text To Speech API
  • Midjourney Open API
    • About Midjourney and Prices
    • Submit Imagine Task
      POST
    • Submit Action Task(All associated button actions UPSCALE; VARIATION; REROLL; ZOOM, etc.)
      POST
    • Submit Blend Task
      POST
    • Submit Modal Task
      POST
    • Submit Describe Task
      POST
    • Submit Shorten Task
      POST
    • Submit FaceSwap Task
      POST
    • Upload Files to Discord
      POST
    • Specify ID Query Task
      GET
    • Specify ID Query Task (fetch)
      GET
    • Specify the ID List Query Task
      GET
    • Obtain the seed of the Task Image
      GET
  • Luma video
    • Luma Task Creation
      POST
    • Luma Expand Video
      POST
    • Luma Query Task
      GET
    • Luma Download video
      GET
  • Suno Music
    • Generate music
      POST
    • Query task
      GET
  • Anthropic Claude
    • Claude Chat Completion
      POST
  • Flux API
    • Create Image
  • Schemas
    • Chat
      • ChatSession
      • ChatMessage
      • ChatGPTParams
      • UserPrompts
      • OnlinePrompts
    • User
      • User
      • UserLog
      • UserToken-D
    • Pay
      • UserOrder
      • UserBill
    • System
      • OpenAIKey
      • SystemOpenAIKey
      • Settings
      • SmtpSettings
      • MailDto
    • Draw
      • AIImages
      • MjImagineQueryResult
    • InteralDataModelDefine
    • Schemas
      • Blend提交参数
      • CheckActivationDTO
      • CustomAccountFilter
      • Describe提交参数
      • Discord账号
      • Filter
      • Imagine提交参数
      • GlobalVersionDTO
      • Map«string,object»
      • Message«Discord账号»
      • Message«List«string»»
      • Message«Map«string,object»»
      • Message«Void»
      • Message«string»
      • Modal提交参数
      • Option
      • Pageable
      • Page«Map«string,object»»
      • Page«任务»
      • Shorten提交参数
      • Sort
      • SwapFace提交参数
      • TaskQueryDTO
      • 任务
      • 任务查询参数
      • 变化任务提交参数
      • 变化任务提交参数-simple
      • 可执行按钮
      • 可执行按钮_1
      • 执行动作参数
      • 提交结果
      • 文件上传参数
      • 激活服务参数
      • 账号修改参数
      • 账号创建参数
      • 账号查询参数
      • 账号筛选条件
    • Payload
    • PubResponse
  1. Midjourney Open API

Specify ID Query Task (fetch)

GET
https://api.maxapi.ai/mj-relax/mj/task/{task_id}/fetch
hint:
Switch modes by modifying request uri, for example:
1.
base_url/mj-relax/mj/task/{task_id}/fetch
2.
base_url/mj-fast/mj/task/{task_id}/fetch
3.
base_url/mj-turbo/mj/task/{task_id}/fetch

Request

Path Params

Header Params

Body Params application/x-www-form-urlencoded

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.maxapi.ai/mj-relax/mj/task//fetch' \
--header 'Authorization: Bearer sk-V3ESFCWr3ZLemf878bC71eCcF36c483a8f448a02487dAdC7'

Responses

🟢200成功
application/json
Bodyapplication/json

Example
{
    "id": "1710761946823501",
    "action": "IMAGINE",
    "customId": "",
    "botType": "",
    "prompt": "a sunny boy",
    "promptEn": "a sunny boy --relax",
    "description": "submit_success",
    "state": "",
    "submitTime": 1710761946823,
    "startTime": 1710761948586,
    "finishTime": 1710762009881,
    "imageUrl": "https://www.doublegpt.io/mj/image/1710761946823501",
    "status": "SUCCESS",
    "progress": "100%",
    "failReason": "",
    "buttons": [
        {
            "customId": "MJ::JOB::upsample::1::67205abe-ad76-4055-b496-b958970f92f2",
            "emoji": "",
            "label": "U1",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::upsample::2::67205abe-ad76-4055-b496-b958970f92f2",
            "emoji": "",
            "label": "U2",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::upsample::3::67205abe-ad76-4055-b496-b958970f92f2",
            "emoji": "",
            "label": "U3",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::upsample::4::67205abe-ad76-4055-b496-b958970f92f2",
            "emoji": "",
            "label": "U4",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::reroll::0::67205abe-ad76-4055-b496-b958970f92f2::SOLO",
            "emoji": "🔄",
            "label": "",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::variation::1::67205abe-ad76-4055-b496-b958970f92f2",
            "emoji": "",
            "label": "V1",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::variation::2::67205abe-ad76-4055-b496-b958970f92f2",
            "emoji": "",
            "label": "V2",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::variation::3::67205abe-ad76-4055-b496-b958970f92f2",
            "emoji": "",
            "label": "V3",
            "type": 2,
            "style": 2
        },
        {
            "customId": "MJ::JOB::variation::4::67205abe-ad76-4055-b496-b958970f92f2",
            "emoji": "",
            "label": "V4",
            "type": 2,
            "style": 2
        }
    ],
    "maskBase64": "",
    "properties": {
        "finalPrompt": "a sunny boy --relax --s 250 --style raw",
        "finalZhPrompt": ""
    }
}
Modified at 2024-07-24 18:08:21
Previous
Specify ID Query Task
Next
Specify the ID List Query Task
Built with