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

# Fetch Video

> Fetch Queued Request API returns queued or generated videos, useful for delayed processing.

<Note>
  **Note:** This endpoint does not generate new videos; it only returns already generated or queued video generations.
</Note>

## Request

Send a `POST` request to below endpoint to return the corresponding queued videos, where `{id}` is the ID returned together with the URL in the response upon its generation.

```curl curl theme={null}
--request POST 'https://modelslab.com/api/v6/faceswap/fetch/{id}' \
```

## Body

```json json theme={null}
{ 
    "key": ""
}
```


## OpenAPI

````yaml POST /faceswap/fetch/{id}
openapi: 3.1.0
info:
  title: ModelsLab Face Swap API
  description: >-
    AI-powered face swap API supporting image and video face swapping with
    advanced controls
  license:
    name: MIT
  version: 6.0.0
servers:
  - url: https://modelslab.com/api/v6
    description: Main API server
security: []
paths:
  /faceswap/fetch/{id}:
    post:
      summary: Fetch face swap result
      description: Retrieves queued or already generated face swap videos/images by ID
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
          description: The ID of the face swap generation to fetch
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FetchRequest'
      responses:
        '200':
          description: Fetch response
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/SuccessFaceSwapResponse'
                  - $ref: '#/components/schemas/ProcessingFaceSwapResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    FetchRequest:
      type: object
      required:
        - key
      properties:
        key:
          type: string
          description: Your API Key used for authenticating your request
    SuccessFaceSwapResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - success
        generationTime:
          type: number
          description: Time taken to generate the result in seconds
        id:
          type: integer
          description: Unique identifier for the generation request
        output:
          type: array
          items:
            type: string
            format: uri
          description: Array of URLs to the generated images
        proxy_links:
          type: array
          items:
            type: string
            format: uri
          description: Array of proxy URLs for the generated images
        meta:
          type: object
          description: Metadata about the generation process and parameters used
          properties:
            init_image:
              type: string
              format: uri
            target_image:
              type: string
              format: uri
            reference_image:
              type: string
              format: uri
            seed:
              type: integer
            temp:
              type: string
            file_prefix:
              type: string
            model_save_format:
              type: string
            watermark:
              type: string
            watermark_image:
              type: string
              nullable: true
    ProcessingFaceSwapResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - processing
        tip:
          type: string
          description: Helpful tip about the processing status
        eta:
          type: integer
          description: Estimated time remaining in seconds
        message:
          type: string
          description: Status message about the processing
        fetch_result:
          type: string
          format: uri
          description: URL to fetch the result when processing is complete
        id:
          type: integer
          description: Unique identifier for the generation request
        output:
          type: array
          items:
            type: string
          description: Empty array during processing
        meta:
          type: object
          description: Metadata about the generation process and parameters used
        future_links:
          type: array
          items:
            type: string
            format: uri
          description: >-
            Array of URLs where the files will be available once processing is
            complete
    Error:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
        message:
          type: string
          description: Error message description

````