简体中文
cURL
curl --request GET \ --url https://api.kie.ai/api/v1/mj/record-info \ --header 'Authorization: Bearer <token>'
{ "code": 200, "msg": "success", "data": { "taskId": "4edb3c5XXXXX75e3f0aa5cc", "taskType": "mj_txt2img", "paramJson": "{\"aspectRatio\":\"16:9\",\"callBackUrl\":\"https://api.example.com/callback\",\"fileUrl\":\"\",\"prompt\":\"Help me generate a sci-fi themed fighter jet in a beautiful sky, to be used as a computer wallpaper\",\"speed\":\"Relax\",\"stylization\":1,\"taskType\":\"mj_txt2img\",\"version\":\"7\",\"waterMark\":\"\",\"weirdness\":1}", "completeTime": "2024-03-20T10:30:00Z", "resultInfoJson": { "resultUrls": [ { "resultUrl": "https://tempfile.aiquickdraw.com/v/42ea4a4250571eb18361bd2e309c8e8a_0_0.jpeg" }, { "resultUrl": "https://tempfile.aiquickdraw.com/v/42ea4a4250571eb18361bd2e309c8e8a_0_1.jpeg" }, { "resultUrl": "https://tempfile.aiquickdraw.com/v/42ea4a4250571eb18361bd2e309c8e8a_0_2.jpeg" }, { "resultUrl": "https://tempfile.aiquickdraw.com/v/42ea4a4250571eb18361bd2e309c8e8a_0_3.jpeg" } ] }, "successFlag": 1, "createTime": "2024-03-20T10:30:00Z", "errorCode": null, "errorMessage": null } }
检索Midjourney生成任务的状态和详情。
所有 API 都需要通过 Bearer Token 进行认证。
获取 API Key:
使用方法: 添加到请求头: Authorization: Bearer YOUR_API_KEY
注意:
从生成请求返回的任务ID
请求成功
The response is of type object.
object