> ## 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/{model}
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/{model}:
    get:
      tags:
        - Models
      summary: 获取指定模型详情
      description: 根据模型ID获取详细信息
      operationId: getModel
      parameters:
        - name: model
          in: path
          description: 模型ID
          required: true
          schema:
            type: string
          example: gpt-4
      responses:
        '200':
          description: 成功响应
          content:
            application/json:
              schema:
                type: object
                required:
                  - id
                  - name
                  - type
                  - status
                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
                  desc:
                    type: string
                    description: 模型详细描述
                    example: GPT-4是一个大规模语言模型...
                  created:
                    type: integer
                    description: 模型创建时间戳
                    format: unix-timestamp
                    example: 1689127080
                  owned_by:
                    type: string
                    description: 模型所有者/提供商
                    example: openai
                  context:
                    type: integer
                    description: 上下文窗口大小
                    example: 8192
                  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
                  is_free:
                    type: boolean
                    description: 是否免费
                    example: true
                  price:
                    type: object
                    description: 价格信息
                    properties:
                      currency:
                        type: string
                        description: 价格货币单位，支持人民币CNY、美元USD
                        enum:
                          - CNY
                          - USD
                        example: CNY
                      unit:
                        type: string
                        description: >-
                          价格单位,支持按百万tokens(mtokens)、百万字符(mchars)、次数(times)、数量(nums)、分钟(minutes)、秒(seconds)等计费
                        enum:
                          - mtokens
                          - mchars
                          - times
                          - nums
                          - minutes
                          - seconds
                        example: mtokens
                      input:
                        type: number
                        description: 输入token单价
                        example: 0.03
                      output:
                        type: number
                        description: 输出token单价
                        example: 0.06
                      cache_read:
                        type: number
                        description: 缓存读取单价，仅对支持缓存的模型生效
                        example: 0
                      cache_write:
                        type: number
                        description: 缓存写入单价，仅对支持缓存的模型生效
                        example: 0
                      audio_input:
                        type: number
                        description: 音频输入单价，仅对支持语音的模型生效
                        example: 0
                      audio_output:
                        type: number
                        description: 音频输出单价，仅对支持语音的模型生效
                        example: 0
                      draw_image:
                        type: object
                        description: 画图价格信息，仅对支持画图的对话模型有效
                        properties:
                          price:
                            type: number
                            description: 生成图片单价（按张数）
                            example: 0
                          unit:
                            type: string
                            description: 计费单位
                            enum:
                              - nums
                            example: nums
                      web_search:
                        type: object
                        description: 网页搜索价格信息，仅对支持网页搜索的对话模型有效
                        properties:
                          price:
                            type: number
                            description: 生成网页搜索结果单价（按次）
                            example: 0
                          unit:
                            type: string
                            description: 计费单位
                            enum:
                              - times
                            example: times
                      discounts:
                        type: array
                        description: 渠道价格折扣信息
                        items:
                          type: object
                          properties:
                            channel:
                              type: string
                              description: 渠道ID
                              example: ha-speed
                            discount:
                              type: number
                              description: 折扣折扣，该折扣适用于所有价格字段，包括输入输出、缓存、画图、搜索、语音等，0.8表示八折
                              example: 0.8
                            desc:
                              type: string
                              description: 渠道描述
                              example: 高可用线路高速通道
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: 模型不存在
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '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密钥认证

````