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

# Retrieve a Qwen image edit task

> Retrieve status and edited images for a Qwen image edit task.



## OpenAPI

````yaml openapi/qwen-image-edit.yaml GET /qwen-image-edits/generations/{id}
openapi: 3.1.0
info:
  title: Qwen Image Edit API
  version: 1.0.0
  description: Model-specific GENGEN reference for asynchronous Qwen image editing.
servers:
  - url: https://gengen.farm/api/gengen/v1
    description: Production
security:
  - bearerAuth: []
paths:
  /qwen-image-edits/generations/{id}:
    get:
      summary: Retrieve a Qwen image edit task
      description: Retrieve normalized status and image outputs for a Qwen image edit task.
      operationId: retrieveQwenImageEditTask
      parameters:
        - $ref: '#/components/parameters/TaskId'
      responses:
        '200':
          description: Current task status and outputs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageTask'
              example:
                id: qwenedit:550e8400-e29b-41d4-a716-446655440000
                model: qwen-image-edit-spicy
                status: succeeded
                outputs:
                  images:
                    - https://example.com/qwen-image-edit/result_000.png
                createdAt: '2026-06-18T08:00:00.000Z'
                updatedAt: '2026-06-18T08:01:30.000Z'
                statusUpdateTime: '2026-06-18T08:01:30.000Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        default:
          $ref: '#/components/responses/UnexpectedError'
      x-codeSamples:
        - lang: bash
          label: Retrieve task
          source: |
            curl --request GET \
              --url https://gengen.farm/api/gengen/v1/qwen-image-edits/generations/qwenedit%3A550e8400-e29b-41d4-a716-446655440000 \
              --header 'Authorization: Bearer gengen_live_xxxxxxxxxxxxxxxx'
components:
  parameters:
    TaskId:
      name: id
      in: path
      required: true
      description: Public task ID beginning with `qwenedit:`. URL-encode it in the path.
      schema:
        type: string
  schemas:
    ImageTask:
      type: object
      required:
        - id
        - model
        - status
        - outputs
      properties:
        id:
          type: string
        model:
          type: string
          const: qwen-image-edit-spicy
        status:
          type: string
        outputs:
          $ref: '#/components/schemas/ImageOutputs'
        failureReason:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        statusUpdateTime:
          type: string
          format: date-time
      additionalProperties: true
    ImageOutputs:
      type: object
      required:
        - images
      properties:
        images:
          type: array
          items:
            type: string
            format: uri
      additionalProperties: true
    Error:
      type: object
      properties:
        error_code:
          type: string
        error:
          type: string
        error_params:
          type: object
          additionalProperties: true
      additionalProperties: true
  responses:
    BadRequest:
      description: The request is invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: The bearer token is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: The API key is not authorized for this operation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The task was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnexpectedError:
      description: GENGEN or the Qwen provider could not complete the request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: GENGEN API key
      description: A workspace API key beginning with `gengen_live_`.

````