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

# Clear Queue

> This endpoint is used to clear the API's queue.

## Request

Send a `POST` request to below endpoint to clear the API's cache.

```curl curl theme={null}
--request POST 'https://modelslab.com/api/v1/enterprise/3d/clear_queue' \
```

## Body

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


## OpenAPI

````yaml POST /clear_queue
openapi: 3.0.0
info:
  title: ModelsLab Enterprise 3D API
  description: API endpoints for managing 3D generation services on ModelsLab Enterprise
  version: 1.0.0
  contact:
    name: ModelsLab Support
    url: https://modelslab.com
servers:
  - url: https://modelslab.com/api/v1/enterprise/3d
    description: Production server
security: []
tags:
  - name: 3D Generation
    description: Endpoints for managing 3D content generation
  - name: Management
    description: Endpoints for managing your dedicated server
paths:
  /clear_queue:
    post:
      tags:
        - Server Management
      summary: Clear API Queue
      description: Clear the API's queue
      operationId: clearQueue
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiKeyRequest'
      responses:
        '200':
          description: Queue cleared successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClearActionResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    ApiKeyRequest:
      type: object
      required:
        - key
      properties:
        key:
          type: string
          description: Your enterprise API key used for request authorization
          example: enterprise_api_key
    ClearActionResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - success
            - error
          description: Status of the clear action
        message:
          type: string
          description: Result message
          example: Cache cleared successfully
      required:
        - status
        - message
    ErrorResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - error
          example: error
        message:
          type: string
          description: Error message explaining what went wrong
        error_code:
          type: string
          description: Specific error code for debugging
      required:
        - status
        - message
  responses:
    BadRequest:
      description: Bad request - Invalid parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Unauthorized - Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'

````