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

# 获取可用模型列表

> 返回所有可用的 AI 模型及其分类信息。响应会被缓存 1 小时。



## OpenAPI

````yaml api-reference/openapi-huajune.json get /models
openapi: 3.1.0
info:
  title: 华骏智能招聘 API
  description: 华骏智能招聘助手的 Open API 接口文档，提供模型管理、对话、工具、配置等功能
  version: 1.0.0
  contact:
    name: 华骏科技
    url: https://huajune.duliday.com
servers:
  - url: https://huajune.duliday.com/api/v1
    description: 生产环境
security:
  - bearerAuth: []
tags:
  - name: Models
    description: 模型管理相关接口
  - name: Chat
    description: AI 对话相关接口
  - name: Tools
    description: 工具管理相关接口
  - name: Configuration
    description: 配置管理相关接口
paths:
  /models:
    get:
      tags:
        - Models
      summary: 获取可用模型列表
      description: 返回所有可用的 AI 模型及其分类信息。响应会被缓存 1 小时。
      operationId: getModels
      responses:
        '200':
          description: 成功获取模型列表
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      models:
                        type: array
                        items:
                          $ref: '#/components/schemas/Model'
          headers:
            X-Correlation-Id:
              description: 请求关联 ID
              schema:
                type: string
            Cache-Control:
              description: 缓存控制策略
              schema:
                type: string
                example: public, max-age=3600
        '401':
          $ref: '#/components/responses/UnauthorizedError'
components:
  schemas:
    Model:
      type: object
      required:
        - id
        - name
        - categories
      properties:
        id:
          type: string
          description: 模型 ID，格式：provider/model
          example: anthropic/claude-3-7-sonnet-20250219
        name:
          type: string
          description: 模型显示名称
          example: Claude 3.7 Sonnet
        categories:
          type: array
          description: 模型分类标签
          items:
            type: string
            enum:
              - chat
              - general
          example:
            - chat
  responses:
    UnauthorizedError:
      description: 未授权 - API Key 无效或缺失
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Unauthorized
              message:
                type: string
                example: Invalid or missing API key
              statusCode:
                type: integer
                example: 401
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 使用 Bearer Token 进行认证，格式：`Bearer YOUR_API_KEY`

````