Modellss Docs
  1. Task Submission
  • Send Request
  • Model List and Price
  • Model APIs
    • Chat API
      • Chat
      • GPTs
      • gemini-pro
      • gpt-4-all(Image)
      • gpt-4-vision-preview
    • Chat Completions API
      • Chat Completions API
    • Image API
      • Midjourney
        • InsightFace task submission
          • Submit swap_face task
        • Task Submission
          • Perform Action
            POST
          • Submit Blend Task
            POST
          • Submit a Describe task
            POST
          • Submit a Imagine task
            POST
          • Submit Modal
            POST
          • Submit Shorten Task
            POST
        • Task Inquiry
          • Inquire about all tasks
          • Inquire about tasks based on a list of IDs
          • Paged query for tasks
          • Inquire about the task queue
          • Cancel task
          • Retrieve task with specified ID
          • Get the seed for the task image
      • DALL·E 3
        POST
      • Stable Diffusion
        POST
      • MJ Chat
        POST
      • gpt-4-all(generate images)
        POST
    • Embedding Vector Generation Interface (Embeddings)
      • Create Embeddings
    • Audio
      • Create transcription
      • Create translation
      • Text to speech
  • Help Center
    • FAQ
  1. Task Submission

Submit Blend Task

POST
/mj/submit/blend
任务提交

Request

Body Params application/json
botType
enum<string> 
optional
Bot Type: mj (default) or niji
Allowed values:
MID_JOURNEYNIJI_JOURNEY
Example:
MID_JOURNEY
base64Array
array[string]
required
Image Base64 Array
Example:
["data:image/png;base64,xxx1","data:image/png;base64,xxx2"]
dimensions
enum<string> 
optional
Aspect Ratio: PORTRAIT (2:3); SQUARE (1:1); LANDSCAPE (3:2)
Allowed values:
PORTRAITSQUARELANDSCAPE
Example:
SQUARE
accountFilter
object 
optional
instanceId
string 
optional
Account instance ID
modes
array[string]
optional
Account mode
Allowed values:
RELAXFASTTURBO
remix
boolean 
optional
Whether the account is remixed
remixAutoConsidered
boolean 
optional
When filtering accounts, remix automatically submitted is regarded as remix of account is false
notifyHook
string 
optional
Callback URL (When empty, the global notifyHook will be used)
state
string 
optional
Custom Parameters
Example
{
    "botType": "MID_JOURNEY",
    "base64Array": [
        "data:image/png;base64,xxx1",
        "data:image/png;base64,xxx2"
    ],
    "dimensions": "PORTRAIT",
    "accountFilter": {
        "instanceId": "string",
        "modes": [
            "RELAX"
        ],
        "remix": true,
        "remixAutoConsidered": true
    },
    "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.modelless.co/mj/submit/blend' \
--header 'Content-Type: application/json' \
--data-raw '{
    "botType": "MID_JOURNEY",
    "base64Array": [
        "data:image/png;base64,xxx1",
        "data:image/png;base64,xxx2"
    ],
    "dimensions": "PORTRAIT",
    "accountFilter": {
        "instanceId": "string",
        "modes": [
            "RELAX"
        ],
        "remix": true,
        "remixAutoConsidered": true
    },
    "notifyHook": "string",
    "state": "string"
}'

Responses

🟢200OK
application/json
Body
code
integer <int32>
required
Status code: 1 (submission successful), 22 (queuing), other (error)
Example:
1
description
string 
required
Description
Example:
Success
properties
object 
optional
Extension Field
result
string 
optional
Task ID
Example:
1320098173412546
Example
{
    "code": 1,
    "description": "Success",
    "properties": {},
    "result": 1320098173412546
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Previous
Perform Action
Next
Submit a Describe task
Built with