Skip to main content
PUT
修改 API KEY 信息
Updates the information of a specific API key using its UUID. Authenticate with a system key, not a model API key. Create and copy the system key before calling this endpoint.

Authorizations

Authorization
string
header
required

极客智坊系统KEY

Body

application/json
name
string
default:default
required

名称,可用于标识 API KEY 的使用场景/用途,便于后续管理/统计费用

Example:

"geekai"

group
enum<string>
default:balance
required

代理策略分组,用于区分不同的代理策略,目前支持四个策略:lowcost(低价优先), balance(均衡), ha(高可用), none(不使用代理)

Available options:
lowcost,
balance,
ha,
none
Example:

"balance"

credit_limit
number
default:0

信用额度,单位:金币(1金币=0.01元),用于限时 API KEY 的消费上限,超出额度后将无法继续使用

Example:

10000

expired_at
string<date>
default:""

过期时间,过期后将无法继续使用

Example:

"2025-12-31"

Response

成功响应

message
string

成功/失败响应消息