KIE.AI
English
  • English
  • Chinese
English
  • English
  • Chinese
Support
English
  • English
  • Chinese
MarketVeo3.1 APISuno API4o Image APIFlux Kontext API
Runway APILuma APIFile Upload APICommon API
MarketVeo3.1 APISuno API4o Image APIFlux Kontext API
Runway APILuma APIFile Upload APICommon API
  1. Flux Kontext API
  • Flux Kontext API Quickstart
  • Image Generation or Editing Callbacks
  • Generate or Edit Image
    POST
  • Get Image Details
    GET
English
  • English
  • Chinese
Support
English
  • English
  • Chinese
MarketVeo3.1 APISuno API4o Image APIFlux Kontext API
Runway APILuma APIFile Upload APICommon API
MarketVeo3.1 APISuno API4o Image APIFlux Kontext API
Runway APILuma APIFile Upload APICommon API
  1. Flux Kontext API

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

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Query Params

Responses

🟢200
application/json
Request successful
Body

🔴500Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.kie.ai/api/v1/flux/kontext/record-info?taskId=task12345' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - 成功示例
{
    "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"
    }
}
Previous
Generate or Edit Image
Built with