CreateAPIKeyRequest

  • member_id
    Type: string
    required

    当前工作区有效成员外部ID,所有工作区类型均必填。

  • name
    Type: string
    min length:  
    1
    max length:  
    64
    required

    UTF-8 编码不超过64字节。

  • billing_type
    Type: string enum
    values
    • credit_balance
    • coding_plan
  • limits
    Type: object · APIKeyLimits

    日额度≤7日额度≤30日额度;美元额度最多两位小数。运行时限额不得超过工作区硬上限。

    • concurrency_limit
      Type: integer | null
      min:  
      0

      省略保留;null 或 0 使用既有不限额/继承语义,受工作区硬上限约束。

    • d30_limit_usd
      Type: number | null
      min:  
      0
      multiple of:  
      0.01

      美元额度;null 清除;省略保留原值(创建时继承工作区默认值)。

    • d7_limit_usd
      Type: number | null
      min:  
      0
      multiple of:  
      0.01

      美元额度;null 清除;省略保留原值(创建时继承工作区默认值)。

    • day_limit_usd
      Type: number | null
      min:  
      0
      multiple of:  
      0.01

      美元额度;null 清除;省略保留原值(创建时继承工作区默认值)。

    • rpm_limit
      Type: integer | null
      min:  
      0

      省略保留;null 或 0 使用既有不限额/继承语义,受工作区硬上限约束。

    • tpm_limit
      Type: integer | null
      min:  
      0

      省略保留;null 或 0 使用既有不限额/继承语义,受工作区硬上限约束。