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

# 获取所有 LLM 模型

> 获取所有大语言模型列表。可通过 provider_uuid 过滤特定供应商的模型。



## OpenAPI

````yaml /openapi/service-api-en.json get /api/v1/provider/models/llm
openapi: 3.0.3
info:
  title: LangBot Service API
  description: >
    LangBot external service API documentation. These endpoints support API Key
    authentication for programmatic access to LangBot resources.


    **Authentication:**

    - User Token (via `Authorization: Bearer <token>`)

    - API Key (via `X-API-Key: <key>` or `Authorization: Bearer <key>`)


    All endpoints in this document support both authentication methods unless
    otherwise noted.
  version: 4.9.5
  contact:
    name: LangBot
    url: https://langbot.app
  license:
    name: AGPL-3.0
    url: https://github.com/langbot-app/LangBot/blob/master/LICENSE
servers:
  - url: http://localhost:5300
    description: Local development server
security:
  - ApiKeyAuth: []
  - BearerAuth: []
tags:
  - name: Model Providers
    description: >-
      Model provider management. Providers define API endpoints and keys; models
      reference providers via provider_uuid.
  - name: LLM Models
    description: >-
      Large Language Model (LLM) management. Each model is associated with a
      provider.
  - name: Embedding Models
    description: Embedding model management. Each model is associated with a provider.
  - name: Bots
    description: Bot instance management and messaging
  - name: Pipelines
    description: Pipeline configuration management
  - name: Knowledge Bases
    description: Knowledge base management
  - name: Knowledge Engines
    description: Knowledge engine (plugin-provided) queries
  - name: Parsers
    description: File parser (plugin-provided) queries
  - name: Files
    description: File upload operations
  - name: Plugins
    description: Plugin installation, configuration, and management
  - name: System
    description: System information (no auth required)
paths:
  /api/v1/provider/models/llm:
    get:
      tags:
        - LLM Models
      summary: 获取所有 LLM 模型
      description: 获取所有大语言模型列表。可通过 provider_uuid 过滤特定供应商的模型。
      parameters:
        - name: provider_uuid
          in: query
          required: false
          schema:
            type: string
            format: uuid
          description: 按供应商 UUID 过滤
      responses:
        '200':
          description: 成功
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 0
                  data:
                    type: object
                    properties:
                      models:
                        type: array
                        items:
                          $ref: '#/components/schemas/LLMModel'
components:
  schemas:
    LLMModel:
      type: object
      description: 大语言模型。通过 provider_uuid 关联到供应商，继承供应商的 API 地址和密钥。
      properties:
        uuid:
          type: string
          format: uuid
        name:
          type: string
          description: 模型名称（即模型 ID，发送到 API 的 model 参数值）
          example: gpt-4o
        provider_uuid:
          type: string
          format: uuid
          description: 关联的供应商 UUID
        abilities:
          type: array
          items:
            type: string
          description: 模型能力标签
          example:
            - chat
            - vision
            - tool-use
        extra_args:
          type: object
          description: 额外参数（如 temperature、max_tokens 等）
        prefered_ranking:
          type: integer
          description: 优先级排序（越大越优先）
          default: 0
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    BearerAuth:
      type: http
      scheme: bearer

````