提交Imagine任务
POST /mj/submit/imagine
说明
概览
| Method | POST |
|---|---|
| Path | /mj/submit/imagine |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 45008037 |
参数
{ "query": [], "path": [], "cookie": [], "header": [ { "required": false, "description": "", "type": "string", "id": "GTujCrB2It", "enable": true, "name": "Authorization", "sampleValue": "Bearer {{YOUR_API_KEY}}" } ] }
请求体
{ "type": "application/json", "parameters": [], "jsonSchema": { "type": "object", "properties": { "botType": { "type": "string", "description": "bot类型,mj(默认)或niji", "enum": [ "MID_JOURNEY", "NIJI_JOURNEY" ], "x-apifox-enum": [ { "value": "MID_JOURNEY", "name": "", "description": "" }, { "value": "NIJI_JOURNEY", "name": "", "description": "" } ], "examples": [ "MID_JOURNEY" ] }, "prompt": { "type": "string", "description": "提示词", "examples": [ "Cat" ] }, "notifyHook": { "type": "string", "description": "回调地址, 为空时使用全局notifyHook\n\n" }, "state": { "type": "string", "description": "自定义参数" }, "base64Array": { "type": "array", "items": { "type": "string" }, "description": "垫图base64数组\n\n" } }, "required": [ "botType", "prompt" ], "x-apifox-orders": [ "botType", "prompt", "base64Array", "notifyHook", "state" ] }, "mediaType": "", "examples": [ { "value": "{\n \"base64Array\": [],\n \"notifyHook\": \"\",\n \"prompt\": \"cat\",\n \"state\": \"\",\n \"botType\": \"MID_JOURNEY\"\n}", "mediaType": "application/json", "description": "" } ], "oasExtensions": "" }
响应
[ { "id": 562499903, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": {}, "x-apifox-orders": [] }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [], "oasExtensions": "" } ]
响应示例
[ { "name": "成功示例", "responseId": 562499903, "data": "{\r\n \"code\": 1,\r\n \"description\": \"Submit success\",\r\n \"result\": \"1730621718151844\",//任务id\r\n \"properties\": {\r\n \"discordChannelId\": \"1300842676874379336\",\r\n \"discordInstanceId\": \"1572398367386955776\"\r\n }\r\n}", "description": "", "oasKey": "", "oasExtensions": "", "id": 440609009 } ]