> ## 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.

# Reload Model

> Reload Model API is used to reload an idle model that has not been used for more than 7 days.

<Info>
  After 7 days of inactivity, a model will be removed from the inference server.
  To use it again, make an API call to the Reload Model endpoint to reload the model.
</Info>

<Info>
  It will take **2 minutes** to reload a model.
</Info>

## Request

Send a `POST` request to below endpoint to reload a specific model specified by the **model\_id** parameter in the request body.

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

## Body

```json json theme={null}
{ 
  "key": "your_api_key", 
  "model_id": "model_id"
}
```


## OpenAPI

````yaml POST /model_reload
openapi: 3.1.0
info:
  title: ModelsLab Dreambooth Image Generation API
  description: >-
    A focused API for AI-driven image generation using Dreambooth models,
    including text-to-image, image-to-image, inpainting, and model management
    capabilities.
  license:
    name: MIT
  version: 6.0.0
servers:
  - url: https://modelslab.com/api/v6/images
    description: Dreambooth Image Generation API v6 server
security: []
paths:
  /model_reload:
    post:
      summary: Reload an idle image model
      description: >-
        Reloads an idle model that has not been used for more than 7 days. After
        7 days of inactivity, a model will be deleted from the inference server.
        Reloading a model typically takes 2 minutes.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReloadModelRequest'
      responses:
        '200':
          description: Model reload response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReloadModelResponse'
        '400':
          $ref: '#/components/responses/StandardErrorResponse'
        '401':
          $ref: '#/components/responses/StandardErrorResponse'
        '500':
          $ref: '#/components/responses/StandardErrorResponse'
components:
  schemas:
    ReloadModelRequest:
      type: object
      required:
        - key
        - model_id
      properties:
        key:
          type: string
          description: Your API Key used for request authorization.
        model_id:
          type: string
          description: The ID of the model to be reloaded.
    ReloadModelResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - success
            - error
            - processing
          description: Status of the model reload operation.
        message:
          type: string
          description: Message indicating the result of the reload operation.
    ImageGenerationErrorResponse:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
        message:
          type: string
          description: Error message description.
  responses:
    StandardErrorResponse:
      description: >-
        Bad request (invalid parameters), unauthorized (invalid API key), or
        internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ImageGenerationErrorResponse'

````