Overview
Text to Image, Image to Text
Authentication
This endpoint requires authentication using a Bearer token.
Authorization
string
default:"sk-***********"
required
Your API key in the format: YOUR_API_KEY
Request Body
botType
string
default:"MID_JOURNEY"
Bottype parameter
prompt
string
default:"Cat"
required
Prompt 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
Error Responses
{
"error": {
"message": "Invalid signature",
"type": "401"
}
}