Communitygithub.com

Kling 视频生成(AceDataCloud API)

通过 AceDataCloud 的 Kuaishou Kling API 生成 AI 视频。支持文本转视频、图像转视频、视频扩展、运动控制和唇形同步等多种功能。

Kling 视频生成(AceDataCloud API) とは?

该技能封装了 AceDataCloud 提供的 Kuaishou Kling API,使开发者能够通过简单的 API 调用生成高质量的 AI 视频。它支持多种生成模式:文本到视频(text2video)、图像到视频(image2video)、视频扩展(extend)、运动控制(motion)和唇形同步(lip-sync)。用户可以选择不同的模型(如 kling-v3、kling-v2-6 等)和质量模式(std、pro、4k),以平衡速度与质量。此外,还支持异步任务轮询、回调 URL 以及丰富的参数调整(如时长、宽高比、音频生成、相机控制等)。该技能适用于需要快速生成视频内容的 AI 代理和开发者工具,如 Claude Code、Cursor 等,通过标准的 REST API 和 Bearer Token 认证即可集成。

対応~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に質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

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最新支持音频的 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 专业模式)
aspect_ratio"16:9", "9:16", "1:1"视频宽高比
cfg_scale0–1提示相关性强度
negative_prompt字符串视频中要避免的内容
camera_control对象相机运动参数
element_list数组来自元素库的参考主体(每个项包含 element_id)。与 video_list 结合,总参考图像 + 主体 ≤ 7(如果包含参考视频则 ≤ 4)
video_list数组通过 video_url 提供的参考视频(MP4/MOV,3–10s,≤200MB,最多 1 个视频)。每个项包含 video_url、refer_type("feature" 或 "base")和可选的 keep_original_sound
callback_url字符串异步回调 URL
mode(/kling/lip-sync)"audio2video", "text2video"唇形同步模式
video_url(/kling/lip-sync)URL唇形同步的源视频 URL
video_id(/kling/lip-sync)字符串用于唇形同步的现有 Kling 视频 ID
audio_url(/kling/lip-sync)URL音频源 URL(用于 audio2video)
audio_type(/kling/lip-sync)"url", "file"音频输入类型(默认 url)
audio_file(/kling/lip-sync)字符串当 audio_type=file 时的音频文件负载
text(/kling/lip-sync)字符串用于合成语音的输入文本(用于 text2video)
voice_id(/kling/lip-sync)字符串text2video 中使用的语音预设 ID
voice_language(/kling/lip-sync)"zh", "en"text2video 的 TTS 语言(默认 zh)
voice_speed(/kling/lip-sync)数字TTS 说话速度(默认 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.

関連スキル