Communitygithub.com

Kling视频生成(通过AceDataCloud的Kuaishou Kling API)

通过AceDataCloud的Kuaishou Kling API生成AI视频。支持文本生成视频、图像生成视频、视频扩展、运动控制以及音频/文本唇同步等功能。

Kling视频生成(通过AceDataCloud的Kuaishou Kling API) 是什么?

此技能允许用户通过AceDataCloud的Kuaishou Kling API生成AI视频。它支持多种工作流,包括文本到视频(text2video)、图像到视频(image2video)、视频扩展、运动控制以及唇同步(lip-sync)。用户可以从多个模型(kling-v1到kling-v3-omni)中选择,每个模型针对不同的质量和速度做了优化。此外,还提供标准(std)、专业(pro)和4K(4k)等质量模式,以适应不同的使用场景和预算。该技能还涵盖了参数配置,如时长、宽高比、负面提示词以及参考元素/视频列表等,并提供通过curl命令或异步任务轮询进行调用的详细说明。其设计初衷是方便开发者和AI Agent用户将AI视频生成功能无缝集成到他们的工作流中。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/NeverSight/learn-skills.dev/tree/HEAD/data/skills-md/acedatacloud/skills/kling-video

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Kling 视频生成

通过 AceDataCloud 的 Kuaishou Kling API 生成 AI 视频。

设置: 请参阅 认证 了解令牌设置。

快速开始

curl -X POST https://api.acedata.cloud/kling/videos \
  -H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"action": "text2video", "prompt": "a cat playing piano on a rooftop at sunset", "model": "kling-v3", "mode": "std", "duration": 5}'

异步: 请参阅 异步任务轮询。通过 POST /kling/tasks 并携带 {"id": "..."} 进行轮询。

模型

模型质量最适合场景
kling-v3最新最佳质量,灵活的 3–15 秒时长,可选音频生成
kling-v3-omni最新支持音频的全能模型,灵活的 3–15 秒时长
kling-v2-6高高质量输出,可选音频(专业模式)
kling-v2-5-turbo高 + 快最佳速度/质量权衡
kling-v2-master高高质量输出
kling-v2-1-master高v2 改进版
kling-v1-6改进质量优于 v1
kling-v1标准基础生成,成本最低
kling-video-o1高级最高质量(思考模型)

质量模式

模式速度成本适用场景
std(标准)较慢较低草稿/预览
pro(专业)较快较高最终输出
4k(原生 4K)—高级原生 4K 输出 — 仅 kling-v3 和 kling-v3-omni;与 camera_control 不兼容

工作流

1. 文本转视频

POST /kling/videos
{
  "action": "text2video",
  "prompt": "a futuristic city with flying cars",
  "model": "kling-v3",
  "mode": "std",
  "duration": 5,
  "aspect_ratio": "16:9"
}

2. 图像转视频

将静态图像动画化。可选择指定结束帧。

POST /kling/videos
{
  "action": "image2video",
  "prompt": "the scene slowly comes alive with movement",
  "start_image_url": "https://example.com/scene.jpg",
  "end_image_url": "https://example.com/end-scene.jpg",
  "model": "kling-v3",
  "mode": "pro"
}

3. 扩展视频

在现有视频基础上延长数秒。

POST /kling/videos
{
  "action": "extend",
  "video_id": "existing-video-id",
  "prompt": "the camera pulls back to reveal the full landscape",
  "model": "kling-v2-5-turbo"
}

4. 运动控制

通过图像 + 参考视频应用精确的相机/运动控制。

POST /kling/motion
{
  "image_url": "https://example.com/subject.jpg",
  "video_url": "https://example.com/motion-reference.mp4"
}

5. 唇同步

根据源视频以及音频轨道或输入文本创建唇同步视频。

POST /kling/lip-sync
{
  "video_url": "https://example.com/source.mp4",
  "mode": "audio2video",
  "audio_url": "https://example.com/voiceover.mp3"
}

参数

参数值描述
action"text2video", "image2video", "extend"生成模式
model见模型表使用的模型
mode"std", "pro", "4k"质量模式(4k 仅用于 kling-v3 / kling-v3-omni,与 camera_control 不兼容)
duration5, 10(v3/v3-omni: 3–15)时长(秒)
generate_audiotrue, false视频同时生成音频(仅 v3, v3-omni, v2-6 pro)
aspect_ratio"16:9", "9:16", "1:1"视频宽高比
cfg_scale0–1提示相关度强度
negative_promptstring视频中要避免的内容
camera_controlobject相机运动参数
element_listarray来自元素库的参考主体(每个项目包含 element_id)。与 video_list 结合使用时,总参考图片 + 主体 ≤ 7(如果包含参考视频,则 ≤ 4)
video_listarray通过 video_url 提供的参考视频(MP4/MOV, 3–10s, ≤200MB,最多 1 个视频)。每个项目包含 video_url, refer_type("feature" 或 "base"),以及可选的 keep_original_sound
callback_urlstring异步回调 URL
mode (/kling/lip-sync)"audio2video", "text2video"唇同步模式
video_url (/kling/lip-sync)URL唇同步的源视频 URL
video_id (/kling/lip-sync)string用于唇同步的现有 Kling 视频 ID
audio_url (/kling/lip-sync)URL音频源 URL(用于 audio2video)
audio_type (/kling/lip-sync)"url", "file"音频输入类型(默认为 url)
audio_file (/kling/lip-sync)string当 audio_type=file 时的音频文件负载
text (/kling/lip-sync)string用于合成语音的输入文本(用于 text2video)
voice_id (/kling/lip-sync)string在 text2video 中使用的语音预设 ID
voice_language (/kling/lip-sync)"zh", "en"text2video 的 TTS 语言(默认为 zh)
voice_speed (/kling/lip-sync)numberTTS 说话速度(默认为 1.0)

