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 a Imagine task

POST
/mj/submit/imagine
任务提交

Request

Body Params application/json
botType
enum<string> 
optional
Bot Type: mj (default) or niji
Allowed values:
MID_JOURNEYNIJI_JOURNEY
Example:
MID_JOURNEY
prompt
string 
required
prompt
Example:
Cat
base64Array
array[string]
optional
Image Base64 Array
accountFilter
object (账号筛选条件) 
optional
instanceId
string 
optional
账号实例ID
modes
array[string]
optional
账号模式
Allowed values:
RELAXFASTTURBO
remix
boolean 
optional
账号是否remix
remixAutoConsidered
boolean 
optional
账号过滤时,remix自动提交 视为 账号的remix为false
notifyHook
string 
optional
Callback URL (When empty, the global notifyHook will be used)
state
string 
optional
Custom Parameters
Example
{
    "botType": "MID_JOURNEY",
    "prompt": "Cat",
    "base64Array": [
        "string"
    ],
    "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/imagine' \
--header 'Content-Type: application/json' \
--data-raw '{
    "botType": "MID_JOURNEY",
    "prompt": "Cat",
    "base64Array": [
        "string"
    ],
    "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:
提交成功
properties
object 
optional
Extension Field
result
string 
optional
Task ID
Example:
1320098173412546
Example
{
    "code": 1,
    "description": "提交成功",
    "properties": {},
    "result": 1320098173412546
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Previous
Submit a Describe task
Next
Submit Modal
Built with