Skip to main content
POST
/
mj
/
submit
/
action
Action
curl --request POST \
  --url https://gptproto.com/mj/submit/action \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customId": "<string>",
  "taskId": "<string>",
  "notifyHook": "<string>",
  "state": "<string>"
}'
{
  "error": {
    "message": "Invalid request parameters",
    "type": "invalid_request_error",
    "code": "invalid_parameters"
  }
}

Overview

All associated button actions UPSCALE、VARIATION、REROLL、ZOOM, etc.

Authentication

This endpoint requires authentication using a Bearer token.
Authorization
string
required
Your API key in the format: Bearer YOUR_API_KEY

Request Body

customId
string
Customid parameter
taskId
string
Taskid parameter
notifyHook
string
Notifyhook parameter
state
string
State parameter

Request Example

curl -X POST "https://gptproto.com/mj/submit/action" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "customId": "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011",
  "taskId": "14001934816969359",
  "notifyHook": "string",
  "state": "string"
}'

Response

Success
200
Successful response
{
  "status": "success"
}

Error Responses

{
  "error": {
    "message": "Invalid request parameters",
    "type": "invalid_request_error",
    "code": "invalid_parameters"
  }
}