GET
/
api
/
v1
/
gpt4o-image
/
record-info
获取4o图像详情
curl --request GET \
  --url https://api.kie.ai/api/v1/gpt4o-image/record-info \
  --header 'Authorization: Bearer <token>'
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "task12345",
    "paramJson": "{\"prompt\":\"A beautiful sunset over the mountains\",\"size\":\"1:1\",\"isEnhance\":false}",
    "completeTime": 1672574400000,
    "response": {
      "resultUrls": [
        "https://example.com/result/image1.png"
      ]
    },
    "successFlag": 1,
    "status": "SUCCESS",
    "errorCode": null,
    "errorMessage": "",
    "createTime": 1672561200000,
    "progress": "1.00"
  }
}

状态说明

  • GENERATING: 生成中
  • SUCCESS: 生成成功
  • CREATE_TASK_FAILED: 创建任务失败
  • GENERATE_FAILED: 生成失败

注意事项

  • 单任务查询最多一秒钟3次

Authorizations

Authorization
string
header
required

所有接口都需要通过 Bearer Token 方式进行认证。

获取 API Key:

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

使用方式: 在请求头中添加: Authorization: Bearer YOUR_API_KEY

注意事项:

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

Query Parameters

taskId
string
required

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

Response

请求成功

The response is of type object.