Communitygithub.com

NeverSight/learn-skills.dev

透過 AceDataCloud API 使用快手 Kling 生成 AI 影片。適用於從文字或圖片建立影片、擴展現有影片、套用動態控制或將音訊/文字與影片進行嘴脣同步。

learn-skills.dev 是什麼?

此技能可讓開發者透過 AceDataCloud 的 API 網關,利用快手 Kling 模型生成 AI 影片。它提供了全面的影片生成工作流程,包括文字轉影片、圖片轉影片(含可選的結束幀)、影片延伸以及進階功能,如動態控制和嘴脣同步。該技能支援多種 Kling 模型,從基礎的 `kling-v1` 到高品質的 `kling-video-o1`,並提供標準 (`std`)、專業 (`pro`) 和原生 4K (`4k`) 等品質模式,讓使用者在速度、成本和輸出品質之間取得平衡。透過其結構化的 JSON 承載和清晰的參數文件,開發者可以直接從他們的 AI 代理或自訂工具中無縫地整合這些功能。此技能在 Claude Code、Cursor 和 Codex 等流行平台上運作,透過自動化複雜的影片創作任務來顯著提升生產力。

相容平台~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 的快手 Kling API 生成 AI 影片。

設定: 請參閱 驗證 以設定 Token。

快速開始

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_prompt字串影片中應避免的內容
camera_control物件攝影機移動參數
element_list陣列來自元素庫的參考主體(每個項目包含 element_id)。與 video_list 結合使用,總參考圖片 + 主體 ≤ 7(若包含參考影片則 ≤ 4)
video_list陣列透過 video_url 提供的參考影片(MP4/MOV,3–10 秒,≤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;使用 audio_url 進行 audio2video,或使用 text + 語音欄位進行 text2video
  • 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.

相關技能