Api Billing

👤 yifeiwang1981 📦 v1.0.0 ⭐ 4.3 ⬇️ 583 下載
📈 商業運營 免費 🔑 需 API Key

📖 技能介紹


name: api-billing description: API賬戶餘額與歷史賬單查詢工具。支援火山引擎、阿里雲、DeepSeek、MiniMax、OpenRouter等平臺的餘額查詢和歷史賬單功能。用於查詢各平臺賬戶餘額、訂閱用量、歷史消費記錄。

這個技能的最新版本可以在7w4.net小蔥技能站找到。


API 賬戶賬單查詢工具

概述

此技能提供多個平臺的餘額查詢和歷史賬單功能,幫助追蹤API使用費用。

功能

  • 火山引擎: 餘額查詢 + 歷史賬單(近6個月)
  • 阿里雲: 餘額查詢 + 歷史賬單
  • DeepSeek: 餘額查詢
  • MiniMax: Coding Plan 用量查詢
  • OpenRouter: 餘額查詢

憑證配置

所有憑證檔案存放在 ~/.openclaw/workspace/ 目錄:

檔案 用途
.volc_ak_sk.env 火山引擎 AccessKey/SecretKey
.aliyun_ak_sk.env 阿里雲 AccessKey/SecretKey
.minimax_cp_key.env MiniMax Coding Plan API Key
.deepseek_key.env DeepSeek API Key
.openrouter_key.env OpenRouter API Key

使用方法

# 火山引擎(餘額 + 歷史賬單)
python3 skills/api-billing/scripts/query_volc_billing.py
python3 skills/api-billing/scripts/query_volc_billing.py --history

# 阿里雲
python3 skills/api-billing/scripts/query_aliyun_balance.py

# DeepSeek
python3 skills/api-billing/scripts/query_deepseek_balance.py

# MiniMax
python3 skills/api-billing/scripts/query_minimax_plan.py

# OpenRouter
python3 skills/api-billing/scripts/query_openrouter_balance.py

敏感資訊保護

  • 憑證檔案使用 Base64 編碼儲存
  • 檔案許可權設為 600(僅自己可讀寫)
  • 已加入 .gitignore,不會提交到 GitHub

🤖 AI 評測

這是一套實用的多平臺 API 費用管理工具,能同時查詢火山引擎、阿里雲、DeepSeek 等多個賬戶的餘額和歷史消費記錄。文件通俗易懂,操作方式統一。安全方面做得不錯,憑證資訊經過加密保護。但整體缺少使用示例,部分指令碼功能比較基礎,整體質量中規中矩,適合有技術基礎的使用者使用。

📊 多維度評分

適應性3.9
規範性4.2
有效性4.3
可靠性4.1
可信度4.9

📁 包含檔案 (9 個)

📄 SKILL.md 1.6 KB
📄 _meta.json 130 B
📄 references/api-reference.md 1.4 KB
📄 scripts/key_rotation_reminder.sh 512 B
📄 scripts/query_aliyun_balance.py 2.9 KB
📄 scripts/query_deepseek_balance.py 2.2 KB
📄 scripts/query_minimax_plan.py 2.6 KB
📄 scripts/query_openrouter_balance.py 2 KB
📄 scripts/query_volc_billing.py 6.4 KB