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

# Get Models

> Use this endpoint to get a list of models available to you.

The models available will depend on your subscription tier.



## OpenAPI

````yaml GET /api/v1/models
openapi: 3.1.0
info:
  version: 0.0.1
  title: Prem Studio API
  description: Studio autofinetuning agent API
servers:
  - url: http://studio.premai.io
    description: Current environment
  - url: https://studio.premai.io
    description: Production server
security:
  - bearerAuth: []
paths:
  /api/v1/models:
    get:
      tags:
        - Models
      description: Get available AI models in OpenAI compatible format.
      operationId: models.listOpenAI
      responses:
        '200':
          description: success response
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    enum:
                      - list
                    description: >-
                      The type of object returned, always "list" for model
                      listing responses. Helps identify this as a collection of
                      models.
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: >-
                            The unique identifier of the model. This can be used
                            to specify the model in API requests. For fine-tuned
                            models, this may include a user-specific prefix.
                        created:
                          type: integer
                          description: >-
                            Unix timestamp (in seconds) when this model was
                            created or made available. For fine-tuned models,
                            this represents when the fine-tuning was completed.
                        object:
                          type: string
                          enum:
                            - model
                          description: >-
                            The type of object represented, which is always
                            "model" for model objects. This helps distinguish
                            model objects from other types of responses.
                        owned_by:
                          type: string
                          description: >-
                            Identifies the owner or provider of the model. Can
                            be "premai" for base models, a user ID for
                            fine-tuned models, or other providers like "openai"
                            or "anthropic".
                      required:
                        - id
                        - created
                        - object
                        - owned_by
                    description: >-
                      An array containing the available models. Each element is
                      a complete model object with all its properties.
                required:
                  - object
                  - data
        '400':
          description: bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: unauthenticated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````