Agent skill · software engineering · jeremylongshore
klingai-rate-limits
Handle Kling AI API rate limits with backoff and queuing strategies.
Why this skill is useful
Adds executable scripts for handling API rate limits with backoff and queuing strategies that are not commonly found in public documentation.
What it needs
Requires kling-ai account access. About 3k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.
What this skill does
Kling AI Rate Limits Overview Kling AI enforces rate limits per API key. When exceeded, the API returns 429 Too Many Requests. This skill covers detection, backoff strategies, request queuing, and concurrent job management. Rate Limit Tiers Tier Concurrent Tasks Requests/Min Notes ------ ------------------ ------------- ------- Free 1 10 66 daily credits cap Standard 3 30 Per API key Pro 5 60 Per API key Enterprise 10+ Custom Contact sales Exponential Backoff with Jitter Concurrent Task Limiter (asyncio) Rate Limit Monitor Request Queue Pattern Error Reference Scenario HTTP Code Action ---------- ----------- -------- Soft rate limit 429 + Retry-After Wait specified seconds Hard rate limit 429 no header Backoff from 1s, double each attempt Concurrent limit hit 429 or task rejection Wait for active tasks to complete Burst detection Multiple 429s Aggressive backoff (30-60s) Prerequisites An approved sandbox workload, synthetic or rights-cleared brief, current quota baseline, budget cap, draft-only destination, and a named operator for pause and rollback. Instructions 1. Exercise limits with bounded draft-only canaries; reject unapproved sources, publishing destinations, or requests that exceed the approved credit budget. 2. Use idempotency keys and backoff, recording aggregate status and credit consumption rather than prompt content or asset URLs. 3. Stop queued work on quota, policy, rights, or retention drift; cancel tasks and restore the prior rate configuration before retrying. 4. Keep a redacted receipt only and delete test artifacts when the approved retention window ends. Output Produce a rate-limit receipt with environment, request budget, aggregate response/error counts, credit use, draft-only/policy outcome, pause or rollback action, owner approval, and cleanup proof. Exclude prompts, assets, and credentials. Error Handling Condition Response --- --- Credit budget or quota anomaly Pause the canary, cancel queued tasks, and restore the approved configuration. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/klingai-rate-limits--e53a40