Plan and generate Kling AI / 可灵 videos in Claude Code. Use for video prompts and storyboards even when the user says not to generate, next steps when a required image is missing, final settings for ap
Kling Ai Generate Video connects to an MCP server. It can need an account, an API key, or paid credits, and copying the prompt alone will not work. See the source repository for pricing and setup.
/plugin marketplace add klingai-tech/claude-plugin
/plugin install kling-ai@klingai
Deliver the user's current step. Use the execution workflow only when preparing or submitting generation. The [core Kling Skill](../kling-ai/SKILL.md) owns OAuth, billing, task identity and result handling.
If a required asset has not been supplied, request that asset and explain its role, then finish. For example: "请发商品图片或可访问的图片链接;它会用作首帧,收到后再确认生成设置。" Do not attach a questionnaire about destination, style, ratio or sound. If discovery does not return the user's only permitted model, report that limitation and finish; alternative model suggestions are outside that request.
For a prompt/plan, finish after the requested creative text. For a missing asset,
finish after requesting it and explaining its role. Neither response needs a
"next steps" section or a question about generating later.
When reporting a generation submission or task-query result, use the returned
status, the known task ID, any result link, and the effective submitted settings.
A field absent from the model definition is unknown, not
proof of silence, mandatory audio, fixed pricing or visual quality. Do not add an
audio claim when the user did not request sound and no sound control was sent.
Keep submission count separate from credits: one submission or an exhausted local
budget is not one credit. State an actual charge only when the tool returns a
charged amount (such as creditsConsumed); otherwise the charge is unknown.
An unresolved error needs the known error and unknown state, then stop; do not
speculate about root causes or list incompatible alternatives.
If a generation submission returns no generationId and none is known for that
submission, neither call nor offer query_tasks: it requires a known ID and
cannot search task history. Report the unknown creation/billing state and stop.
Discovery and uploads do not need a generation ID; a query response that omits
the ID does not invalidate an ID already known for that task.
Read [motion and shots](references/motion-and-shots.md) for camera direction, continuity, multi-beat timing, or reference media. Read [scene patterns](references/scene-patterns.md) for product, advertising, social, or cinematic work. For Elements, the motion library, or local media, also read the core [asset workflows](../kling-ai/references/asset-workflows.md).
Recommend V4 only after the current account returns a tool/model pair that meets the request. Use "Recommended: V4" ("推荐使用 V4"), not "the latest model". User requirements take precedence over model preferences.
who_am_i for their models. Text-driven requests compare text_to_video and omni_ref_video; image-driven requests compare image_to_video and omni_ref_video, when present. No attachments does not exclude omni. Follow [capability discovery](../kling-ai/references/capability-discovery.md) and [video routing](references/model-routing.md) for remaining candidates, aliases, and motion control.inputSchema through ToolSearch; never call generation to discover its schema. Bind each explicit user setting to its own actual argument, including duration and a requested ratio when using a first frame. With a [{name,value}] schema, each item has only those two keys: {"name":"duration","value":"7"}; duration is not a property of the prompt item. Read [model parameters](../kling-ai/references/model-parameters.md) for the binding example, defaults and input slots. Prepare local media after selection; stop on upload failure. For ordered keyframes, describe only the motion needed between successive supplied states, then settle into the final state without overshooting or snapping back, unless the user requests otherwise. Write the motion-first prompt, then check the serialized request against the brief, not just the prose summary.query_tasks for follow-up. Without an ID, report the actual error and any unknown creation/billing state, then stop. A credit balance or absent history entry cannot establish that submission failed.arguments/inputs; never borrow another model’s fields. Respect declared mutual exclusions, including enable_audio versus keepOriginalSound, and explicitly disable supported, unrequested content-expanding defaults. Omitting music_prompt does not guarantee no music. Separate submitted settings from audio/video quality actually inspected.true is not evidence that every output has cuts: keep its legal value, express one continuous shot, and disclose the limit without inventing a single-shot guarantee for another entry point. If the user explicitly requires a hard guarantee, resolve that requirement before submitting.query_tasks; it does not create a video.1080p for normal delivery and supported 4k for commercial, large-screen, or post-production work. Use 720p for drafts, speed, credit savings, or model limitations. Never lower a higher live default.Before submission, internally check whether the action fits the duration, camera instructions conflict, first and tail frame intent is clear, references remain continuous, and multi-shot durations sum correctly. Claim visual QA only when the result was actually inspected.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.