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

# Get Available Models For Selection

> Get list of available models for UI selection.

Returns a list of models that can be used for queries. Each model includes:
- id: Model identifier to use in llm_config
- name: Display name for the model
- provider: The LLM provider (e.g., openai, anthropic, ollama)
- description: Optional description of the model



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/morphik/openapi.documented.yml get /models/available
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security: []
paths:
  /models/available:
    get:
      summary: Get Available Models For Selection
      description: >-
        Get list of available models for UI selection.


        Returns a list of models that can be used for queries. Each model
        includes:

        - id: Model identifier to use in llm_config

        - name: Display name for the model

        - provider: The LLM provider (e.g., openai, anthropic, ollama)

        - description: Optional description of the model
      operationId: get_available_models_for_selection_models_available_get
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-codeSamples:
        - lang: JavaScript
          source: |-
            import Morphik from 'morphik';

            const client = new Morphik({
              apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
            });

            const response = await client.models.listAvailable();

            console.log(response);
        - lang: cURL
          source: |-
            curl https://api.morphik.ai/models/available \
                -H "Authorization: Bearer $MORPHIK_API_KEY"
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````