技能 人工智能 Kling AI 入门示例

Kling AI 入门示例

v20260311
klingai-hello-world
引导你完成 Kling AI 的第一个视频创建,从配置 API 密钥到发送文本转视频请求、轮询状态、获取下载链接并验证生成结果。
获取技能
351 次下载
概览

Klingai Hello World

Overview

This skill provides a minimal working example to generate your first AI video with Kling AI, verify your integration is functioning, and understand the basic request/response pattern.

Prerequisites

  • Kling AI API key configured
  • Python 3.8+ or Node.js 18+
  • HTTP client library installed

Instructions

Follow these steps to create your first video:

  1. Verify Authentication: Ensure your API key is configured
  2. Submit Generation Request: Send a text-to-video request
  3. Poll for Status: Check job status until complete
  4. Download Result: Retrieve the generated video URL
  5. Verify Output: Preview or download the video

Output

Successful execution produces:

  • Job ID for tracking
  • Video URL for download/streaming
  • Thumbnail URL for preview
  • Generation metadata (duration, resolution, timing)

Error Handling

See ${CLAUDE_SKILL_DIR}/references/errors.md for comprehensive error handling.

Examples

See ${CLAUDE_SKILL_DIR}/references/examples.md for detailed examples.

Resources

信息
Category 人工智能
Name klingai-hello-world
版本 v20260311
大小 4.3KB
更新时间 2026-03-12
语言