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

# Retrieve all models

> Fetches a list of all available models.



## OpenAPI

````yaml GET /v2/model_endpoints
openapi: 3.1.0
info:
  title: GenAI API Spec
  description: 'Data Engine: Generative AI API Specification'
  version: 0.0.1
servers:
  - url: https://api.scale.com
security:
  - bearerAuth: []
  - basicAuth: []
paths:
  /v2/model_endpoints:
    get:
      summary: Retrieve all models
      description: Fetches a list of all available models.
      responses:
        '200':
          description: Successfully retrieved models.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ModelEndpoint'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status_code:
                    type: number
                    example: 500
                  error:
                    type: string
                    example: Internal server error.
components:
  schemas:
    ModelEndpoint:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the model endpoint.
        url:
          type: string
          description: Model endpoint URL.
        description:
          type: string
          description: Description of the model.
        status:
          type: string
          enum:
            - active
            - deprecated
            - errored
            - inReview
          description: Status of the model.
        createdAt:
          type: string
          format: date-time
          description: Timestamp when the model was created.
  securitySchemes:
    bearerAuth:
      description: >-
        Your API Key is the Bearer token. See the
        [Authentication](/get-started/authentication) section to learn how to
        access your key.
      type: http
      scheme: bearer
    basicAuth:
      description: >-
        Basic HTTP Authentication. Your API Key is your username.  Learn more
        about setting up Authentication [here](/get-started/authentication).
      type: http
      scheme: basic

````