注意事项

  • duration 对于大多数模型支持 5 或 10 秒;kling-v3 和 kling-v3-omni 支持灵活的 3–15 秒
  • mode=4k 仅适用于 kling-v3 和 kling-v3-omni,并且与 camera_control 不兼容
  • generate_audio 启用同步音频生成(由 kling-v3、kling-v3-omni 和 kling-v2-6(专业模式)支持)
  • end_image_url 仅用于 image2video 动作——它定义了最后一帧
  • 运动控制(/kling/motion)是一个独立的端点,与视频生成分开
  • 唇同步是一个独立的端点(/kling/lip-sync),需要 mode;对于 audio2video 使用 audio_url,对于 text2video 使用 text + 音色字段
  • pro 模式成本大约为 std 模式的 2 倍,但生成速度更快,质量更高
  • 任务状态使用 "succeed"(而不是 "succeeded")——轮询时请检查此值
  • negative_prompt 有助于避免不需要的元素(例如 "blurry, low quality, text")

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

NeverSight/learn-skills.dev

Use when generating or modifying Remotion video code, creating demo videos, or working with the demo-video/ directory

NeverSight/learn-skills.dev

Create AI avatar and talking head videos via inference.sh CLI. Recommended: P-Video-Avatar (fastest, cheapest, built-in TTS). Also: OmniHuman, Fabric, PixVerse. Audio: Inworld TTS-2 (100+ languages, emotion steering for characters), ElevenLabs, Kokoro. Capabilities: audio-driven avatars, text-to-avatar, lipsync videos, talking head generation, virtual presenters, UGC content. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos, UGC ads, gaming avatars, NPC dialogue. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human, ugc, ugc video, ugc ad, avatar ugc

NeverSight/learn-skills.dev

Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for visuals, Kokoro for voiceover. Types: product demos, testimonials, explainers, social ads, brand videos. Use for: Facebook ads, YouTube ads, product launches, brand awareness. Triggers: marketing video, ad video, promo video, commercial, brand video, product video, explainer video, ad creative, video ad, facebook ad video, youtube ad, instagram ad, tiktok ad, promotional video, launch video

NeverSight/learn-skills.dev

Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse

NeverSight/learn-skills.dev

ElevenLabs automatic dubbing - translate and dub audio/video into 29 languages while preserving speaker voice via inference.sh CLI. Capabilities: auto speaker detection, voice-preserving translation, video dubbing, audio localization. Use for: content localization, video translation, multilingual content, international distribution. Triggers: dubbing, dub video, translate audio, video translation, audio translation, localize content, elevenlabs dubbing, eleven labs dub, multilingual dub, voice translation, auto dub, language dub, content localization

NeverSight/learn-skills.dev

Explainer video production guide: scripting, voiceover, visuals, and assembly. Covers script formulas, pacing rules, scene planning, and multi-tool pipelines. Use for: product demos, how-it-works videos, onboarding videos, social explainers. Triggers: explainer video, how to make explainer, product video, demo video, video production, video script, animated explainer, product demo video, tutorial video, onboarding video, walkthrough video, video pipeline

NeverSight/learn-skills.dev

Still-to-video conversion guide: model selection, motion prompting, and camera movement. Covers Wan 2.5 i2v, Seedance, Fabric, Grok Video with when to use each. Use for: animating images, creating video from stills, adding motion, product animations. Triggers: image to video, i2v, animate image, still to video, add motion to image, image animation, photo to video, animate still, wan i2v, image2video, bring image to life, animate photo, motion from image

NeverSight/learn-skills.dev

Generate talking head avatar videos with Pruna P-Video-Avatar via inference.sh CLI. Turn a portrait image into a realistic speaking video with built-in TTS. 18x faster and 6x cheaper than competitors. Models: P-Video-Avatar, P-Image (for portrait generation). Capabilities: text-to-avatar, audio-driven avatars, 30 voices, 10 languages, 720p/1080p, built-in TTS, dynamic backgrounds, full-body control. Use for: AI presenters, product demos, explainer videos, virtual influencers, marketing, education, multilingual content, UGC, gaming avatars. Triggers: avatar video, talking head, ai avatar, p-video-avatar, pruna avatar, video avatar, ai presenter, digital human, virtual presenter, lipsync, talking avatar, ai spokesperson, heygen alternative, synthesia alternative, veed alternative, fabric alternative, omnihuman alternative

