Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Implements per-request cost estimation, daily credit budget enforcement, threshold alerts and usage tracking for Kling AI video generation.
50% 79%+29 ptsof test cases passed
Passed 19 of 24 test cases with the skill, and 12 of 24 without it.
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?
Sets daily_limit default to 1000 credits.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
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()
Next to this one in the catalogue, plus more from the same author.