Task: Drawing Change — simple
Overview
- API:
POST /mj/submit/simple-change - Description: Apply simple transformations to generated images, such as upscale (UPSCALE), variation (VARIATION), or reroll (REROLL).
- Content-Type:
application/json
Authentication
- Use HTTP Bearer Token, Example:
Authorization: Bearer sk-xxxxx
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| content | string | Yes | Transformation command, format example: <ID> <ACTION><index>, e.g., 1725017986212425 U2 (apply U2 on image ID 1725017986212425) |
| notifyHook | string | No | Callback URL; if empty, use global notifyHook |
| state | string | No | Custom parameter passed through callbacks or used for task tagging |
Recommended field order: content, notifyHook, state.
Request Example
json
{
"content": "1725017986212425 U2",
"notifyHook": "",
"state": "change-001"
}curl
bash
curl -X POST "https://api.gpt.ge/mj/submit/simple-change" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-xxxx" \
-d '{"content":"1725017986212425 U2","notifyHook":"","state":"change-001"}'JavaScript (fetch)
javascript
fetch('https://api.gpt.ge/mj/submit/simple-change', {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer sk-xxxx' },
body: JSON.stringify({ content: '1725017986212425 U2', notifyHook: '', state: 'change-001' })
}).then(r => r.json()).then(console.log)Python (requests)
python
import requests
payload = {
'content': '1725017986212425 U2',
'notifyHook': '',
'state': 'change-001'
}
resp = requests.post('https://api.gpt.ge/mj/submit/simple-change', headers={'Content-Type':'application/json','Authorization':'Bearer sk-xxxx'}, json=payload)
print(resp.json())Response Example (200)
json
{
"code": 1,
"description": "Submit success",
"result": "1725017986212425",
"properties": {
"discordChannelId": "1278917486263402612",
"discordInstanceId": "1550466896007176192"
}
}