API reference
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  1. Task Submit
API reference
🇺🇸 English
  • 🇨🇳 Chinese
  • 🇺🇸 English
  • Chat Models
    • Chat
      • Create chat completion
      • vision
    • OpenAI-Realtime
    • Completions
      • Instruct
    • Audio
      • Transcriptions
      • Translations
      • Speech
    • Image generation
      • DALL·E 3
    • Embeddings
      • Create
    • Models
      • model list
    • Help
      • 常见问题及解决办法
  • Anthropic
    • Anthropic Claude
      POST
  • Suno
    • Generate music
      POST
    • Generate lyrics
      POST
    • Upload music
      POST
    • Music concat
      POST
    • Fetch task
      GET
    • Fetch batch tasks
      POST
  • Udio
    • Generate music
      POST
    • Fetch task
      GET
  • Midjourney API
    • Quick
    • Task Submit
      • Imagine
        POST
      • Action
        POST
      • Modal
        POST
      • Blend
        POST
      • Describe
        POST
      • Shorten
        POST
      • Upload discord
        POST
    • Get Task
      • Fetch task by ids
      • Fetch task by id
      • Get seed
  • Flux
    • Official
      • Generate
      • Finetune
      • Fetch task
    • OpenAI Dalle3
  • Recraft
    • Official
      • Generate Image
      • Vectorize Image
      • Remove Background
      • Clarity Upscale
      • Generative Upscale
      • Create style
    • OpenAI Dalle3
  • Ideogram
    • Generate
    • Remix
    • Edit
    • Upscale
    • Describe
  • Luma
    • Official
      • Generate
      • Fetch task
    • Own format
      • Submit
        • Generate
        • Get video of no mark
        • 扩展视频
      • Get task
        • Get task
        • Get batch task
  • Runway
    • Official
      • image to video
      • get task
    • reverse
      • text to video
      • image to video
      • video2video
      • Act-one
      • Get task
  • Kling-API
    • Callback
    • Generate image
    • Text 2 Video
    • Image 2 Video
    • Video extend
    • Get task
    • lip-sync
    • kolors-virtual-try-on
  • Replicate
    • Generate
    • Get
  • MiniMax
    • Generate video
    • Get task
    • Get file
  1. Task Submit

Blend

POST
/mj/submit/blend
任务提交
Last modified:2025-02-05 11:20:51

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
Authorization
string 
optional
Default:
{{YOUR_API_KEY}}
Body Params application/json
botType
enum<string> 
optional
bot类型,mj(默认)或niji
Allowed values:
MID_JOURNEYNIJI_JOURNEY
Example:
MID_JOURNEY
base64Array
array[string]
required
图片base64数组
Example:
["data:image/png;base64,xxx1","data:image/png;base64,xxx2"]
dimensions
enum<string> 
optional
比例: PORTRAIT(2:3); SQUARE(1:1); LANDSCAPE(3:2)
Allowed values:
PORTRAITSQUARELANDSCAPE
Example:
SQUARE
notifyHook
string 
optional
回调地址, 为空时使用全局notifyHook
state
string 
optional
自定义参数
Example
{
  "botType": "MID_JOURNEY",
  "base64Array": [
    "data:image/png;base64,xxx1",
    "data:image/png;base64,xxx2"
  ]
}

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 -g --request POST '/mj/submit/blend' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
  "botType": "MID_JOURNEY",
  "base64Array": [
    "data:image/png;base64,xxx1",
    "data:image/png;base64,xxx2"
  ]
}'

Responses

🟢200OK
application/json
Body
code
integer <int32>
required
状态码: 1(提交成功), 22(排队中), other(错误)
Example:
1
description
string 
required
描述
Example:
提交成功
properties
object 
optional
扩展字段
result
string 
optional
任务ID
Example:
1320098173412546
Example
{
  "code": 1,
  "description": "提交成功",
  "properties": {},
  "result": 1320098173412546
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Previous
Modal
Next
Describe
Built with