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

Overview

UPSCALE、VARIATION、REROLL, 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

action
string
Action parameter
index
integer
Index parameter
notifyHook
string
Notifyhook parameter
state
string
State parameter
taskId
string
Taskid parameter

Request Example

curl -X POST "https://gptproto.com/mj/submit/change" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "UPSCALE",
  "index": 1,
  "notifyHook": "string",
  "state": "string",
  "taskId": "1320098173412546"
}'

Response

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

Error Responses

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