Submit Imagine Task
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
botType | string | No | Bot type: MID_JOURNEY (default) or NIJI_JOURNEY |
prompt | string | Yes | Prompt, supports native Midjourney syntax (e.g. --ar 16:9 --v 6) |
base64Array | array | No | Array of Base64-encoded reference images for image-guided generation |
notifyHook | string | No | Callback URL for task status changes |
state | string | No | Custom state information, returned as-is in callbacks |
Request Examples
Response Example
| Field | Description |
|---|---|
code | Status code, 1 means success, 22 means queued |
description | Status description |
result | Task ID, used for subsequent queries |
Request with Reference Images
Usebase64Array to pass reference images:
cURL
Using Niji Journey
SetbotType to NIJI_JOURNEY to use the Niji model for anime-style images:
After successful submission, a task ID is returned. Use the Query Task Status endpoint to get the generation result.