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

# Get all models

> Retrieves a list of models, either from the entire catalog or only those downloaded locally



## OpenAPI

````yaml /api-reference/ai-navigator-api.json get /api/models
openapi: 3.0.0
info:
  title: AI Navigator API
  version: 1.0.0
  description: API documentation for AI Navigator
servers: []
security:
  - bearerAuth: []
tags: []
paths:
  /api/models:
    get:
      tags:
        - Models
      summary: Get all models
      description: >-
        Retrieves a list of models, either from the entire catalog or only those
        downloaded locally
      parameters:
        - in: query
          name: downloaded
          schema:
            type: boolean
          description: >-
            When true, returns only models that have at least one file
            downloaded locally
      responses:
        '200':
          description: List of models retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ModelSummary'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ModelSummary:
      type: object
      required:
        - id
        - name
        - metadata
      properties:
        id:
          type: string
          description: Unique identifier for the model
        name:
          type: string
          description: Name of the model
        metadata:
          type: object
          required:
            - numParameters
            - trainedFor
            - description
            - quantizations
          properties:
            numParameters:
              oneOf:
                - type: number
                - type: string
              description: Number of parameters in the model (string for legacy models)
            contextWindowSize:
              type: number
              description: Maximum context window size for the model
            trainedFor:
              type: string
              description: Primary task the model was trained for
            description:
              type: string
              description: Description of the model
            quantizations:
              type: array
              items:
                type: object
                required:
                  - modelFileName
                  - method
                  - sizeBytes
                  - maxRamUsage
                properties:
                  modelFileName:
                    type: string
                    description: Name of the model file
                  method:
                    type: string
                    description: Quantization method used
                  sizeBytes:
                    type: number
                    description: Size of the quantized model in bytes
                  maxRamUsage:
                    type: number
                    description: Maximum RAM usage of the quantized model
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - INVALID_REQUEST
                - DATABASE_NOT_RUNNING
                - INTERNAL_SERVER_ERROR
                - INVALID_SERVER_ID
                - SERVER_NOT_RUNNING
                - SERVER_RUNNING
                - INTERNAL_SERVER_ERROR
            message:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: UUID
      description: Enter your API key here

````