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

# Image task query

> This historical query endpoint remains supported. New integrations should use `GET /v1/images/generations/{task_id}`.

Both query routes can retrieve tasks created through either the primary or historical image creation endpoint. Signed URLs in `output_images` are transient and should not be used as permanent identifiers.




## OpenAPI

````yaml /openapi/legacy/_image-query.yaml get /query/image-generation
openapi: 3.0.3
info:
  title: Image task query
  version: 1.0.0
  description: Historical image task query endpoint retained for existing integrations.
servers:
  - url: https://api.linkmodel.ai/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: legacy
paths:
  /query/image-generation:
    get:
      tags:
        - legacy
      summary: Image task query
      description: >
        This historical query endpoint remains supported. New integrations
        should use `GET /v1/images/generations/{task_id}`.


        Both query routes can retrieve tasks created through either the primary
        or historical image creation endpoint. Signed URLs in `output_images`
        are transient and should not be used as permanent identifiers.
      operationId: legacy-query-image-generation
      parameters:
        - name: task_id
          in: query
          required: true
          description: Task id returned from either image creation endpoint.
          schema:
            type: string
            example: aurora_xyz789
      responses:
        '200':
          description: Current image task status and result.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 0
                  data:
                    type: object
                    properties:
                      task_id:
                        type: string
                      status:
                        type: string
                        enum:
                          - Pending
                          - Processing
                          - Success
                          - Failed
                          - Cancelled
                      output_images:
                        type: array
                        items:
                          type: string
                          format: uri
                  message:
                    type: string
                    example: success
        '401':
          description: Unauthorized — missing or invalid API key.
        '404':
          description: Task not found.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````