Kling 3.0 & O3 — AI Video Generation by Kuaishou
Generate, animate, and edit AI videos using Kuaishou's Kling 3.0 and Kling Video O3 — featuring cinematic motion quality, realistic physics simulation, reference-based generation, and natural-language video editing.
Kling 3.0 excels at creating cinematic short clips with realistic motion, complex camera movements, and faithful prompt adherence. Kling Video O3 adds MVL (Multi-modal Visual Language) technology with reference-based generation and video editing capabilities. All models support optional synchronized sound generation.
Data usage note: This skill sends text prompts, image URLs, and video URLs to the Atlas Cloud API (api.atlascloud.ai) for video generation and editing. No data is stored locally beyond the downloaded output files. API usage incurs charges per second based on the model selected.
Key Capabilities
- - Text-to-Video — Generate video clips from text descriptions
- Image-to-Video — Animate still images into dynamic video with first/last frame control
- Reference-to-Video — Generate videos using character, prop, or scene reference images (O3)
- Video Editing — Natural-language video editing: remove/replace objects, change backgrounds, add effects (O3)
- Sound Generation — Optional synchronized sound effects and audio
- Pro & Standard Tiers — Pro for highest quality, Standard for cost-effective production
- Multiple Aspect Ratios — 16:9, 9:16, 1:1
- Flexible Duration — V3: 5 or 10 seconds; O3: 3-15 seconds
- Negative Prompts — Specify what to exclude from generated video (V3)
Setup
- 1. Sign up at https://www.atlascloud.ai
- Console → API Keys → Create new key
- Set env: INLINECODE1
Script Usage
This skill includes a Python script for video generation. Zero external dependencies required.
List available video models
CODEBLOCK0
Generate a video (text-to-video)
CODEBLOCK1
Generate a video (image-to-video)
CODEBLOCK2
Upload a local file
CODEBLOCK3
Run python scripts/generate_video.py generate --help for all options. Extra model params can be passed as key=value (e.g. duration=10 shot_type=multi_camera).
Pricing
All prices are per second of video generated. Atlas Cloud offers 15% off compared to standard API pricing.
Kling V3.0
| Model | Tier | Original Price | Atlas Cloud | Best For |
|---|
| INLINECODE4 | Standard | ~~$0.18/s~~ | $0.153/s | Cost-effective text-to-video |
| INLINECODE5 |
Standard | ~~$0.18/s~~ |
$0.153/s | Cost-effective image animation |
|
kwaivgi/kling-v3.0-pro/text-to-video | Pro | ~~$0.24/s~~ |
$0.204/s | High-quality text-to-video |
|
kwaivgi/kling-v3.0-pro/image-to-video | Pro | ~~$0.24/s~~ |
$0.204/s | High-quality image animation |
Kling Video O3 Pro
| Model | Original Price | Atlas Cloud | Best For |
|---|
| INLINECODE8 | ~~$0.24/s~~ | $0.204/s | MVL-enhanced text-to-video |
| INLINECODE9 |
~~$0.24/s~~ |
$0.204/s | MVL-enhanced image animation |
|
kwaivgi/kling-video-o3-pro/reference-to-video | ~~$0.24/s~~ |
$0.204/s | Reference-based video generation |
|
kwaivgi/kling-video-o3-pro/video-edit | ~~$0.36/s~~ |
$0.306/s | Professional video editing |
Kling Video O3 Standard
| Model | Original Price | Atlas Cloud | Best For |
|---|
| INLINECODE12 | - | $0.153/s | Cost-effective MVL text-to-video |
| INLINECODE13 |
- |
$0.153/s | Cost-effective MVL image animation |
|
kwaivgi/kling-video-o3-std/reference-to-video | - |
$0.085/s | Cost-effective reference-based generation |
|
kwaivgi/kling-video-o3-std/video-edit | - |
$0.238/s | Budget video editing |
Parameters
Kling V3.0 — Text-to-Video
| Parameter | Type | Required | Default | Options |
|---|
| INLINECODE16 | string | Yes | - | Video description |
| INLINECODE17 |
string | No | - | What to exclude from the video |
|
duration | integer | No | 5 | 5, 10 seconds |
|
aspect_ratio | string | No | 16:9 | 16:9, 9:16, 1:1 |
|
cfg_scale | number | No | 0.5 | 0-1, controls prompt adherence |
|
sound | boolean | No | false | Generate synchronized audio |
Kling V3.0 — Image-to-Video
Same as V3.0 text-to-video, plus:
| Parameter | Type | Required | Description |
|---|
| INLINECODE22 | string | Yes | URL of the source image (jpg/jpeg/png, max 10MB, min 300px, aspect ratio 1:2.5 to 2.5:1) |
| INLINECODE23 |
string | No | URL of the target end frame (for guided motion) |
Kling Video O3 — Text-to-Video
| Parameter | Type | Required | Default | Options |
|---|
| INLINECODE24 | string | Yes | - | Video description |
| INLINECODE25 |
string | No | 16:9 | 16:9, 9:16, 1:1 |
|
duration | integer | No | 5 | 3-15 seconds |
|
sound | boolean | No | false | Generate synchronized audio |
Kling Video O3 — Image-to-Video
| Parameter | Type | Required | Default | Description |
|---|
| INLINECODE28 | string | Yes | - | Video description |
| INLINECODE29 |
string | Yes | - | First frame image URL |
|
end_image | string | No | - | Last frame image URL |
|
duration | integer | No | 5 | 3-15 seconds |
|
generate_audio | boolean | No | false | Auto-add audio to video |
Kling Video O3 — Reference-to-Video
| Parameter | Type | Required | Default | Description |
|---|
| INLINECODE33 | string | Yes | - | Video description |
| INLINECODE34 |
array | No | - | Reference images (up to 7 without video, up to 4 with video) |
|
video | string | No | - | Reference video URL |
|
keep_original_sound | boolean | No | true | Keep original sound from reference video |
|
sound | boolean | No | false | Generate new audio |
|
aspect_ratio | string | No | 16:9 | 16:9, 9:16, 1:1 |
|
duration | integer | No | 5 | 3-15 seconds |
Kling Video O3 — Video Editing
| Parameter | Type | Required | Default | Description |
|---|
| INLINECODE40 | string | Yes | - | Editing instruction in natural language |
| INLINECODE41 |
string | Yes | - | Source video URL (max 10s duration) |
|
images | array | No | - | Reference images for element, scene, or style (max 4) |
|
keep_original_sound | boolean | No | true | Keep original audio from the video |
Workflow: Submit → Poll → Download
Text-to-Video Example (V3.0 Pro)
CODEBLOCK4
Image-to-Video Example (V3.0 Pro)
CODEBLOCK5
Reference-to-Video Example (O3 Pro)
CODEBLOCK6
Video Editing Example (O3 Pro)
CODEBLOCK7
Standard Tier Example (Cost-Effective)
CODEBLOCK8
Polling Logic
- -
processing / starting / running → wait 5s, retry (typically takes ~60-120s) - INLINECODE47 /
succeeded → done, get URL from INLINECODE49 - INLINECODE50 → error, read INLINECODE51
Atlas Cloud MCP Tools (if available)
If the Atlas Cloud MCP server is configured, use built-in tools:
CODEBLOCK9
Implementation Guide
- 1. Determine task type:
- Text-to-video: user describes a scene/action in text
- Image-to-video: user provides an image to animate
- Reference-to-video: user wants to generate video using character/prop/scene references
- Video editing: user wants to modify an existing video
- 2. Choose model family:
-
Kling V3.0 for standard text-to-video and image-to-video with negative prompts and cfg_scale control
-
Kling Video O3 for MVL-enhanced generation, reference-based video, video editing, and longer durations (3-15s)
- 3. Choose tier:
-
Pro for final output, client-facing content, or quality-critical use
-
Standard for most production use, cost-effective generation
- 4. Extract parameters:
- Prompt: describe scene, action, camera movement, and visual details
- Negative prompt (V3 only): specify undesired elements (e.g., "blurry, distorted faces, watermark")
- Aspect ratio: infer from context (social reel→9:16, YouTube→16:9, square→1:1)
- Duration: V3 supports 5 or 10s; O3 supports 3-15s
- cfg_scale (V3 only): 0.5 default; increase toward 1.0 for stricter prompt adherence
- Sound: enable if user wants audio; disabled by default
- 5. Execute: POST to generateVideo API → poll result → download MP4
- 6. Present result: show file path, offer to play
Prompt Tips
Kling produces best results with detailed, descriptive prompts:
- - Scene + Action: "A chef flips a pancake in a busy kitchen, steam rising from the pan"
- Camera direction: "Camera slowly pans left to reveal...", "Close-up tracking shot of...", "Aerial view sweeping over..."
- Style: "cinematic", "documentary style", "slow motion", "timelapse", "anime style"
- Negative prompts (V3): Use to avoid common issues — "blurry, low quality, distorted, watermark, text overlay"
- cfg_scale tuning (V3): Lower values (0.3-0.5) give more creative freedom; higher values (0.7-1.0) follow the prompt more strictly
- Reference-to-video (O3): Provide clear character/prop reference images for consistent results
Image Requirements for Image-to-Video
When using image-to-video models, the source image must meet these requirements:
- - Format: JPG, JPEG, or PNG
- Size: Maximum 10MB
- Dimensions: Minimum 300px on shortest side
- Aspect ratio: Between 1:2.5 and 2.5:1
Kling 3.0 & O3 — 快手AI视频生成
使用快手的Kling 3.0和Kling Video O3生成、动画化并编辑AI视频——具备电影级运动质量、真实物理模拟、基于参考的生成和自然语言视频编辑功能。
Kling 3.0擅长创建具有真实运动、复杂镜头运动和忠实遵循提示的电影级短视频。Kling Video O3增加了MVL(多模态视觉语言)技术,具备基于参考的生成和视频编辑能力。所有模型均支持可选的同步声音生成。
数据使用说明:此技能将文本提示、图像URL和视频URL发送至Atlas Cloud API(api.atlascloud.ai)进行视频生成和编辑。除下载的输出文件外,本地不存储任何数据。API使用根据所选模型按秒计费。
核心功能
- - 文本转视频 — 根据文本描述生成视频片段
- 图像转视频 — 将静态图像动画化为动态视频,支持首帧/尾帧控制
- 参考转视频 — 使用角色、道具或场景参考图像生成视频(O3)
- 视频编辑 — 自然语言视频编辑:移除/替换对象、更改背景、添加特效(O3)
- 声音生成 — 可选的同步音效和音频
- 专业版与标准版 — 专业版追求最高质量,标准版注重成本效益
- 多种宽高比 — 16:9、9:16、1:1
- 灵活时长 — V3:5或10秒;O3:3-15秒
- 反向提示 — 指定生成视频中排除的内容(V3)
设置
- 1. 在 https://www.atlascloud.ai 注册
- 控制台 → API密钥 → 创建新密钥
- 设置环境变量:export ATLASCLOUDAPIKEY=your-key
脚本使用
此技能包含一个用于视频生成的Python脚本。无需外部依赖。
列出可用视频模型
bash
python scripts/generate_video.py list-models
生成视频(文本转视频)
bash
python scripts/generate_video.py generate \
--model MODEL_ID \
--prompt 在此输入提示 \
--output ./output \
duration=5 resolution=720p
生成视频(图像转视频)
bash
python scripts/generate_video.py generate \
--model MODEL_ID \
--image https://example.com/photo.jpg \
--prompt 将此场景动画化 \
--output ./output
上传本地文件
bash
python scripts/generate_video.py upload ./local-file.jpg
运行 python scripts/generatevideo.py generate --help 查看所有选项。额外的模型参数可以以键值对形式传递(例如 duration=10 shottype=multi_camera)。
定价
所有价格均按生成的视频每秒计算。Atlas Cloud相比标准API定价提供15%的折扣。
Kling V3.0
| 模型 | 版本 | 原价 | Atlas Cloud | 最佳用途 |
|---|
| kwaivgi/kling-v3.0-std/text-to-video | 标准版 | ~~$0.18/秒~~ | $0.153/秒 | 高性价比文本转视频 |
| kwaivgi/kling-v3.0-std/image-to-video |
标准版 | ~~$0.18/秒~~ |
$0.153/秒 | 高性价比图像动画 |
| kwaivgi/kling-v3.0-pro/text-to-video | 专业版 | ~~$0.24/秒~~ |
$0.204/秒 | 高质量文本转视频 |
| kwaivgi/kling-v3.0-pro/image-to-video | 专业版 | ~~$0.24/秒~~ |
$0.204/秒 | 高质量图像动画 |
Kling Video O3 专业版
| 模型 | 原价 | Atlas Cloud | 最佳用途 |
|---|
| kwaivgi/kling-video-o3-pro/text-to-video | ~~$0.24/秒~~ | $0.204/秒 | MVL增强文本转视频 |
| kwaivgi/kling-video-o3-pro/image-to-video |
~~$0.24/秒~~ |
$0.204/秒 | MVL增强图像动画 |
| kwaivgi/kling-video-o3-pro/reference-to-video | ~~$0.24/秒~~ |
$0.204/秒 | 基于参考的视频生成 |
| kwaivgi/kling-video-o3-pro/video-edit | ~~$0.36/秒~~ |
$0.306/秒 | 专业视频编辑 |
Kling Video O3 标准版
| 模型 | 原价 | Atlas Cloud | 最佳用途 |
|---|
| kwaivgi/kling-video-o3-std/text-to-video | - | $0.153/秒 | 高性价比MVL文本转视频 |
| kwaivgi/kling-video-o3-std/image-to-video |
- |
$0.153/秒 | 高性价比MVL图像动画 |
| kwaivgi/kling-video-o3-std/reference-to-video | - |
$0.085/秒 | 高性价比基于参考生成 |
| kwaivgi/kling-video-o3-std/video-edit | - |
$0.238/秒 | 预算视频编辑 |
参数
Kling V3.0 — 文本转视频
| 参数 | 类型 | 必填 | 默认值 | 选项 |
|---|
| prompt | 字符串 | 是 | - | 视频描述 |
| negative_prompt |
字符串 | 否 | - | 视频中排除的内容 |
| duration | 整数 | 否 | 5 | 5、10秒 |
| aspect_ratio | 字符串 | 否 | 16:9 | 16:9、9:16、1:1 |
| cfg_scale | 数字 | 否 | 0.5 | 0-1,控制提示遵循度 |
| sound | 布尔值 | 否 | false | 生成同步音频 |
Kling V3.0 — 图像转视频
与V3.0文本转视频相同,另加:
| 参数 | 类型 | 必填 | 描述 |
|---|
| image | 字符串 | 是 | 源图像URL(jpg/jpeg/png,最大10MB,最小300px,宽高比1:2.5至2.5:1) |
| end_image |
字符串 | 否 | 目标尾帧URL(用于引导运动) |
Kling Video O3 — 文本转视频
| 参数 | 类型 | 必填 | 默认值 | 选项 |
|---|
| prompt | 字符串 | 是 | - | 视频描述 |
| aspect_ratio |
字符串 | 否 | 16:9 | 16:9、9:16、1:1 |
| duration | 整数 | 否 | 5 | 3-15秒 |
| sound | 布尔值 | 否 | false | 生成同步音频 |
Kling Video O3 — 图像转视频
| 参数 | 类型 | 必填 | 默认值 | 描述 |
|---|
| prompt | 字符串 | 是 | - | 视频描述 |
| image |
字符串 | 是 | - | 首帧图像URL |
| end_image | 字符串 | 否 | - | 尾帧图像URL |
| duration | 整数 | 否 | 5 | 3-15秒 |
| generate_audio | 布尔值 | 否 | false | 自动为视频添加音频 |
Kling Video O3 — 参考转视频
| 参数 | 类型 | 必填 | 默认值 | 描述 |
|---|
| prompt | 字符串 | 是 | - | 视频描述 |
| images |
数组 | 否 | - | 参考图像(无视频时最多7张,有视频时最多4张) |
| video | 字符串 | 否 | - | 参考视频URL |
| keep
originalsound | 布尔值 | 否