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

# 模型列表



## OpenAPI

````yaml openapi.yaml GET /models
openapi: 3.1.0
info:
  title: 极客智坊 API文档
  description: 极客智坊 API 消息接口规范文档
  version: 1.0.0
servers:
  - url: https://geekai.co/api/v1
    description: 国内代理入口
  - url: https://geekai.dev/api/v1
    description: 海外代理入口
security:
  - bearerAuth: []
  - apiKeyAuth: []
paths:
  /models:
    get:
      tags:
        - Models
      summary: 获取可用模型列表
      description: 获取当前账户可用的所有AI模型列表，包括文本模型、图像模型、语音模型、视频模型等。
      operationId: listModels
      responses:
        '200':
          description: 成功响应
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - total
                properties:
                  object:
                    type: string
                    description: 响应对象类型
                    enum:
                      - list
                    default: list
                  data:
                    type: array
                    description: 模型列表
                    items:
                      type: object
                      required:
                        - id
                        - name
                        - type
                      properties:
                        id:
                          type: string
                          description: 模型唯一标识
                          example: gpt-4
                        name:
                          type: string
                          description: 模型显示名称
                          example: GPT-4
                        type:
                          type: string
                          description: 模型类型
                          enum:
                            - chat
                            - image
                            - audio
                            - video
                            - embedding
                        created:
                          type: integer
                          description: 模型创建时间戳
                          format: unix-timestamp
                          example: 1689127080
                        owned_by:
                          type: string
                          description: 模型所有者/提供商
                          example: openai
                        context:
                          type: integer
                          description: 上下文窗口大小(token数)
                          example: 8192
                        is_free:
                          type: boolean
                          description: 是否免费
                          example: true
                        platform:
                          type: object
                          description: 平台信息
                          properties:
                            name:
                              type: string
                              description: 平台名称
                              example: openai
                            alias:
                              type: string
                              description: 平台别名
                              example: OpenAI
                            website:
                              type: string
                              format: uri
                              description: 平台网站
                              example: https://openai.com
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/StandardError'
components:
  responses:
    Unauthorized:
      description: 未授权
      content:
        application/json:
          schema:
            type: object
            properties:
              code:
                type: string
                example: unauthorized
              message:
                type: string
                example: Invalid API key or token
    StandardError:
      description: 标准错误响应
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: 错误代码
          example: invalid_request
        message:
          type: string
          description: 错误信息描述
          example: 请求参数不合法
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API认证token
    apiKeyAuth:
      type: apiKey
      in: header
      name: GeekAI-API-Key
      description: API密钥认证

````