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 Modal

POST
/mj/submit/modal
任务提交

Request

Body Params application/json
maskBase64
string 
optional
Mask for local redrawing in base64
prompt
string 
optional
prompt
taskId
string 
required
Task ID
Example:
14001934816969359
Example
{
    "maskBase64": "string",
    "prompt": "string",
    "taskId": "14001934816969359"
}

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/modal' \
--header 'Content-Type: application/json' \
--data-raw '{
    "maskBase64": "string",
    "prompt": "string",
    "taskId": "14001934816969359"
}'

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 Imagine task
Next
Submit Shorten Task
Built with