NeverSight/learn-skills.dev

Generate videos with Pruna P-Video and WAN models via inference.sh CLI. Models: P-Video, WAN-T2V, WAN-I2V. Capabilities: text-to-video, image-to-video, audio support, 720p/1080p, fast inference. Pruna optimizes models for speed without quality loss. Triggers: pruna video, p-video, pruna ai video, fast video generation, optimized video, wan t2v, wan i2v, economic video generation, cheap video generation, pruna text to video, pruna image to video

NeverSight/learn-skills.dev

Render videos from React/Remotion component code via inference.sh. Pass TSX code, get MP4. Supports all Remotion APIs: useCurrentFrame, useVideoConfig, spring, interpolate, AbsoluteFill, Sequence. Configurable resolution, FPS, duration, codec. Use for: programmatic video generation, animated graphics, motion design, data-driven videos, React animations to video. Triggers: remotion, render video from code, tsx to video, react video, programmatic video, remotion render, code to video, animated video, motion graphics code, react animation video

NeverSight/learn-skills.dev

Video ad creation with exact platform-specific specs for TikTok, Instagram, YouTube, Facebook, LinkedIn. Covers dimensions, duration limits, AIDA framework, and caption requirements. Use for: video ads, social media ads, paid media creative, video marketing, ad production. Triggers: video ad, social media ad, tiktok ad, instagram ad, youtube ad, facebook ad, linkedin ad, video creative, ad specs, paid media, video marketing, ad production, reels ad, stories ad, pre roll, bumper ad

NeverSight/learn-skills.dev

Best practices and techniques for writing effective AI video generation prompts. Covers: Veo, Seedance, Wan, Grok, Kling, Runway, Pika, Sora prompting strategies. Learn: shot types, camera movements, lighting, pacing, style keywords, negative prompts. Use for: improving video quality, getting consistent results, professional video prompts. Triggers: video prompt, how to prompt video, veo prompts, video generation tips, better ai video, video prompt engineering, video prompt guide, video prompt template, ai video tips, video prompt best practices, video prompt examples, cinematography prompts

NeverSight/learn-skills.dev

YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A/B testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image

NeverSight/learn-skills.dev

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

NeverSight/learn-skills.dev

Configure and use the hosted YouTube Data MCP end-to-end with minimal user input. Use when users want the agent to verify Node.js and `npx`, configure MCP server config (Windows/macOS, Cursor/Codex/OpenClaw/OpenCode), request API key at setup time, run post-install capability discovery (`tools/list` and `get_patch_notes`), and then strongly recommend helper skill and Python setup for full local document and spreadsheet workflows.

NeverSight/learn-skills.dev

Creates 120fps GPU-accelerated animations with Motion.dev (Framer Motion successor) for React, Next.js, Svelte, and Astro projects. Use when user requests animation, motion, scroll effects, parallax, hero animations, gestures, drag interactions, spring physics, whileHover effects, whileInView animations, animated UI, micro-interactions, page transitions, or layout animations. Generates production TypeScript/JSX code with accessibility (prefers-reduced-motion) and performance validation (≥60fps). Supports entrance animations, gesture interactions (hover/tap/drag), scroll-based reveals, and layout transitions using spring physics and natural timing. Do NOT use for CSS-only transitions (use native CSS), static sites without JavaScript, Vue animations (use motion-v variant instead), or SVG/Canvas complex animations (GSAP better suited).

NeverSight/learn-skills.dev

Static artifact craft skill for self-contained HTML/CSS/JS documents: docs, sheets, dashboards, explainers, slides, tools, and landing pages. Use when the user asks for a durable, openable, shareable web deliverable they'll keep or hand off — a report, a dashboard, a slide deck, a data table, a page. Local folder first, temporary public link via tunnel (localhost.run), optional durable publish to Surge, GitHub Pages, or Cloudflare. Not for quick look renders, inline snippets, or throwaway scratch. Not for SPA frameworks, backend APIs, database apps, or production product UI.

NeverSight/learn-skills.dev

FFmpeg commands for video/audio conversion, trimming, compression, and processing. Use when user mentions "ffmpeg", "convert video", "compress video", "extract audio", "trim video", "gif from video", "video codec", "transcode", "screen recording", "merge videos", "video to mp4", "reduce file size", or any media processing task.

NeverSight/learn-skills.dev

Vim keybindings, motions, text objects, and operators for efficient text editing. Use when user asks about "vim commands", "vim motions", "text objects", "vim keybindings", "vim cheat sheet", "learn vim", "vim in VS Code", or any Vim editing tasks.

NeverSight/learn-skills.dev

Grok Build ONLY. Turn a 2D character still into smooth animation sprites via image_gen/image_edit base → image_to_video (6s/10s run-in-place) → ffmpeg frames → magenta chroma-key → dense sampled sprites (strip/grid/GIF). Use when the user wants video-to-sprite, motion capture from generated video, smoother run/walk cycles from dense frames, or runs /video2dsprite. Do NOT use on Codex/Claude — only Grok Build has image_to_video. Prefer generate2dsprite for crisp pixel sheets without video.

相关技能