Skip to content
中文

Midjourney Integration Guide

Midjourney Integration Guide

Provider Notes

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

This section contains endpoint-specific behavior, parameters, or usage notes for this API. This section contains endpoint-specific behavior, parameters, or usage notes for this API.

Provider Notes

Provider Notes

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

Provider Notes

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

Provider Notes

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

Provider Notes

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

Provider Notes

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

curl --request post
--url {{BASE_URL}}/fast/mj/submit/imagine
--header 'Authorization: Bearer sk-your-key'
-H "Content-Type: application/json"
--data '{
"base64Array": [],
"prompt": "black cat"
}'

Provider Notes

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

curl --request GET
--url {{BASE_URL}}/fast/mj/task/1320098173412546/fetch
--header 'Authorization: Bearer sk-your-key'
-H "Content-Type: application/json"

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

{
"id": "1320098173412546",
"action": "IMAGINE",
"prompt": "cat --v 6.1",
"promptEn": "cat --v 6.1",
"description": "Submit success",
"state": "",
"submitTime": 1741531578038,
"startTime": 1741531580190,
"finishTime": 1741531608566,
"imageUrl": "https://img.innk.cc/attachments/1320066655572987907/1348306030429470862/adam_rivera4952_cat_26d56b92-4ed6-45e2-8561-563797923135.png?ex=67cefb57\u0026is=67cda9d7\u0026hm=b87e6b24e4bc3c2f1584b72154075607d6115602d0e5c7777e6637c29b8d3bd5\u0026",
"status": "SUCCESS",
"progress": "100%",
"failReason": "",
"properties": {
"botType": "MID_JOURNEY",
"discordChannelId": 8774786694361674000,
"discordInstanceId": 7415633538733103000,
"finalPrompt": "cat --v 6.1 --sref \u003chttps://s.mj.run/ktqQpnwPoPk\u003e",
"flags": 0,
"messageContent": "**cat --v 6.1 --sref \u003chttps://s.mj.run/ktqQpnwPoPk\u003e** - \u003c@1343445981269594182\u003e (relaxed)",
"messageHash": "26d56b92-4ed6-45e2-8561-563797923135",
"messageId": "1348306030706036789",
"nonce": "1619855216344100864",
"notifyHook": "",
"progressMessageId": "1348305922325479495"
},
"buttons": [
{
"customId": "MJ::JOB::upsample::1::26d56b92-4ed6-45e2-8561-563797923135",
"emoji": "",
"label": "U1",
"style": 2,
"type": 2
},
{
"customId": "MJ::JOB::upsample::2::26d56b92-4ed6-45e2-8561-563797923135",
"emoji": "",
"label": "U2",
"style": 2,
"type": 2
},
{
"customId": "MJ::JOB::upsample::3::26d56b92-4ed6-45e2-8561-563797923135",
"emoji": "",
"label": "U3",
"style": 2,
"type": 2
},
{
"customId": "MJ::JOB::upsample::4::26d56b92-4ed6-45e2-8561-563797923135",
"emoji": "",
"label": "U4",
"style": 2,
"type": 2
},
{
"customId": "MJ::JOB::reroll::0::26d56b92-4ed6-45e2-8561-563797923135::SOLO",
"emoji": "🔄",
"label": "",
"style": 2,
"type": 2
},
{
"customId": "MJ::JOB::variation::1::26d56b92-4ed6-45e2-8561-563797923135",
"emoji": "",
"label": "V1",
"style": 2,
"type": 2
},
{
"customId": "MJ::JOB::variation::2::26d56b92-4ed6-45e2-8561-563797923135",
"emoji": "",
"label": "V2",
"style": 2,
"type": 2
},
{
"customId": "MJ::JOB::variation::3::26d56b92-4ed6-45e2-8561-563797923135",
"emoji": "",
"label": "V3",
"style": 2,
"type": 2
},
{
"customId": "MJ::JOB::variation::4::26d56b92-4ed6-45e2-8561-563797923135",
"emoji": "",
"label": "V4",
"style": 2,
"type": 2
}
]
}

Provider Notes

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

{
"customId": "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011",
"taskId": "14001934816969359"
}

Provider Notes

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

Provider Notes

Provider Notes

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

Request Method: POST

Request Data Type: application/json

Response Data Type: /

