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

# Get image job status and results

> Gets the status of an image generation job, with download links once it has succeeded.
Requires a valid `X-API-KEY` header.

The links expire after 24 hours. Call this endpoint again for fresh links instead of
regenerating the images.

Throws:
- 404 if the job does not exist or was not created with this API key's user



## OpenAPI

````yaml GET /image/{job_id}
openapi: 3.1.0
info:
  title: Wondercraft Public API
  version: 0.0.1
servers:
  - url: https://api.wondercraft.ai/v1
    description: Base Wondercraft API
security: []
paths:
  /image/{job_id}:
    get:
      tags:
        - Images
      summary: Get image job status and results
      description: >-
        Gets the status of an image generation job, with download links once it
        has succeeded.

        Requires a valid `X-API-KEY` header.


        The links expire after 24 hours. Call this endpoint again for fresh
        links instead of

        regenerating the images.


        Throws:

        - 404 if the job does not exist or was not created with this API key's
        user
      operationId: get_image_job_image__job_id__get
      parameters:
        - name: job_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Job Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageJobStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    ImageJobStatusResponse:
      properties:
        job_id:
          type: string
          format: uuid
          title: Job Id
          description: The job ID
        status:
          $ref: '#/components/schemas/ApiJobStatus'
          description: queued, processing, succeeded or failed
        images:
          items:
            $ref: '#/components/schemas/ApiGeneratedImage'
          type: array
          title: Images
          description: Generated images once succeeded
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
          description: Why the job failed, when status is failed
      type: object
      required:
        - job_id
        - status
      title: ImageJobStatusResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ApiJobStatus:
      type: string
      enum:
        - queued
        - processing
        - succeeded
        - failed
      title: ApiJobStatus
    ApiGeneratedImage:
      properties:
        image_id:
          type: string
          format: uuid
          title: Image Id
          description: Can be reused as a reference image or video start frame
        url:
          type: string
          title: Url
          description: Download URL, valid for 24 hours; poll the job again for a fresh one
        width:
          type: integer
          title: Width
          description: Image width in pixels
        height:
          type: integer
          title: Height
          description: Image height in pixels
      type: object
      required:
        - image_id
        - url
        - width
        - height
      title: ApiGeneratedImage
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-KEY

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.