新增令牌
POST
/api/token/
- 创建新的 API 令牌
- 可设置额度、过期时间、模型限制等
- 需要系统令牌鉴权
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
name
string
Required
令牌名字
remain_quota
integer
50w 为 1 刀
expired_time
integer
到期时间戳,单位秒,没有到期限制设置为 -1
unlimited_quota
boolean
无限额度设置
model_limits_enabled
boolean
可用模型限制设置
model_limits
string
可用模型列表,模型名字按 , 号分割
allow_ips
string
白名单 IP 列表,按换行符分割
group
string
支持分组,按 , 号分割
Responses
成功
application/json
object