Execute Actions
Action - Upscale / Variation
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
taskId | string | Yes | Original task ID |
customId | string | Yes | The customId of the action button, obtained from the task’s buttons field |
notifyHook | string | No | Callback URL |
state | string | No | Custom state |
Request Example
cURL
Response Example
Blend - Image Blending
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
botType | string | No | MID_JOURNEY (default) or NIJI_JOURNEY |
base64Array | array | Yes | Array of Base64-encoded images, 2-5 images |
dimensions | string | No | Output dimensions: PORTRAIT, SQUARE, LANDSCAPE |
notifyHook | string | No | Callback URL |
state | string | No | Custom state |
Request Example
cURL
Response Example
Describe - Image Description
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
botType | string | No | MID_JOURNEY (default) or NIJI_JOURNEY |
base64 | string | Yes | Base64-encoded image |
notifyHook | string | No | Callback URL |
state | string | No | Custom state |
Request Example
cURL
Modal - Dialog Confirmation
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
taskId | string | Yes | Original task ID |
prompt | string | No | Prompt in the modal dialog |
maskBase64 | string | No | Base64-encoded mask image |
Request Example
cURL
All actions return a new task ID after submission. Use the Query Task Status endpoint to get results.