> ## Documentation Index
> Fetch the complete documentation index at: https://docs.powertokens.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Kling Image Generation Query Task (Single)

> Returns the persisted Kling native task response. The task_id path parameter is the public task ID returned by the submit endpoint.



## OpenAPI

````yaml api-reference/en/zmodelImage/kling/image-generations-status.json GET /kling/v1/images/generations/{task_id}
openapi: 3.0.1
info:
  title: Kling Image Generation Task - Query Task Status
  version: 1.0.0
  description: >-
    Query Kling native image generation task status via
    `/kling/v1/images/generations/{task_id}`.
servers:
  - url: https://api.powertokens.ai
    description: ''
security: []
tags:
  - name: Kling
    description: Kling native async task endpoints
paths:
  /kling/v1/images/generations/{task_id}:
    get:
      tags:
        - Kling
      summary: Query Kling task status
      description: >-
        Returns the persisted Kling native task response. The task_id path
        parameter is the public task ID returned by the submit endpoint.
      operationId: createKlingImageGenerationStatus
      parameters:
        - name: Content-Type
          in: header
          required: true
          schema:
            type: string
            default: application/json
          description: Data exchange format
        - name: task_id
          in: path
          required: true
          description: >-
            Image generation task ID. Request path parameter; provide the value
            directly in the request path.

            - Choose either external_task_id (set when creating the task) or
            task_id for querying

            - Must be unique per user.
          schema:
            type: string
      responses:
        '200':
          description: Task status response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FetchResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    FetchResponse:
      type: object
      properties:
        code:
          type: integer
          description: Error code; see error codes for details.
        message:
          type: string
          description: Error message.
        request_id:
          type: string
          description: >-
            Request ID, system-generated, used for request tracking and
            troubleshooting.
        data:
          type: object
          properties:
            task_id:
              type: string
              description: Task ID, system-generated.
            task_status:
              type: string
              enum:
                - submitted
                - processing
                - succeed
                - failed
              description: >-
                Task status. Enum values: submitted, processing, succeed,
                failed.
            task_status_msg:
              type: string
              description: >-
                Task status message. When the task fails, shows the failure
                reason (e.g., triggered platform content moderation).
            final_unit_deduction:
              type: string
              description: Final unit deduction value for the task.
            watermark_info:
              type: object
              description: Watermark information.
              properties:
                enabled:
                  type: boolean
                  description: Whether watermark is enabled.
            task_info:
              type: object
              description: Task creation parameter information.
              properties:
                external_task_id:
                  type: string
                  description: Client-provided custom task ID.
            created_at:
              type: integer
              format: int64
              description: Task creation time, Unix timestamp in milliseconds.
            updated_at:
              type: integer
              format: int64
              description: Task update time, Unix timestamp in milliseconds.
            task_result:
              type: object
              description: Task result.
              properties:
                images:
                  type: array
                  description: List of generated images.
                  items:
                    type: object
                    properties:
                      index:
                        type: integer
                        description: Image index, 0-9.
                      url:
                        type: string
                        description: >-
                          Generated image URL (Note: for information security,
                          generated images/videos will be cleaned up after 30
                          days; please save them promptly).
                      watermark_url:
                        type: string
                        description: Watermarked image download URL, anti-leech format.
      example:
        code: 0
        message: string
        request_id: string
        data:
          task_id: string
          task_status: succeed
          task_status_msg: string
          final_unit_deduction: string
          watermark_info:
            enabled: false
          task_info:
            external_task_id: string
          created_at: 1722769557708
          updated_at: 1722769557708
          task_result:
            images:
              - index: 0
                url: string
                watermark_url: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Pass `Authorization: Bearer <token>` in the request header.'

````