xfusionai
  1. Midjourney Open API
xfusionai
  • 产品介绍
  • 模型价格
  • 快速开始
  • Azure语音服务
  • Azure翻译服务
  • Azure open AI
  • 常见问题
  • 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
    • Specify ID Query Task (fetch)
      GET
    • Specify the ID List Query Task
      GET
    • Obtain the seed of the Task Image
      GET
    • Specify ID Query Task
      GET
    • 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
    • Submit Action Task(All associated button actions UPSCALE; VARIATION; REROLL; ZOOM, etc.)
      POST
  • Luma video
    • Luma Task Creation
      POST
    • Luma Expand Video
      POST
    • Luma Query Task
      GET
    • Luma Download video
      GET
  • Suno Music
    • Generate music
    • Query task
  • Anthropic Claude
    • Claude Chat Completion
  • Flux API
    • Create Image
  1. Midjourney Open API

Specify ID Query Task (fetch)

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
GET
/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

请求参数

Path 参数
task_id
string 
必需
Header 参数
Authorization
string 
可选
示例值:
Bearer sk-V3ESFCWr3ZLemf878bC71eCcF36c483a8f448a02487dAdC7
Body 参数application/x-www-form-urlencoded
object {0}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://dev-cn.your-api-server.com/mj-relax/mj/task//fetch'

返回响应

🟢200成功
application/json
Body
statusCode
integer 
必需
message
string 
必需
data
object 
必需
taskId
integer 
任务ID
必需
taskType
string 
任务类型
必需
status
string 
任务状态
必需
action
string 
任务动作
必需
progress
string 
任务进度
必需
description
string 
任务描述
必需
prompt
string 
Prompt
必需
failReason
null 
失败原因
必需
submitTime
string 
提交时间
必需
startTime
string 
开始时间
必需
finishTime
string 
完成时间
必需
webhookUrl
string 
回调地址
必需
imageDcUrl
string 
图片地址
必需
imageS3Url
null 
必需
actions
array [object {3}] 
此任务的附加可执行动作
必需
示例
{
    "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": ""
    }
}
修改于 2024-11-09 17:14:40
上一页
Submit Imagine Task
下一页
Specify the ID List Query Task
Built with