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

# List available models

> Lists all AI models available for inference in an OpenAI-compatible format.



## OpenAPI

````yaml /spec/ai-chat-completions.yaml get /api/{workspaceID}/v1/models
openapi: 3.0.1
info:
  title: AI - Chat Completions
  description: >-
    OpenAI-compatible chat completion endpoints for AI inference with support
    for streaming, tool calling, and multi-modal inputs.


    Parameters:

    - `workspaceID`: The ID of the workspace to use for billing and routing

    - `teamID`: To access services in a team (query param or `x-teamid` header)


    Authentication: API Key (Bearer token) sent via the `Authorization` header.
  termsOfService: '#'
  contact:
    email: info@liara.ir
  version: 1.0.0
servers:
  - url: https://ai.liara.ir
security:
  - apiKey: []
tags:
  - name: Chat Completions
    description: Generate chat completions with various AI models
  - name: Models
    description: List available AI models for inference
externalDocs:
  description: Find out more about Liara AI
  url: https://liara.ir
paths:
  /api/{workspaceID}/v1/models:
    get:
      tags:
        - Models
      summary: List available models
      description: >-
        Lists all AI models available for inference in an OpenAI-compatible
        format.
      operationId: listInferenceModels
      parameters:
        - name: workspaceID
          in: path
          required: true
          description: The workspace ID
          schema:
            type: string
            pattern: ^[a-f0-9]{24}$
      responses:
        '200':
          description: List of models
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelsListResponse'
        '401':
          description: Missing authentication
          content: {}
components:
  schemas:
    ModelsListResponse:
      type: object
      properties:
        object:
          type: string
          enum:
            - list
        data:
          type: array
          items:
            $ref: '#/components/schemas/ModelItem'
    ModelItem:
      type: object
      properties:
        id:
          type: string
          description: Model ID
        name:
          type: string
          description: Display name
        description:
          type: string
        context_length:
          type: integer
        architecture:
          type: object
          properties:
            input_modalities:
              type: array
              items:
                type: string
            output_modalities:
              type: array
              items:
                type: string
        pricing:
          type: object
          properties:
            prompt:
              type: string
            completion:
              type: string
        top_provider:
          type: object
          properties:
            context_length:
              type: integer
            max_completion_tokens:
              type: integer
        supported_parameters:
          type: array
          items:
            type: string
  securitySchemes:
    apiKey:
      type: apiKey
      description: >-
        Enter the API key with the `Bearer: ` prefix, e.g. "Bearer
        <your-api-key>"
      name: Authorization
      in: header

````