Skip to main content
POST
/
mj
/
submit
/
imagine
Imagine
curl --request POST \
  --url https://gptproto.com/mj/submit/imagine \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "botType": "<string>",
  "prompt": "<string>",
  "base64Array": [
    {}
  ],
  "accountFilter": {},
  "notifyHook": "<string>",
  "state": "<string>"
}'
{
  "error": {
    "message": "Invalid request parameters",
    "type": "invalid_request_error",
    "code": "invalid_parameters"
  }
}

Overview

Text to Image, Image to Text

Authentication

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

Request Body

botType
string
Bottype parameter
prompt
string
required
Prompt parameter
base64Array
array
Base64Array parameter
accountFilter
object
Accountfilter parameter
notifyHook
string
Notifyhook parameter
state
string
State parameter

Request Example

curl -X POST "https://gptproto.com/mj/submit/imagine" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "botType": "MID_JOURNEY",
  "prompt": "Cat",
  "base64Array": [],
  "accountFilter": {
    "channelId": "",
    "instanceId": "",
    "modes": [],
    "remark": "",
    "remix": true,
    "remixAutoConsidered": true
  },
  "notifyHook": "",
  "state": ""
}'

Response

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

Error Responses

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