klingai-style-transfer
Tools for applying artistic styles and visual effects to Kling AI video generations.
Install
mkdir -p .claude/skills/klingai-style-transfer && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5441" && unzip -o skill.zip -d .claude/skills/klingai-style-transfer && rm skill.zipInstalls to .claude/skills/klingai-style-transfer
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Apply artistic styles and visual effects to Kling AI video generation.Key capabilities
- →Apply artistic style descriptors to prompts
- →Execute visual transformations via Effects API
- →Generate styled images using Kolors
- →Configure cfg_scale for prompt adherence
- →Maintain style consistency across video clips
How it works
The skill uses prompt engineering and the Effects API to apply visual transformations and artistic styles to Kling AI video generation.
Inputs & outputs
When to use klingai-style-transfer
- →Apply artistic style descriptors to video prompts
- →Configure pre-built visual effects via the Effects API
- →Reference images for consistent style transfer
- →Optimize negative prompts for specific art styles
About this skill
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"}
# Style: Studio Ghibli watercolor
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, # higher = stricter prompt adherence
})
Style Prompt Recipes
| Style | Prompt Keywords | cfg_scale |
|---|---|---|
| Cinematic | "cinematic lighting, anamorphic lens, film grain, 35mm" | 0.5-0.6 |
| Anime | "anime style, cel-shaded, vibrant colors, clean lines" | 0.6-0.7 |
| Watercolor | "watercolor painting, soft edges, pastel, hand-painted" | 0.7-0.8 |
| Oil painting | "oil painting, thick brushstrokes, impasto, canvas texture" | 0.7-0.8 |
| Neon/cyberpunk | "neon lights, cyberpunk, rain, dark city, purple and blue" | 0.5-0.6 |
| Vintage film | "vintage 8mm film, warm tones, light leaks, soft focus" | 0.6-0.7 |
| Pixel art | "pixel art style, retro 16-bit, limited palette" | 0.8-0.9 |
| Photorealistic | "photorealistic, 4K, natural lighting, DSLR quality" | 0.4-0.5 |
Effects API
The Effects API applies pre-built transformations to existing images. Available on v1.6+.
Endpoint: POST https://api.klingai.com/v1/videos/effects
# Apply an effect to an image
response = requests.post(f"{BASE}/videos/effects", headers=get_headers(), json={
"model_name": "kling-v1-6",
"image": "https://example.com/portrait.jpg",
"effect_type": "hug", # effect to apply
"duration": "5",
"mode": "standard",
})
task_id = response.json()["data"]["task_id"]
# Poll for result as usual
Available Effects
| Effect | Description |
|---|---|
hug | Embrace/hug motion between subjects |
kiss | Kiss animation between subjects |
heart | Heart gesture or heart-shaped framing |
expand | Zoom/expand outward effect |
squish | Compression/squish animation |
Kolors Image Restyle
Use Kolors to restyle images before converting to video:
# Generate styled image with Kolors
image_response = requests.post(f"{BASE}/images/kolors", headers=get_headers(), json={
"prompt": "A cyberpunk city street, neon signs, rain-slicked roads",
"aspect_ratio": "16:9",
"imageCount": 1,
})
# Then use the generated image as input for I2V
image_url = image_response.json()["data"]["images"][0]["url"]
video_response = requests.post(f"{BASE}/videos/image2video", headers=get_headers(), json={
"model_name": "kling-v2-1",
"image": image_url,
"prompt": "Camera slowly pushes forward through the rain, neon reflections",
"duration": "5",
"mode": "professional",
})
cfg_scale Tuning
The cfg_scale parameter (0.0-1.0) controls how strictly the model follows your prompt:
| cfg_scale | Effect |
|---|---|
| 0.0-0.3 | More creative freedom, may drift from prompt |
| 0.4-0.5 | Balanced (default), natural results |
| 0.6-0.7 | Stronger prompt adherence |
| 0.8-1.0 | Very strict, may reduce quality/naturalness |
For style transfer: Use 0.6-0.8 to ensure the style keywords are respected.
Style Consistency Across Clips
# Use a consistent style template for all clips in a project
STYLE_TEMPLATE = {
"suffix": ", cinematic lighting, 35mm film grain, warm color grading, "
"anamorphic lens flare, shallow depth of field",
"negative": "cartoon, anime, painting, illustration, CGI, digital art",
"cfg_scale": 0.6,
"model": "kling-v2-6",
"mode": "professional",
}
def styled_generation(scene_prompt: str):
return requests.post(f"{BASE}/videos/text2video", headers=get_headers(), json={
"model_name": STYLE_TEMPLATE["model"],
"prompt": scene_prompt + STYLE_TEMPLATE["suffix"],
"negative_prompt": STYLE_TEMPLATE["negative"],
"cfg_scale": STYLE_TEMPLATE["cfg_scale"],
"duration": "5",
"mode": STYLE_TEMPLATE["mode"],
})
Resources
When not to use it
- →Applications requiring strictly photorealistic output without artistic modification
- →Models older than v1.6 for Effects API
Prerequisites
Limitations
- →Effects API limited to v1.6+ models
- →High cfg_scale values may reduce quality
How it compares
It provides specific style recipes and parameter tuning guides rather than relying on trial-and-error prompt crafting.
Compared to similar skills
klingai-style-transfer side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| klingai-style-transfer (this skill) | 1 | 27d | Caution | Beginner |
| crewai | 4 | 6mo | No flags | Advanced |
| autonomous-agent-patterns | 4 | 6mo | Review | Intermediate |
| computer-use-agents | 10 | 6mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by jeremylongshore
View all by jeremylongshore →You might also like
crewai
davila7
Expert in CrewAI - the leading role-based multi-agent framework used by 60% of Fortune 500 companies. Covers agent design with roles and goals, task definition, crew orchestration, process types (sequential, hierarchical, parallel), memory systems, and flows for complex workflows. Essential for building collaborative AI agent teams. Use when: crewai, multi-agent team, agent roles, crew of agents, role-based agents.
autonomous-agent-patterns
davila7
Design patterns for building autonomous coding agents. Covers tool integration, permission systems, browser automation, and human-in-the-loop workflows. Use when building AI agents, designing tool APIs, implementing permission systems, or creating autonomous coding assistants.
computer-use-agents
davila7
Build AI agents that interact with computers like humans do - viewing screens, moving cursors, clicking buttons, and typing text. Covers Anthropic's Computer Use, OpenAI's Operator/CUA, and open-source alternatives. Critical focus on sandboxing, security, and handling the unique challenges of vision-based control. Use when: computer use, desktop automation agent, screen control AI, vision-based agent, GUI automation.
voice-ai-engine-development
sickn33
Build real-time conversational AI voice engines using async worker pipelines, streaming transcription, LLM agents, and TTS synthesis with interrupt handling and multi-provider support
crewai-developer
smallnest
Comprehensive CrewAI framework guide for building collaborative AI agent teams and structured workflows. Use when developing multi-agent systems with CrewAI, creating autonomous AI crews, orchestrating flows, implementing agents with roles and tools, or building production-ready AI automation. Essential for developers building intelligent agent systems, task automation, and complex AI workflows.
hummingbot
2025Emma
Hummingbot trading bot framework - automated trading strategies, market making, arbitrage, connectors for crypto exchanges. Use when working with algorithmic trading, crypto trading bots, or exchange integrations.