Kimi API balance requesting script #5544
yangchaohong
started this conversation in
Ideas
Replies: 1 comment
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Kimi API 余额查询脚本,测试可用
Kimi API balance requesting script, have been tested.
({ request: { url: "https://api.moonshot.cn/v1/users/me/balance", method: "GET", headers: { "Authorization": "Bearer {{apiKey}}", "User-Agent": "cc-switch/1.0", "Content-Type": "application/json" } }, extractor: function(response) { return { remaining: response.data.available_balance, unit: "CNY" }; } })All reactions