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 Imagine Task

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/mj-relax/mj/submit/imagine
hint:
Switch modes by modifying request uri, for example:
1.
base_url/mj-relax/mj/submit/imagine
2.
base_url/mj-fast/mj/submit/imagine
3.
base_url/mj-turbo/mj/submit/imagine

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Header 参数
Authorization
string 
可选
示例值:
Bearer sk-V3ESFCWr3ZLemf878bC71eCcF36c483a8f448a02487dAdC7
Body 参数application/json
object {0}
示例
{
  "base64Array": [],
  "notifyHook": "",
  "prompt": "a cute cat",
  "state": ""
}

示例代码

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/imagine' \
--header 'Content-Type: application/json' \
--data-raw '{
  "base64Array": [],
  "notifyHook": "",
  "prompt": "a cute cat",
  "state": ""
}'

返回响应

🟢200成功
application/json
Body
statusCode
integer 
必需
200为成功,400为失败
message
string 
必需
data
integer 
任务ID
必需
示例
{
    "statusCode": 200,
    "message": "Success",
    "data": 2
}
修改于 2024-11-09 17:14:40
上一页
About Midjourney and Prices
下一页
Specify ID Query Task (fetch)
Built with