Theme
Submit Modal
POST
https://www.kkiai.com/mj/submit/modal
Request Parameters
Authorization
Add the Authorization parameter to the Header. Its value is the Token concatenated after Bearer.
Example: Authorization: Bearer ********************
Header Parameters
| Parameter Name | Type | Required | Description | Example |
|---|---|---|---|---|
Authorization | string | Optional | Bearer {{YOUR_API_KEY}} |
Body Parameters (application/json)
| Parameter Name | Type | Required | Description |
|---|---|---|---|
maskBase64 | string | Required | Mask base64 for partial redraw |
prompt | string | Optional | |
taskId | integer | Optional |
Request Example
json
{
"maskBase64": "",
"prompt": "",
"taskId": "14001934816969359"
}cURL Example
bash
curl --location --request POST 'https://www.kkiai.com/mj/submit/modal' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"maskBase64": "",
"prompt": "",
"taskId": "14001934816969359"
}'Response
🟢200 Create image
Response Body
| Parameter Name | Type | Required | Description |
|---|---|---|---|
created | integer | Required | |
data | array[object] | Required | |
└ url | string | Required |
Response Example
json
{
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}