创建新的API Key
line1
line1
POST
/api/v1/user/admin/new-api-token
OhMyGPT公开API文档/管理API列表
permissions
中只能填写网页中权限列表里可以勾选的模型。请求参数
Body 参数application/x-www-form-urlencoded
remark
string
api备注
示例值:
key01
expired_at
string
必需
示例值:
2024-08-17T08:44:47.886Z
max_fee
string
必需
示例值:
3500000
permissions
string
密钥可调用的模型
示例值:
["gpt-3.5-turbo","gpt-3.5-turbo-0301","gpt-4","gpt-4-0314","gpt-4-32k","gpt-4-32k-0314","text-davinci-003","text-davinci-002","text-curie-001","text-babbage-001","text-ada-001","text-embedding-ada-002","text-search-ada-doc-001","dall-e"]
is_check_permission
string
可选
示例值:
true
示例代码
返回响应
修改于 2024-11-11 08:05:20