← 返回接入教程
GET
/api/proxy/usage · Usage 用量
查询当前 API Key 所属账号的 Credit。不扣费,不调用上游,不写调用日志。MCP 工具名 usage,无参数。remaining = poolRemaining + prepaidCredits。
响应字段
代码示例
cURL
Python
JavaScript
Go
curl https://tavily.sharyuke.com/api/proxy/usage \
-H "Authorization: Bearer thb-xxxxxxxx"响应示例
{ "code": 0, "message": "success", "data": { "remaining": 135, "maxCredits": 115, "prepaidCredits": 50, "creditsUsed": 30, "poolRemaining": 85 } }错误码
准备好接入了吗?
邮箱注册即可免费使用,每月 3,600 次免费调用,无需信用卡。