[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7921F8J1WMF678YK3NEV7F6":3,"skill-same:01M7921F8J1WMF678YK3NEV7F6":57},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M7921F8J1WMF678YK3NEV7F6","klingai-batch-processing",null,"Process multiple video generation requests efficiently with Kling AI. Use when generating\nbatches of videos or building content pipelines. Trigger with phrases like 'klingai batch',\n'kling ai bulk', 'multiple videos klingai', 'klingai parallel generation'.","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--klingai-pack--klingai-batch-processing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: klingai-batch-processing\ndescription: |\n  Process multiple video generation requests efficiently with Kling AI. Use when generating\n  batches of videos or building content pipelines. Trigger with phrases like 'klingai batch',\n  'kling ai bulk', 'multiple videos klingai', 'klingai parallel generation'.\nallowed-tools: Read, Write, Edit, Bash(npm:*), Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, kling-ai, batch, pipelines]\n---\n# Kling AI Batch Processing\n\n## Overview\n\nGenerate multiple videos efficiently using controlled parallelism, rate-limit-aware submission, progress tracking, and result collection. All requests go through `https:\u002F\u002Fapi.klingai.com\u002Fv1`.\n\n## Batch Submission with Rate Limiting\n\n```python\nimport jwt, time, os, requests\n\nBASE = \"https:\u002F\u002Fapi.klingai.com\u002Fv1\"\n\ndef get_headers():\n    ak, sk = os.environ[\"KLING_ACCESS_KEY\"], os.environ[\"KLING_SECRET_KEY\"]\n    token = jwt.encode(\n        {\"iss\": ak, \"exp\": int(time.time()) + 1800, \"nbf\": int(time.time()) - 5},\n        sk, algorithm=\"HS256\", headers={\"alg\": \"HS256\", \"typ\": \"JWT\"}\n    )\n    return {\"Authorization\": f\"Bearer {token}\", \"Content-Type\": \"application\u002Fjson\"}\n\ndef submit_batch(prompts, model=\"kling-v2-master\", duration=\"5\",\n                 mode=\"standard\", max_concurrent=3, delay=2.0):\n    \"\"\"Submit batch with controlled concurrency and pacing.\"\"\"\n    tasks = []\n    active = []\n\n    for i, prompt in enumerate(prompts):\n        # Wait if at concurrency limit\n        while len(active) >= max_concurrent:\n            active = [t for t in active if not check_complete(t[\"task_id\"])]\n            if len(active) >= max_concurrent:\n                time.sleep(5)\n\n        response = requests.post(f\"{BASE}\u002Fvideos\u002Ftext2video\", headers=get_headers(), json={\n            \"model_name\": model,\n            \"prompt\": prompt,\n            \"duration\": duration,\n            \"mode\": mode,\n        })\n        data = response.json()[\"data\"]\n        task = {\"task_id\": data[\"task_id\"], \"prompt\": prompt, \"index\": i}\n        tasks.append(task)\n        active.append(task)\n        print(f\"[{i+1}\u002F{len(prompts)}] Submitted: {data['task_id']}\")\n        time.sleep(delay)  # pace requests\n\n    return tasks\n\ndef check_complete(task_id):\n    r = requests.get(f\"{BASE}\u002Fvideos\u002Ftext2video\u002F{task_id}\", headers=get_headers()).json()\n    return r[\"data\"][\"task_status\"] in (\"succeed\", \"failed\")\n```\n\n## Collect Results\n\n```python\ndef collect_results(tasks, timeout=600):\n    \"\"\"Wait for all tasks and collect results.\"\"\"\n    results = {}\n    start = time.monotonic()\n\n    while len(results) \u003C len(tasks) and time.monotonic() - start \u003C timeout:\n        for task in tasks:\n            if task[\"task_id\"] in results:\n                continue\n            r = requests.get(\n                f\"{BASE}\u002Fvideos\u002Ftext2video\u002F{task['task_id']}\", headers=get_headers()\n            ).json()\n            status = r[\"data\"][\"task_status\"]\n            if status == \"succeed\":\n                results[task[\"task_id\"]] = {\n                    \"status\": \"succeed\",\n                    \"url\": r[\"data\"][\"task_result\"][\"videos\"][0][\"url\"],\n                    \"prompt\": task[\"prompt\"],\n                }\n            elif status == \"failed\":\n                results[task[\"task_id\"]] = {\n                    \"status\": \"failed\",\n                    \"error\": r[\"data\"].get(\"task_status_msg\", \"Unknown\"),\n                    \"prompt\": task[\"prompt\"],\n                }\n        if len(results) \u003C len(tasks):\n            time.sleep(15)\n\n    return results\n```\n\n## Async Batch with asyncio\n\n```python\nimport asyncio\nimport aiohttp\n\nasync def async_batch(prompts, max_concurrent=3):\n    \"\"\"Async batch processing with semaphore-controlled concurrency.\"\"\"\n    semaphore = asyncio.Semaphore(max_concurrent)\n    results = {}\n\n    async def generate_one(prompt, index):\n        async with semaphore:\n            async with aiohttp.ClientSession() as session:\n                # Submit\n                async with session.post(\n                    f\"{BASE}\u002Fvideos\u002Ftext2video\",\n                    headers=get_headers(),\n                    json={\"model_name\": \"kling-v2-master\", \"prompt\": prompt,\n                          \"duration\": \"5\", \"mode\": \"standard\"},\n                ) as resp:\n                    data = (await resp.json())[\"data\"]\n                    task_id = data[\"task_id\"]\n\n                # Poll\n                while True:\n                    await asyncio.sleep(10)\n                    async with session.get(\n                        f\"{BASE}\u002Fvideos\u002Ftext2video\u002F{task_id}\",\n                        headers=get_headers(),\n                    ) as resp:\n                        data = (await resp.json())[\"data\"]\n                        if data[\"task_status\"] == \"succeed\":\n                            results[index] = data[\"task_result\"][\"videos\"][0][\"url\"]\n                            return\n                        elif data[\"task_status\"] == \"failed\":\n                            results[index] = f\"FAILED: {data.get('task_status_msg')}\"\n                            return\n\n    await asyncio.gather(*[generate_one(p, i) for i, p in enumerate(prompts)])\n    return results\n```\n\n## Batch with Callbacks (No Polling)\n\n```python\ndef submit_batch_with_callbacks(prompts, callback_url):\n    \"\"\"Submit batch with webhook callbacks -- no polling needed.\"\"\"\n    tasks = []\n    for prompt in prompts:\n        r = requests.post(f\"{BASE}\u002Fvideos\u002Ftext2video\", headers=get_headers(), json={\n            \"model_name\": \"kling-v2-master\",\n            \"prompt\": prompt,\n            \"duration\": \"5\",\n            \"mode\": \"standard\",\n            \"callback_url\": callback_url,\n        }).json()\n        tasks.append(r[\"data\"][\"task_id\"])\n        time.sleep(2)  # rate limit pacing\n    return tasks\n```\n\n## Cost Estimation Before Batch\n\n```python\ndef estimate_batch_cost(count, duration=5, mode=\"standard\", audio=False):\n    credits_map = {(5, \"standard\"): 10, (5, \"professional\"): 35,\n                   (10, \"standard\"): 20, (10, \"professional\"): 70}\n    per_video = credits_map.get((duration, mode), 10)\n    if audio:\n        per_video *= 5\n    total = count * per_video\n    print(f\"Batch: {count} videos x {per_video} credits = {total} credits\")\n    print(f\"Estimated cost: ${total * 0.14:.2f}\")\n    return total\n\n# Check before submitting\nneeded = estimate_batch_cost(50, duration=5, mode=\"standard\")\n```\n\n## Resources\n\n- [API Reference](https:\u002F\u002Fapp.klingai.com\u002Fglobal\u002Fdev\u002Fdocument-api\u002FapiReference\u002Fmodel\u002FtextToVideo)\n- [Developer Portal](https:\u002F\u002Fapp.klingai.com\u002Fglobal\u002Fdev)\n","# Kling AI Batch Processing\n\n## Overview\n\nGenerate multiple videos efficiently using controlled parallelism, rate-limit-aware submission, progress tracking, and result collection. All requests go through `https:\u002F\u002Fapi.klingai.com\u002Fv1`.\n\n## Batch Submission with Rate Limiting\n\n```python\nimport jwt, time, os, requests\n\nBASE = \"https:\u002F\u002Fapi.klingai.com\u002Fv1\"\n\ndef get_headers():\n    ak, sk = os.environ[\"KLING_ACCESS_KEY\"], os.environ[\"KLING_SECRET_KEY\"]\n    token = jwt.encode(\n        {\"iss\": ak, \"exp\": int(time.time()) + 1800, \"nbf\": int(time.time()) - 5},\n        sk, algorithm=\"HS256\", headers={\"alg\": \"HS256\", \"typ\": \"JWT\"}\n    )\n    return {\"Authorization\": f\"Bearer {token}\", \"Content-Type\": \"application\u002Fjson\"}\n\ndef submit_batch(prompts, model=\"kling-v2-master\", duration=\"5\",\n                 mode=\"standard\", max_concurrent=3, delay=2.0):\n    \"\"\"Submit batch with controlled concurrency and pacing.\"\"\"\n    tasks = []\n    active = []\n\n    for i, prompt in enumerate(prompts):\n        # Wait if at concurrency limit\n        while len(active) >= max_concurrent:\n            active = [t for t in active if not check_complete(t[\"task_id\"])]\n            if len(active) >= max_concurrent:\n                time.sleep(5)\n\n        response = requests.post(f\"{BASE}\u002Fvideos\u002Ftext2video\", headers=get_headers(), json={\n            \"model_name\": model,\n            \"prompt\": prompt,\n            \"duration\": duration,\n            \"mode\": mode,\n        })\n        data = response.json()[\"data\"]\n        task = {\"task_id\": data[\"task_id\"], \"prompt\": prompt, \"index\": i}\n        tasks.append(task)\n        active.append(task)\n        print(f\"[{i+1}\u002F{len(prompts)}] Submitted: {data['task_id']}\")\n        time.sleep(delay)  # pace requests\n\n    return tasks\n\ndef check_complete(task_id):\n    r = requests.get(f\"{BASE}\u002Fvideos\u002Ftext2video\u002F{task_id}\", headers=get_headers()).json()\n    return r[\"data\"][\"task_status\"] in (\"succeed\", \"failed\")\n```\n\n## Collect Results\n\n```python\ndef collect_results(tasks, timeout=600):\n    \"\"\"Wait for all tasks and collect results.\"\"\"\n    results = {}\n    start = time.monotonic()\n\n    while len(results) \u003C len(tasks) and time.monotonic() - start \u003C timeout:\n        for task in tasks:\n            if task[\"task_id\"] in results:\n                continue\n            r = requests.get(\n                f\"{BASE}\u002Fvideos\u002Ftext2video\u002F{task['task_id']}\", headers=get_headers()\n            ).json()\n            status = r[\"data\"][\"task_status\"]\n            if status == \"succeed\":\n                results[task[\"task_id\"]] = {\n                    \"status\": \"succeed\",\n                    \"url\": r[\"data\"][\"task_result\"][\"videos\"][0][\"url\"],\n                    \"prompt\": task[\"prompt\"],\n                }\n            elif status == \"failed\":\n                results[task[\"task_id\"]] = {\n                    \"status\": \"failed\",\n                    \"error\": r[\"data\"].get(\"task_status_msg\", \"Unknown\"),\n                    \"prompt\": task[\"prompt\"],\n                }\n        if len(results) \u003C len(tasks):\n            time.sleep(15)\n\n    return results\n```\n\n## Async Batch with asyncio\n\n```python\nimport asyncio\nimport aiohttp\n\nasync def async_batch(prompts, max_concurrent=3):\n    \"\"\"Async batch processing with semaphore-controlled concurrency.\"\"\"\n    semaphore = asyncio.Semaphore(max_concurrent)\n    results = {}\n\n    async def generate_one(prompt, index):\n        async with semaphore:\n            async with aiohttp.ClientSession() as session:\n                # Submit\n                async with session.post(\n                    f\"{BASE}\u002Fvideos\u002Ftext2video\",\n                    headers=get_headers(),\n                    json={\"model_name\": \"kling-v2-master\", \"prompt\": prompt,\n                          \"duration\": \"5\", \"mode\": \"standard\"},\n                ) as resp:\n                    data = (await resp.json())[\"data\"]\n                    task_id = data[\"task_id\"]\n\n                # Poll\n                while True:\n                    await asyncio.sleep(10)\n                    async with session.get(\n                        f\"{BASE}\u002Fvideos\u002Ftext2video\u002F{task_id}\",\n                        headers=get_headers(),\n                    ) as resp:\n                        data = (await resp.json())[\"data\"]\n                        if data[\"task_status\"] == \"succeed\":\n                            results[index] = data[\"task_result\"][\"videos\"][0][\"url\"]\n                            return\n                        elif data[\"task_status\"] == \"failed\":\n                            results[index] = f\"FAILED: {data.get('task_status_msg')}\"\n                            return\n\n    await asyncio.gather(*[generate_one(p, i) for i, p in enumerate(prompts)])\n    return results\n```\n\n## Batch with Callbacks (No Polling)\n\n```python\ndef submit_batch_with_callbacks(prompts, callback_url):\n    \"\"\"Submit batch with webhook callbacks -- no polling needed.\"\"\"\n    tasks = []\n    for prompt in prompts:\n        r = requests.post(f\"{BASE}\u002Fvideos\u002Ftext2video\", headers=get_headers(), json={\n            \"model_name\": \"kling-v2-master\",\n            \"prompt\": prompt,\n            \"duration\": \"5\",\n            \"mode\": \"standard\",\n            \"callback_url\": callback_url,\n        }).json()\n        tasks.append(r[\"data\"][\"task_id\"])\n        time.sleep(2)  # rate limit pacing\n    return tasks\n```\n\n## Cost Estimation Before Batch\n\n```python\ndef estimate_batch_cost(count, duration=5, mode=\"standard\", audio=False):\n    credits_map = {(5, \"standard\"): 10, (5, \"professional\"): 35,\n                   (10, \"standard\"): 20, (10, \"professional\"): 70}\n    per_video = credits_map.get((duration, mode), 10)\n    if audio:\n        per_video *= 5\n    total = count * per_video\n    print(f\"Batch: {count} videos x {per_video} credits = {total} credits\")\n    print(f\"Estimated cost: ${total * 0.14:.2f}\")\n    return total\n\n# Check before submitting\nneeded = estimate_batch_cost(50, duration=5, mode=\"standard\")\n```\n\n## Resources\n\n- [API Reference](https:\u002F\u002Fapp.klingai.com\u002Fglobal\u002Fdev\u002Fdocument-api\u002FapiReference\u002Fmodel\u002FtextToVideo)\n- [Developer Portal](https:\u002F\u002Fapp.klingai.com\u002Fglobal\u002Fdev)\n",{"name":5,"tags":24,"author":29,"license":15,"version":30,"description":31,"allowed-tools":32,"compatible-with":33},[25,26,27,28],"saas","kling-ai","batch","pipelines","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Process multiple video generation requests efficiently with Kling AI. Use when generating\nbatches of videos or building content pipelines. Trigger with phrases like 'klingai batch',\n'kling ai bulk', 'multiple videos klingai', 'klingai parallel generation'.\n","Read, Write, Edit, Bash(npm:*), Grep","claude-code, codex, openclaw","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--klingai-pack--klingai-batch-processing",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill klingai-batch-processing",{"tool":49,"command":50},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill klingai-batch-processing",{"tool":52,"command":53},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill klingai-batch-processing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--klingai-pack--klingai-batch-processing\u002FSKILL.md",true,[],[58,65,72,79,86,94],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]