Install any skill in seconds. Free to start, no credit card required.
Get Started Free →jeremylongshore/klingai-cost-controls
Implement budget limits, usage alerts, and spending controls for Kling AI.
Passed 19 of 24 test cases with the skill, and 12 of 24 without it.
and 6 more in the full report
7 fixed12 passed either way5 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 7 test cases the skill fixed. Same model, same prompt, with and without the skill.
When initializing a default BudgetGuard instance for Kling AI credit control without explicit arguments, what is the default daily credit limit and default alert threshold ratio?
| Checked | Without skill | With skill |
|---|---|---|
| Sets daily_limit default to 1000 credits. | Missed | Passed |
| Sets alert_threshold default to 0.8. | Passed | Passed |
The instructions your model reads when the skill loads.
Prevent unexpected spending with per-request cost estimation, daily budget enforcement, threshold alerts, and usage dashboards. Credits are consumed per task based on duration, mode, and audio.
| Config | Credits |
|---|---|
| 5s standard | 10 |
| 5s professional | 35 |
| 10s standard | 20 |
| 10s professional | 70 |
| 5s standard + audio (v2.6) | 50 |
| 10s professional + audio (v2.6) | 200 |
| Image generation (Kolors) | 1 |
| Virtual try-on | 5 |
import time
from dataclasses import dataclass, field
@dataclass
class BudgetGuard:
"""Enforce daily credit budget with alerting."""
daily_limit: int = 1000
alert_threshold: float = 0.8 # alert at 80%
_used: int = 0
_reset_time: float = field(default_factory=time.time)
_alerts_sent: set = field(default_factory=set)
def _check_reset(self):
if time.time() - self._reset_time > 86400:
self._used = 0
self._reset_time = time.time()
self._alerts_sent.clear()
test cases passed, vs 12 / 24 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.