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

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

开发中
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/mj-relax/mj/submit/action
hint:
Switch modes by modifying request uri, for example:

请求参数

Header 参数
Authorization
string 
可选
示例值:
Bearer sk-V3ESFCWr3ZLemf878bC71eCcF36c483a8f448a02487dAdC7
Body 参数application/json
customId
string 
必需
action identifier
示例值:
MJ::JOB::upsample::3::67205abe-ad76-4055-b496-b958970f92f2
taskId
string 
Task ID
必需
示例值:
1710761946823501
notifyHook
string 
可选
Callback address, use global notifyHook when empty
state
string 
可选
Custom parameters
示例
{
    "customId": "MJ::JOB::upsample::3::67205abe-ad76-4055-b496-b958970f92f2",
    "taskId": "1710761946823501",
    "notifyHook": "string",
    "state": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/mj-relax/mj/submit/action' \
--header 'Content-Type: application/json' \
--data-raw '{
    "customId": "MJ::JOB::upsample::3::67205abe-ad76-4055-b496-b958970f92f2",
    "taskId": "1710761946823501",
    "notifyHook": "string",
    "state": "string"
}'

返回响应

🟢200成功
application/json
Body
code
string 
必需
Status code: 1 (submission successful), 21 (existing), 22 (queuing), other (error)
示例值:
1
description
string 
describe
必需
示例值:
Submitted successfully
properties
string 
可选
extended field
result
string 
Task ID
可选
示例值:
1320098173412546
示例
{
    "code": "1",
    "description": "Submitted successfully",
    "properties": "string",
    "result": "1320098173412546"
}
修改于 2024-11-09 17:14:40
上一页
Upload Files to Discord
下一页
Luma Task Creation
Built with