Task: Image to Image Blend
Overview
- Method:
POST - Path:
/mj/submit/blend - Content-Type:
application/json
Authentication
- Use HTTP Bearer Token, Example:
Authorization: Bearer sk-xxxxx
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| base64Array | array[string] | Yes | Array of image base64 strings, e.g. [data:image/png;base64,xxx1, data:image/png;base64,xxx2] |
| dimensions | string | Yes | Image ratio: PORTRAIT (2:3), SQUARE (1:1), LANDSCAPE (3:2) |
| notifyHook | string | No | Callback URL; if empty, uses global notifyHook |
| state | string | No | Custom parameter |
Recommended field order: base64Array, dimensions, notifyHook, state.
Request Example
json
{
"base64Array": [
"data:image/png;base64,xxx1",
"data:image/png;base64,xxx2"
],
"dimensions": "PORTRAIT",
"notifyHook": "",
"state": "blend-001"
}curl
bash
curl -X POST "https://api.gpt.ge/mj/submit/blend" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-xxxx" \
-d '{"base64Array":["data:image/png;base64,xxx1","data:image/png;base64,xxx2"],"dimensions":"PORTRAIT","notifyHook":"","state":"blend-001"}'JavaScript (fetch)
javascript
fetch('https://api.gpt.ge/mj/submit/blend', {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer sk-xxxx' },
body: JSON.stringify({ base64Array: ['data:image/png;base64,xxx1','data:image/png;base64,xxx2'], dimensions: 'PORTRAIT', notifyHook: '', state: 'blend-001' })
}).then(r => r.json()).then(console.log)Python (requests)
python
import requests
payload = {
'base64Array': ['data:image/png;base64,xxx1','data:image/png;base64,xxx2'],
'dimensions': 'PORTRAIT',
'notifyHook': '',
'state': 'blend-001'
}
resp = requests.post('https://api.gpt.ge/mj/submit/blend', 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"
}
}