---
title: "Get Image Details"
method: GET
path: "/api/v1/flux/kontext/record-info"
---

# Get Image Details

`GET /api/v1/flux/kontext/record-info`

Query the status and results of an image generation or editing task.

### Status Descriptions
- 0: GENERATING - Task is currently being processed
- 1: SUCCESS - Task completed successfully
- 2: CREATE_TASK_FAILED - Failed to create the task
- 3: GENERATE_FAILED - Task creation succeeded but generation failed

### Important Notes
- Generated images (resultImageUrl) will expire after 14 days

## Query parameters

- `taskId` string, required

## Response `200`

Request successful

- object
  - `code` 200 | 401 | 404 | 422 | 429 | 455 | 500 | 501 — Response status code - **200**: Success - Request has been processed successfully - **401**: Unauthorized - Authentication credentials are missing or invalid - **404**: Not Found - The requested resource or endpoint does not exist - **422**: Validation Error - The request parameters failed validation checks - **429**: Rate Limited - Request limit has been exceeded for this resource - **455**: Service Unavailable - System is currently undergoing maintenance - **500**: Server Error - An unexpected error occurred while processing the request - **501**: Generation Failed - Image generation task failed
  - `msg` string — Error message when code != 200
  - `data` object
    - `taskId` string — Unique identifier of the image generation task
    - `paramJson` string — Request parameters in JSON format
    - `completeTime` string, date-time — Task completion time
    - `response` object — Final result
      - `originImageUrl` string — Original image URL (valid for 10 minutes)
      - `resultImageUrl` string — Generated image URL on our server
    - `successFlag` 0 | 1 | 2 | 3 — Generation status flag
    - `errorCode` 400 | 500 | 501 — Error code if task failed - **400**: Your prompt was flagged by Website as violating content policies. - **500**: Internal Error, Please try again later. The security tolerance level is out of range and should be 0-2 or 0-6. - **501**: Image generation task failed
    - `errorMessage` string — Error message if task failed
    - `createTime` string, date-time — Task creation time

## Other responses

- `500` — Server Error

---

[API](https://skmtc.dev/fluxapi/apis/common-api.md) · [All operations](https://skmtc.dev/fluxapi/apis/common-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fluxapi/common-api/revisions/9751ebc7ccc9/schema)
