获取任务图片的seed
GET /mj/task/{id}/image-seed
概览
| Method | GET |
|---|---|
| Path | /mj/task/{id}/image-seed |
| Type | http |
| Status | 1 |
| Module | 2102810 |
| Folder | 45008037 |
参数
{ "query": [], "path": [ { "id": "id#0", "name": "id", "required": true, "description": "", "type": "string", "enable": true } ], "cookie": [], "header": [ { "required": false, "description": "", "type": "string", "id": "GTujCrB2It", "enable": true, "name": "Authorization", "sampleValue": "Bearer {{YOUR_API_KEY}}" } ] }
请求体
{ "type": "multipart/form-data", "parameters": [ { "required": false, "description": "", "type": "string", "id": "slBfdFpPm3", "enable": true, "name": "ids", "schema": { "type": "array", "items": { "type": "string" } }, "sampleValue": "1231234123" }, { "required": false, "description": "", "type": "string", "id": "slBfdFpPm3", "enable": true, "name": "ids", "schema": { "type": "array", "items": { "type": "string" } }, "sampleValue": "456456456" } ], "jsonSchema": { "type": "object", "properties": { "model": { "type": "string", "description": "用于图像生成的模型。" }, "prompt": { "type": "string", "description": "所需图像的文本描述。最大长度为 1000 个字符。" }, "n": { "type": "integer", "description": "要生成的图像数。必须介于 1 和 10 之间。" }, "size": { "type": "string", "description": "生成图像的大小。必须是256x256、512x512或 1024x1024之一。" }, "quality": { "type": "string", "description": "将生成的图像的质量。`hd`创建具有更精细细节和更高一致性的图像。此参数仅支持`dall-e-3`." }, "response_format": { "type": "string", "description": "返回生成的图像的格式。必须是 或url之一b64_json。" }, "style": { "type": "string", "description": "生成图像的大小。必须是`256x256`、`512x512`或`1024x1024`for之一`dall-e-2`。对于模型来说,必须是`1024x1024`、`1792x1024`、 或之一。`1024x1792``dall-e-3`" }, "user": { "type": "string", "description": "生成图像的风格。必须是 或`vivid`之一`natural`。生动使模型倾向于生成超真实和戏剧性的图像。自然使模型生成更自然、不太真实的图像。此参数仅支持`dall-e-3`." } }, "required": [ "prompt" ], "x-apifox-orders": [ "prompt", "model", "n", "quality", "response_format", "style", "user", "size" ] }, "mediaType": "", "examples": [ { "value": "", "mediaType": "multipart/form-data", "description": "" } ], "oasExtensions": "" }
响应
[ { "id": 562499906, "name": "成功", "code": 200, "contentType": "json", "jsonSchema": { "type": "object", "properties": { "id": { "type": "string" }, "action": { "type": "string" }, "customId": { "type": "string" }, "botType": { "type": "string" }, "prompt": { "type": "string" }, "promptEn": { "type": "string" }, "description": { "type": "string" }, "state": { "type": "string" }, "submitTime": { "type": "integer" }, "startTime": { "type": "integer" }, "finishTime": { "type": "integer" }, "imageUrl": { "type": "string" }, "status": { "type": "string" }, "progress": { "type": "string" }, "failReason": { "type": "string" }, "buttons": { "type": "array", "items": { "type": "object", "properties": { "customId": { "type": "string" }, "emoji": { "type": "string" }, "label": { "type": "string" }, "type": { "type": "integer" }, "style": { "type": "integer" } }, "required": [ "customId", "emoji", "label", "type", "style" ], "x-apifox-orders": [ "customId", "emoji", "label", "type", "style" ] } }, "maskBase64": { "type": "string" }, "properties": { "type": "object", "properties": { "finalPrompt": { "type": "string" }, "finalZhPrompt": { "type": "string" } }, "required": [ "finalPrompt", "finalZhPrompt" ], "x-apifox-orders": [ "finalPrompt", "finalZhPrompt" ] } }, "required": [ "id", "action", "customId", "botType", "prompt", "promptEn", "description", "state", "submitTime", "startTime", "finishTime", "imageUrl", "status", "progress", "failReason", "buttons", "maskBase64", "properties" ], "x-apifox-orders": [ "id", "action", "customId", "botType", "prompt", "promptEn", "description", "state", "submitTime", "startTime", "finishTime", "imageUrl", "status", "progress", "failReason", "buttons", "maskBase64", "properties" ] }, "itemSchema": {}, "description": "", "mediaType": "", "headers": [] } ]
响应示例
[ { "name": "成功示例", "responseId": 562499906, "data": "{\r\n \"id\": \"1730621826053455\",\r\n \"action\": \"IMAGINE\",\r\n \"customId\": \"\",\r\n \"botType\": \"\",\r\n \"prompt\": \"pig --v 6.1\",\r\n \"promptEn\": \"pig --v 6.1\",\r\n \"description\": \"Submit success\",\r\n \"state\": \"\",\r\n \"submitTime\": 1730621826053,\r\n \"startTime\": 1730621828024,\r\n \"finishTime\": 1730621855817,\r\n \"imageUrl\": \"https://cdnmjp.oneabc.org/attachments/1300842274347028520/1302547211321741343/kennedyhernandez46715_74108_pig_3785da15-4f70-4034-9128-f3ff1ac634fa.png?ex=6728831f&is=6727319f&hm=f6d701914d608e4da9298d2290b3616317264a70635fbf08a37ca6c1bb671b50&\",\r\n \"status\": \"SUCCESS\",\r\n \"progress\": \"100%\",\r\n \"failReason\": \"\",\r\n \"buttons\": [\r\n {\r\n \"customId\": \"MJ::JOB::upsample::1::3785da15-4f70-4034-9128-f3ff1ac634fa\",\r\n \"emoji\": \"\",\r\n \"label\": \"U1\",\r\n \"type\": 2,\r\n \"style\": 2\r\n },\r\n {\r\n \"customId\": \"MJ::JOB::upsample::2::3785da15-4f70-4034-9128-f3ff1ac634fa\",\r\n \"emoji\": \"\",\r\n \"label\": \"U2\",\r\n \"type\": 2,\r\n \"style\": 2\r\n },\r\n {\r\n \"customId\": \"MJ::JOB::upsample::3::3785da15-4f70-4034-9128-f3ff1ac634fa\",\r\n \"emoji\": \"\",\r\n \"label\": \"U3\",\r\n \"type\": 2,\r\n \"style\": 2\r\n },\r\n {\r\n \"customId\": \"MJ::JOB::upsample::4::3785da15-4f70-4034-9128-f3ff1ac634fa\",\r\n \"emoji\": \"\",\r\n \"label\": \"U4\",\r\n \"type\": 2,\r\n \"style\": 2\r\n },\r\n {\r\n \"customId\": \"MJ::JOB::reroll::0::3785da15-4f70-4034-9128-f3ff1ac634fa::SOLO\",\r\n \"emoji\": \"🔄\",\r\n \"label\": \"\",\r\n \"type\": 2,\r\n \"style\": 2\r\n },\r\n {\r\n \"customId\": \"MJ::JOB::variation::1::3785da15-4f70-4034-9128-f3ff1ac634fa\",\r\n \"emoji\": \"\",\r\n \"label\": \"V1\",\r\n \"type\": 2,\r\n \"style\": 2\r\n },\r\n {\r\n \"customId\": \"MJ::JOB::variation::2::3785da15-4f70-4034-9128-f3ff1ac634fa\",\r\n \"emoji\": \"\",\r\n \"label\": \"V2\",\r\n \"type\": 2,\r\n \"style\": 2\r\n },\r\n {\r\n \"customId\": \"MJ::JOB::variation::3::3785da15-4f70-4034-9128-f3ff1ac634fa\",\r\n \"emoji\": \"\",\r\n \"label\": \"V3\",\r\n \"type\": 2,\r\n \"style\": 2\r\n },\r\n {\r\n \"customId\": \"MJ::JOB::variation::4::3785da15-4f70-4034-9128-f3ff1ac634fa\",\r\n \"emoji\": \"\",\r\n \"label\": \"V4\",\r\n \"type\": 2,\r\n \"style\": 2\r\n }\r\n ],\r\n \"maskBase64\": \"\",\r\n \"properties\": {\r\n \"finalPrompt\": \"pig --v 6.1\",\r\n \"finalZhPrompt\": \"\"\r\n }\r\n}", "id": 440609012 } ]