klingai-reference-architecture

Featured

Production reference architecture for Kling AI video generation platforms. Use when designing scalable systems. Trigger with phrases like 'klingai architecture', 'kling ai system design', 'video platform architecture', 'klingai production setup'.

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Kling AI Reference Architecture ## Overview Production architecture for video generation platforms built on Kling AI. Covers API gateway, job queue, worker pool, storage, and monitoring layers. ## Architecture Diagram ``` User Request | [API Gateway / Load Balancer] | [Application Server] |--- validate prompt & estimate cost |--- enqueue job to Redis/SQS | [Job Queue (Redis / SQS / Pub/Sub)] | [Worker Pool (N workers)] |--- generate JWT token |--- POST https://api.klingai.com/v1/videos/text2video |--- receive task_id |--- register callback_url OR poll | [Webhook Receiver / Poller] |--- receive completion callback |--- download video from Kling CDN |--- upload to S3/GCS |--- update job status in DB |--- notify user | [Object Storage (S3 / GCS)] | [CDN (CloudFront / Cloud CDN)] | User views video ``` ## Component Details ### API Layer ```python from fastapi import FastAPI, HTTPException from pydantic import BaseModel app = FastAPI() class VideoRequest(BaseModel): prompt: str model: str = "kling-v2-master" duration: int = 5 mode: str = "standard" @app.post("/api/videos") async def create_video(req: VideoRequest): # 1. Validate if len(req.prompt) > 2500: raise HTTPException(400, "Prompt exceeds 2500 chars") # 2. Estimate cost credits = estimate_credits(req.duration, req.mode) if not budget_guard.check(credits): raise HTTPException(402, "Budg...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

klingai-ci-integration

Integrate Kling AI video generation into CI/CD pipelines. Use when automating video content in GitHub Actions or GitLab CI. Trigger with phrases like 'klingai ci', 'kling ai github actions', 'klingai automation', 'automated video generation'.

2,266 Updated today
jeremylongshore
AI & Automation Featured

klingai-batch-processing

Process multiple video generation requests efficiently with Kling AI. Use when generating batches of videos or building content pipelines. Trigger with phrases like 'klingai batch', 'kling ai bulk', 'multiple videos klingai', 'klingai parallel generation'.

2,266 Updated today
jeremylongshore
AI & Automation Featured

klingai-async-workflows

Build async video generation workflows with Kling AI using queues, state machines, and event-driven patterns. Trigger with phrases like 'klingai async', 'kling ai workflow', 'klingai pipeline', 'async video generation'.

2,266 Updated today
jeremylongshore
AI & Automation Featured

klingai-hello-world

Create your first Kling AI video generation with a minimal working example. Use when learning Kling AI or testing your setup. Trigger with phrases like 'kling ai hello world', 'first kling video', 'klingai quickstart', 'test klingai'.

2,266 Updated today
jeremylongshore
AI & Automation Featured

klingai-prod-checklist

Production readiness checklist for Kling AI integrations. Use before going live or during deployment review. Trigger with phrases like 'klingai production ready', 'kling ai go live', 'klingai checklist', 'deploy klingai'.

2,266 Updated today
jeremylongshore