Jisuai AI Balance Query
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_2f4f5fd9/jisuai-balance into your AI assistant.
About this skill
Problem solved
When users ask how much Jisuai AI balance remains or how many calls are left, manually locating the config, building the API request, and parsing the JSON response is error-prone. This skill turns that workflow into a deterministic query path: it recognizes prompts such as “query Jisuai AI balance” or “how many Jisuai AI calls are left,” finds the existing Jisuai AI credential, and returns a clear result.
How it works
- Automatic config lookup: It reads
models.providersin~/.openclaw/openclaw.json, finds the entry whosebaseUrlishttps://v2.aicodee.com, and uses the matchingapiKey. If the key was already configured, users do not need to provide it manually again. - Balance API call: It runs
scripts/check_balance.pyand requestshttp://v2api.aicodee.com/chaxun/balance?key={api_key}. The response includestotalfor the account balance in USD andnumfor the remaining call count. - Question-aware output: For balance-only questions it returns
Your balance is: ${total}; for call-count questions it returnsYou have {num} calls left; for combined questions it returns both. If the response hassuccess: false, it surfaces themessage; if the call fails or noAPI Keyis configured, it returns the corresponding warning.
Scope and limits
This skill only covers Jisuai AI balance and remaining-call-count queries. It does not handle top-up, configuration changes, or credentials for other platforms. Results depend on an existing apiKey in the OpenClaw configuration and on the API response, so missing credentials or API outages can only produce user-facing prompts to check the configuration or retry later.
Use Cases
- Before running Jisuai AI tasks, check whether the USD balance and remaining call count are enough for the current batch.
- When users ask “how many Jisuai AI calls are left,” automatically read OpenClaw config and return the remaining count.
- When troubleshooting quota issues, use the success:false message to distinguish missing key from insufficient balance.
- Before execution, verify that ~/.openclaw/openclaw.json contains an apiKey under the v2.aicodee.com provider.
Best For
- OpenClaw users who already configured Jisuai AI and need to check balance and remaining calls in chat.
- Engineers maintaining AI API configs who need to confirm the key is present and account quota is sufficient.
- Operations staff running Jisuai AI batch jobs who need to verify balance and call count before execution.
- Support engineers troubleshooting failed calls who need to distinguish a missing API key from low quota.
Related Skills
Organizes files by extension into subfolders like Documents, Code, and Archives, then outputs a report.
Extract tables, formulas, charts, and layout from invoices, reports, papers, and multi-column documents.
Generates a multi-sheet Excel report containing only structured data tables from byteplan-analysis results.
Automatically sort directory files into type-based folders, with dry-run preview, reports, and JSON custom rules.