MaxAPI Docs
  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
  1. Midjourney Open API

Submit Action Task(All associated button actions UPSCALE; VARIATION; REROLL; ZOOM, etc.)

Developing
Main URLs
https://api.maxapi.ai
Main URLs
https://api.maxapi.ai
POST
https://api.maxapi.ai
/mj-relax/mj/submit/action
hint:
Switch modes by modifying request uri, for example:

Request

Header Params
Authorization
string 
optional
Example:
Bearer sk-V3ESFCWr3ZLemf878bC71eCcF36c483a8f448a02487dAdC7
Body Params application/json
customId
string 
required
action identifier
Example:
MJ::JOB::upsample::3::67205abe-ad76-4055-b496-b958970f92f2
taskId
string 
required
Task ID
Example:
1710761946823501
notifyHook
string 
optional
Callback address, use global notifyHook when empty
state
string 
optional
Custom parameters
Example
{
    "customId": "MJ::JOB::upsample::3::67205abe-ad76-4055-b496-b958970f92f2",
    "taskId": "1710761946823501",
    "notifyHook": "string",
    "state": "string"
}

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 POST 'https://api.maxapi.ai/mj-relax/mj/submit/action' \
--header 'Authorization: Bearer sk-V3ESFCWr3ZLemf878bC71eCcF36c483a8f448a02487dAdC7' \
--header 'Content-Type: application/json' \
--data-raw '{
    "customId": "MJ::JOB::upsample::3::67205abe-ad76-4055-b496-b958970f92f2",
    "taskId": "1710761946823501",
    "notifyHook": "string",
    "state": "string"
}'

Responses

🟢200成功
application/json
Body
code
string 
required
Status code: 1 (submission successful), 21 (existing), 22 (queuing), other (error)
Example:
1
description
string 
required
describe
Example:
Submitted successfully
properties
string 
optional
extended field
result
string 
optional
Task ID
Example:
1320098173412546
Example
{
    "code": "1",
    "description": "Submitted successfully",
    "properties": "string",
    "result": "1320098173412546"
}
Modified at 2024-07-24 18:10:31
Previous
Submit Imagine Task
Next
Submit Blend Task
Built with