查询:根据ID查询任务
概览
- 请求方法:
GET - 路径:
/mj/task/{id}/fetch
认证
- 使用 HTTP Bearer Token,示例:
Authorization: Bearer sk-xxxxx
路径参数
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| id | string | 是 | 任务ID |
请求示例
bash
curl -X GET "https://api.gpt.ge/mj/task/1724963337114767/fetch" \
-H "Authorization: Bearer sk-xxxx"返回示例(200)
json
{
"id": "1724963337114767",
"action": "IMAGINE",
"customId": "",
"botType": "",
"prompt": "a black dog flying",
"promptEn": "a black dog flying",
"description": "Submit success",
"state": "",
"submitTime": 1724963337114,
"startTime": 1724963338763,
"finishTime": 1724963365565,
"imageUrl": "http://localhost:3001/mj/image/1724963337114767",
"status": "SUCCESS",
"progress": "100%",
"failReason": "",
"buttons": [
{"customId":"MJ::JOB::upsample::1::e1a4d7e8-8292-412c-aab0-fce932e90479","emoji":"","label":"U1","type":2,"style":2}
],
"maskBase64": "",
"properties": {"finalPrompt":"a black dog flying","finalZhPrompt":""}
}