Documentation Index
Fetch the complete documentation index at: https://docs.lemondata.cc/llms.txt
Use this file to discover all available pages before exploring further.
概覽
這個 endpoint 會在目前管理令牌所屬的組織下,建立一把新的type=user API Key。
請求主體
| 欄位 | 型別 | 預設值 / 限制 | 說明 |
|---|---|---|---|
name | string | 必填,預設 Default Key,長度 1-50 | 顯示名稱,伺服器端會先去除前後空白 |
limitAmount | number | null | 最小 0,輸入上限 1000000 | null 或省略 = 不限額,0 = 零額度,正數會被規範化為一個儲存上限,且不能超過 100000 USD 等值 |
limitCurrency | 列舉 | 預設 USD | 僅限 USD。傳送 CNY 會回傳 400 currency_retired。 |
models | string[] | 預設 [] | 可選的邏輯模型白名單 |
expiresAt | string | null | RFC3339 datetime | null 表示沒有到期時間 |
說明
- 回應中的完整 API Key 只會顯示一次。
models: []表示這把 Key 除了組織層政策外,沒有額外的模型限制。limitAmount: 0會建立一把有效、但暫時無法消耗額度的 Key,之後可再更新。