pricing-test
测试和校验 V3 API 模型的定价信息和实际扣费。当用户要测试模型价格、校验扣费、验证新模型定价、或提到"价格测试"、"扣费测试"时使用此 skill。
Why use this skill?
Use the pricing-test skill to validate V3 API model pricing, check credit deduction accuracy, and ensure your model billing logic aligns with official provider rates.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/hexiaochun/pricing-testWhat This Skill Does
The pricing-test skill is a critical tool for developers and maintainers managing V3 API model integrations within the OpenClaw ecosystem. It provides a standardized framework to verify that the credit-based billing system correctly mirrors the actual pricing structures of external AI providers like Fal.ai. By utilizing this skill, you can audit the accuracy of model price displays in your application and validate the backend deduction logic. The skill automates the workflow of checking official provider pricing, comparing it against local Executor configuration files (such as PRICE_MAP), and performing live API calls to confirm that final deductions match the expected credit conversions. It ensures transparency in your cost management by strictly enforcing a rule of 1 USD to 400 credits.
Installation
To integrate this skill into your environment, use the command-line interface provided by Clawhub:
clawhub install openclaw/skills/skills/hexiaochun/pricing-test
Ensure you have access to the translate_api codebase directory and the necessary environment variables for your API_KEY to interact with the backend services. Verify that your system has Python 3 installed, as the diagnostic scripts rely on standard JSON parsing libraries.
Use Cases
- New Model Deployment: When adding a new AI model to the platform, use this skill to calibrate its billing logic and confirm that users are charged the correct amount based on model parameters like resolution or duration.
- Pricing Audits: Regularly perform spot checks on existing models to ensure that updates to external pricing are accurately reflected in your internal billing API.
- Error Troubleshooting: When users report unexpected credit deductions or pricing discrepancies, this skill provides the systematic steps (from checking the
get_priceimplementation to running automated batch tests) to isolate the cause.
Example Prompts
- "Run a pricing test for the latest Wan V2.6 video model and verify that the 1080p duration charges are correct."
- "I need to validate the扣费 (deduction) logic for the new image-to-video API endpoint; please guide me through the verification steps."
- "Our system is showing an incorrect price for the model; can you run the pricing-test script to check the configuration in
translate_api/app/api/v3/executors/?"
Tips & Limitations
- Precision is Key: Always verify calculations using the 1 USD = 400 credits ratio before running live tests to prevent database inconsistencies.
- Environment Safety: This skill involves executing API calls against production or staging databases; ensure you are targeting the correct test environment to avoid real credit depletion.
- Automated Scripts: For large-scale model deployments, utilize the
translate_api/test_pricing.pyscript provided in the source repository to automate batch validation instead of relying solely on manual CURL commands. - Troubleshooting: If you see "按数量计费" (pay-per-count) displayed for a video model, double-check your
_is_video_model()boolean logic in the executor configuration.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-hexiaochun-pricing-test": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-read, external-api, code-execution
Related Skills
水浒传故事小人书
水浒传故事小人书创建。使用 Nano Banana Pro 模型生成手绘卡通风格的水浒传故事信息图。当用户想要创建水浒传故事插画、小人书、信息图时使用此 skill。
style-extractor
从参考剧本或参考素材中提取统一风格锚点(STYLE_BASE),确保全剧视觉一致性。当需要匹配参考风格、提取画风、建立风格基准、生成风格资产包时使用。
视频链接解析
解析视频分享链接,获取无水印视频下载地址。当用户想要下载视频、解析抖音/快手/小红书/B站链接、获取无水印视频时使用此 skill。
vidu-video
使用 Vidu Q3 Pro 模型生成视频。当用户想要文生视频、生成带音频的视频,或提到 vidu 时使用此 skill。
character-creator
创建AI角色的完整流程,包括生成详细角色描述、文生图肖像和多角度参考图。使用即梦4.5模型。当用户要求创建角色、生成人物立绘、制作角色参考图、或需要多角度人物图时使用此技能。