ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 3/5

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/hexiaochun/pricing-test
Or

What 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_price implementation to running automated batch tests) to isolate the cause.

Example Prompts

  1. "Run a pricing test for the latest Wan V2.6 video model and verify that the 1080p duration charges are correct."
  2. "I need to validate the扣费 (deduction) logic for the new image-to-video API endpoint; please guide me through the verification steps."
  3. "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.py script 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

Stars2387
Views1
Updated2026-03-09
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-hexiaochun-pricing-test": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#pricing#billing#api-testing#model-management
Safety Score: 3/5

Flags: network-access, file-read, external-api, code-execution