| name | klingai-style-transfer |
| description | Apply artistic styles and visual effects to Kling AI video generation. Use when creating
stylized content or using effects API. Trigger with phrases like 'klingai style', 'kling ai effects',
'klingai artistic video', 'stylize klingai video'.
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Grep |
| version | 1.18.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","kling-ai","style-transfer","effects"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Kling AI Style Transfer & Effects
Overview
Apply artistic styles through prompt engineering, use the Effects API for pre-built visual transformations, and leverage Kolors for image-based style references. Available on v1.6+ models.
Style via Prompt Engineering
The most direct approach -- include style descriptors in your prompt:
import jwt, time, os, requests
BASE = "https://api.klingai.com/v1"
def get_headers():
ak, sk = os.environ["KLING_ACCESS_KEY"], os.environ["KLING_SECRET_KEY"]
token = jwt.encode(
{"iss": ak, "exp": int(time.time()) + 1800, "nbf": int(time.time()) - 5},
sk, algorithm="HS256", headers={"alg": "HS256", "typ": "JWT"}
)
return {"Authorization": f"Bearer {token}", "Content-Type": "application/json"}
response = requests.post(f"{BASE}/videos/text2video", headers=get_headers(), json={
"model_name": "kling-v2-6",
"prompt": "A cozy cottage in a meadow, hand-painted watercolor style, "
"soft pastel colors, Studio Ghibli aesthetic, gentle breeze",
"negative_prompt": "photorealistic, harsh lighting, dark, gritty",
"duration": "5",
"mode": "professional",
"cfg_scale": 0.7,
})