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

Perform Action

POST
/mj/submit/action
任务提交

Request

Body Params application/json
customId
string 
required
Action Identifier
Example:
MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011
taskId
string 
required
Task ID
Example:
14001934816969359
notifyHook
string 
optional
Callback URL (When empty, the global notifyHook will be used)
state
string 
optional
Custom Parameters
Example
{
    "customId": "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011",
    "taskId": "14001934816969359",
    "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/action' \
--header 'Content-Type: application/json' \
--data-raw '{
    "customId": "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011",
    "taskId": "14001934816969359",
    "notifyHook": "string",
    "state": "string"
}'

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
Submit swap_face task
Next
Submit Blend Task
Built with