- Quick Start
- OpenAI API
- Midjourney Open API
- About Midjourney and Prices
- Submit Imagine TaskPOST
- Submit Action Task(All associated button actions UPSCALE; VARIATION; REROLL; ZOOM, etc.)POST
- Submit Blend TaskPOST
- Submit Modal TaskPOST
- Submit Describe TaskPOST
- Submit Shorten TaskPOST
- Submit FaceSwap TaskPOST
- Upload Files to DiscordPOST
- Specify ID Query TaskGET
- Specify ID Query Task (fetch)GET
- Specify the ID List Query TaskGET
- Obtain the seed of the Task ImageGET
- Luma video
- Suno Music
- Anthropic Claude
- Flux API
Specify ID Query Task
Main URLs
Main URLs
GET
https://api.maxapi.ai
Switch modes by modifying request uri, for example:
1.
2.
3.
Request
Path Params
id
string
required
Header Params
Authorization
string
optional
Example:
Bearer sk-V3ESFCWr3ZLemf878bC71eCcF36c483a8f448a02487dAdC7
Body Params application/x-www-form-urlencoded
object {0}
Request 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 --request GET 'https://api.maxapi.ai/mj-relax/mj/query/task/' \
--header 'Authorization: Bearer sk-V3ESFCWr3ZLemf878bC71eCcF36c483a8f448a02487dAdC7'
Responses
🟢200成功
application/json
Body
statusCode
integer
required
message
string
required
data
object
required
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
required
actions
array [object {3}]
此任务的附加可执行动作
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:14