Example Request:
{
"base64Array": [],
"prompt": "Cat"
}
Request ParametersNotes:
Parameter NameParameter DescriptionRequest TypeRequiredData Typeschema
imagineDTOimagineDTObodytrueImagineProvider noteImagineProvider note
base64ArrayBase64 array of reference imagesfalsearraystring
promptPrompttruestring
Provider Notes
Status CodeNotesschema
200OKProvider note
401Unauthorized
403Forbidden
404Not Found
Provider Notes
Parameter NameParameter DescriptionTypeschema
codeStatus Code: 1(Submission succeeded), 22(Provider noteinteger(int32)integer(int32)
descriptionDescriptionstring
propertiesExtended Fieldsobject
resultTask IDstring
Example Response:
{
"code": 1,
"description": "Submission succeeded",
"properties": {},
"result": 1320098173412546
}

Provider Notes

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

Request Method: POST

Request Data Type: application/json

Response Data Type: /

Example Request:
{
"base64Array": [
"data:image/png;base64,xxx1",
"data:image/png;base64,xxx2"
],
"dimensions": "SQUARE"
}
Request ParametersNotes:
Parameter NameParameter DescriptionRequest TypeRequiredData Typeschema
blendDTOblendDTObodytrueBlendProvider noteBlendProvider note
base64ArrayBase64 array of imagestruearraystring
dimensionsProvider notefalsestring
Example Response:
{
"code": 1,
"description": "Submission succeeded",
"properties": {},
"result": 1320098173412546
}

Provider Notes

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

Request Method: POST

Request Data Type: application/json

Response Data Type: /

Example Request:
{
"base64": "data:image/png;base64,xxx"
}
Request ParametersNotes:
Parameter NameParameter DescriptionRequest TypeRequiredData Typeschema
describeDTOdescribeDTObodytrueDescribeProvider noteDescribeProvider note
base64imagebase64truestring
Example Response:
{
"code": 1,
"description": "Submission succeeded",
"properties": {},
"result": 1320098173412546
}

Provider Notes

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

Request Method: POST

Request Data Type: application/json

Response Data Type: /

Example Request:
{
"prompt": "Cat"
}
Request ParametersNotes:
Parameter NameParameter DescriptionRequest TypeRequiredData Typeschema
shortenDTOshortenDTObodytrueShortenProvider noteShortenProvider note
promptPrompttruestring
Example Response:
{
"code": 1,
"description": "Submission succeeded",
"properties": {},
"result": 1320098173412546
}

Provider Notes

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

Request Method: POST

Request Data Type: application/json

Response Data Type: /

Example Request:
{
"customId": "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011",
"taskId": "14001934816969359"
}
Request ParametersNotes:
Parameter NameParameter DescriptionRequest TypeRequiredData Typeschema
actionDTOactionDTObodytrueProvider noteProvider note
customIdProvider notetruestring
taskIdTask IDtruestring
Example Response:
{
"code": 1,
"description": "Submission succeeded",
"properties": {},
"result": 1320098173412546
}

Provider Notes

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

Request Method: POST

Request Data Type: application/json

Response Data Type: /

Example Request:
{
"maskBase64": "",
"prompt": "",
"taskId": "14001934816969359"
}
Request ParametersNotes:
Parameter NameParameter DescriptionRequest TypeRequiredData Typeschema
modalDTOmodalDTObodytrueModalProvider noteModalProvider note
maskBase64Base64 mask for inpaintingfalsestring
promptPromptfalsestring
taskIdTask IDtruestring
Example Response:
{
"code": 1,
"description": "Submission succeeded",
"properties": {},
"result": 1320098173412546
}

Provider Notes

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

Request Method: GET

Request Data Type: application/x-www-form-urlencoded

Response Data Type: /

Example Request:
curl --request GET
--url {{BASE_URL}}/fast/mj/task/1320098173412546/fetch
--header 'Authorization: Bearer sk-your-key'
-H "Content-Type: application/json"
Request ParametersNotes:
Parameter NameParameter DescriptionRequest TypeRequiredData Typeschema
idTask IDpathtruestring
Provider Notes
Parameter NameParameter DescriptionTypeschema
actionProvider notestring
buttonsProvider notearray
customIdProvider notestring
emojiProvider notestring
labelProvider notestring
styleProvider noteinteger(int32)
typeProvider noteinteger(int32)
descriptionProvider notestring
failReasonFailureProvider notestring
finishTimeProvider noteinteger(int64)integer(int64)
idIDstring
imageUrlimageurlstring
progressProvider notestring
promptPromptstring
promptEnPrompt in Englishstring
propertiesExtended Fieldsobject
startTimeProvider noteinteger(int64)integer(int64)
stateCustom Parametersstring
statusProvider notestring
submitTimeProvider noteinteger(int64)integer(int64)
Example Response:
{
"action": "",
"buttons": [
{
"customId": "",
"emoji": "",
"label": "",
"style": 0,
"type": 0
}
],
"description": "",
"failReason": "",
"finishTime": 0,
"id": "",
"imageUrl": "",
"progress": "",
"prompt": "",
"promptEn": "",
"properties": {},
"startTime": 0,
"state": "",
"status": "",
"submitTime": 0
}