跳转到主要内容
GET
/
api
/
ai
/
image
/
task
/
{logId}
查询图像任务状态
curl --request GET \
  --url https://aitoearn.cn/api/ai/image/task/{logId} \
  --header 'X-Api-Key: <api-key>'
{ "code": 0, "message": "请求成功", "data": { "logId": "string", "status": "generating", "startedAt": "2026-07-02T12:00:00.000Z", "points": 1, "request": {}, "createdAt": "2026-07-02T12:00:00.000Z", "updatedAt": "2026-07-02T12:00:00.000Z", "duration": 1, "response": {}, "images": [ { "url": "string", "b64_json": "string", "revised_prompt": "string" } ], "errorMessage": "string" } }

授权

X-Api-Key
string
header
必填

AiToEarn Open Platform API Key。

路径参数

logId
string
必填

任务日志ID,由异步图像生成编辑接口返回,用于任务状态或生成结果查询。

响应

200 - application/json

请求已被服务处理。业务是否成功以响应体 code === 0 为准。

code
integer
必填

业务状态码。0 表示成功,非 0 表示业务错误。

message
string
必填

响应消息。

data
object
requestId
string

请求 ID。

timestamp
integer

错误响应时间戳,Unix 毫秒。