Docs Submit task /mj/submit/modal
API reference

Submit Modal

Perform local inpainting on a specific region (Vary Region / Inpaint); a mask is required.

POST/mj/submit/modal

Body Parametersapplication/json

botType string

Bot type

maskBase64 string

Mask image Base64 (white areas are the repaint region)

notifyHook string

Callback URL

prompt string

New prompt for local repaint (optional; empty keeps the original)

state string

Custom pass-through state

taskId* string

Original task ID

Responses

200 application/json
response-200 object
properties
created* integer

Creation time (Unix timestamp)

data* array

Data payload (often Base64 or a structured object)

400 Bad request or validation failed application/json
response-400 object
properties
error* object
401 Missing or invalid API Key application/json
response-401 object
Request Body Example Submit Modal
1{
2"maskBase64": "",
3"prompt": "",
4"taskId": "14001934816969359"
5}
Code Sample cURL
1curl -X POST "https://api.digislash.com/mj/submit/modal" \
2-H "Authorization: Bearer <API Key>" \
3-H "Content-Type: application/json" \
4-d '{
5"maskBase64": "",
6"prompt": "",
7"taskId": "14001934816969359"
8}'
Response
1▼{
2"created": 1589478378,
3▼"data": [
4▶{ 1 keys },
5▶{ 1 keys }
6]
7}