[feat request] Support ListModelTokenLimit / UpdateModelTokenLimit for per-model inference token quota
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
Research direction
Start in internal/apis/model/ by reading the existing model.list_model_rate_limit operation and its registration pattern. Confirm the OpenTOP action name and request contract for the update operation before implementing either registration. Done means both token-limit operations are available through arkcli api, with the list response exposing the reported quota and usage fields.
Written by the indexing model from the issue text.
Description
背景
火山方舟控制台「开通管理」页每个已开通模型都有一个**推理限额(Token Limit)**配置:超过这个 token 总量后模型会被限流,需要在控制台手动调高。这是按模型独立的 token 总量配额,不是 RPM/TPM(每分钟速率),也不是免费额度资源包(FreeInference / DataPermission)。
控制台对应接口:
POST /api/top/ark/cn-beijing/2024-01-01/ListModelTokenLimit- 对应的更新接口(推测为
UpdateModelTokenLimit,需维护者确认实际 action 名)
现状
arkcli 已注册的 model.* action 里:
model.list_model_rate_limit只返回 RPM/TPM(每分钟速率),没有 token 总量维度model.list_model_charge_items只返回资源包余额,没有用户配置的限额上限model.list_model_meta_datas是模型能力元数据,不是用户配额
model.list_model_token_limit / model.update_model_token_limit 均未在 arkcli 注册,arkcli api model.list_model_token_limit 报 unknown action。
期望
在 internal/apis/model/ 注册这两个 operation:
1. model.list_model_token_limit
请求体:
{"FoundationModelNames": ["glm-5-2", "doubao-seed-2-1-pro"]}
响应体(实测):
{
"Result": {
"ModelTokenLimits": [
{
"FoundationModelName": "glm-5-2",
"TokenLimit": 2008227,
"CurrentUsage": 833808,
"TokenLimitStartTime": "2026-07-30T09:59:53+08:00",
"CurrentUsageRefreshTime": "2026-07-30T10:13:27+08:00"
}
]
}
}
2. model.update_model_token_limit
具体 action 名和参数请维护者按 OpenTOP 实际契约定。推测请求体包含 FoundationModelName + TokenLimit(新值)。
使用场景
Agent / 自动化运维场景下需要:
- 监控各模型 token 配额使用率(
CurrentUsage / TokenLimit),接近上限时告警 - 批量调整多个模型的
TokenLimit(开通新模型时一次性配好)
- Dominant language
- Go
- Stars
- 133
- Forks
- 13
- Avg merge
- 2m
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from volcengine/ark-cli
-
[BUG] Responses API:tools 含 web_search 声明时,deepseek 将 function_call_output 误读为用户消息,多轮工具对话可形成死循环 Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
volcengine/ark-cli#26 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
volcengine/ark-cli#25 · 1 comment ·
-
[UX] postinstall silently injects 25 arkcli skills into every detected AI agent — should be opt-in Open
Difficulty 4/5 3-5 days Newbie friendliness 52/100
volcengine/ark-cli#24 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
volcengine/ark-cli#16 · 1 comment ·
-
wontfix
Difficulty 4/5 3-5 days Newbie friendliness 45/100
volcengine/ark-cli#12 · 2 comments ·
All issues in volcengine/ark-cli
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100