GET
/
api
/
v1
/
flux
/
kontext
/
record-info
获取图像详情
curl --request GET \
  --url https://api.kie.ai/api/v1/flux/kontext/record-info \
  --header 'Authorization: Bearer <token>'
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "task12345",
    "paramJson": "{\"prompt\":\"A serene mountain landscape\",\"aspectRatio\":\"16:9\"}",
    "completeTime": "2024-03-20T10:30:00Z",
    "response": {
      "originImageUrl": "https://example.com/original.jpg",
      "resultImageUrl": "https://example.com/result.jpg"
    },
    "successFlag": 1,
    "errorCode": null,
    "errorMessage": "",
    "createTime": "2024-03-20T10:25:00Z"
  }
}

状态描述

  • 0: 生成中 - 任务正在处理
  • 1: 成功 - 任务成功完成
  • 2: 创建任务失败 - 创建任务失败
  • 3: 生成失败 - 任务创建成功但生成失败

重要说明

  • 生成的图像(resultImageUrl)将保存 14 天

Authorizations

Authorization
string
header
required

所有 API 都需要通过 Bearer Token 进行认证。

获取 API Key:

  1. 访问 API Key 管理页面 获取您的 API Key

使用方法: 添加到请求头: Authorization: Bearer YOUR_API_KEY

注意:

  • 请妥善保管您的 API Key,不要与他人分享
  • 如果您怀疑 API Key 已泄露,请立即在管理页面重置

Query Parameters

taskId
string
required

图像生成任务的唯一标识符

Response

200
application/json

请求成功

The response is of type object.