Skip to main content

Kling CLI

A command-line tool for Kling AI Video Generation via AceDataCloud.

Installation

pip install kling-pro-cli

Usage

# Set your API token
export ACEDATACLOUD_API_TOKEN=your_token

# Generate a video from a text prompt
kling generate "A cinematic scene of a sunset over the ocean"

# Generate a video from a reference image
kling image-to-video "Animate this scene" --start-image-url https://example.com/photo.jpg

# Extend an existing video
kling extend --video-id abc123

# Generate a motion video from image + reference video
kling motion --image-url https://example.com/img.jpg --video-url https://example.com/ref.mp4

# Check task status
kling task abc123-def456

# Wait for a task to complete
kling wait abc123 --interval 5

# List available models
kling models

# Show configuration
kling config

Options

  • --token / ACEDATACLOUD_API_TOKEN — API token
  • --json — Output raw JSON

Models

Model Notes
kling-v1 Default model
kling-v1-6 Version 1.6
kling-v2-5-turbo Version 2.5 Turbo
kling-v2-6 Version 2.6
kling-v3 Version 3 (supports 4K mode)
kling-v3-omni Version 3 Omni (supports 4K mode)
kling-o1 Video O1
kling-v2-master Version 2 Master
kling-v2-1-master Version 2.1 Master

License

MIT

Native video and commerce

kling turbo --request-file request.json accepts {"prompt":"Waves at sunset","duration":7}. V3 Turbo supports std 720p/pro 1080p and integer durations 3–15 seconds; native audio is included and cannot be disabled.

kling storyboard --request-file request.json supports V3/V3 Omni automatic or custom multishot generation. For custom shots use shot_type="customize", total duration, and multi_prompt with 1–6 consecutive indices and durations summing to the total.

Use apparel, goods-studio, video-commerce and virtual-try-on with --request-file for structured contents/settings. Product studio requires ref_image and goods_title, an aspect ratio and duration 15/30/60. Try-on requires product_image and person_image URLs. Creator video needs one avatar and a speech_script. Commands output JSON and submit asynchronously by default; use existing task/wait commands for final delivery, or set async=false in the request. Billing follows the selected tier and actual output duration or image count.

Owned assets

kling elements --request-file request.json manages owned/verified preset platform IDs with action=list/presets/retrieve/delete. Custom element creation is unavailable. kling voices --request-file request.json also accepts {"action":"create","voice_name":"Narrator","voice_url":"https://example.com/voice.mp3"}; the recording must contain one clear voice for 5–30 seconds, and creation costs 0.07 Credits.

kling asset-video --request-file request.json accepts platform element_list for V3/V3 Omni/O1 or voice_list for V2.6 pro with native audio enabled. Voice prompts cite the selected voices with <<<voice_1>>>/<<<voice_2>>>; specified voices cost 1.68 Credits/second. Server-side ownership checks apply; presets cannot be deleted. Existing task/wait commands retrieve asynchronous results.

Metadata

Release files for kling-pro-cli 2026.10.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kling-pro-cli 2026.10.1.2
File Size Uploaded
kling_pro_cli-2026.10.1.2.tar.gz 20.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kling-pro-cli 2026.10.1.2
File Interpreter ABI Platform
kling_pro_cli-2026.10.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 43.4 kB

Release files / kling_pro_cli-2026.10.1.2.tar.gz

Download URL kling_pro_cli-2026.10.1.2.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d499612a681a8ecda32f7f13a7c9a35316f3fe9d7e877bdb08526abb7eb1e9c4
BLAKE2b-256 checksum
How to use checksums
9bb739cba5ac9391ab95901306e77df52767635b10faa81cd7f7b3d66e5eb9e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / kling_pro_cli-2026.10.1.2-py3-none-any.whl

Download URL kling_pro_cli-2026.10.1.2-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75960c237731e8cc235f0e3de818793f52cd348409df9c287219ac25e867a518
BLAKE2b-256 checksum
How to use checksums
63c26ce4d6c555b8259bd04e7df5d9cfe30d603a06cee045cdc9408db8ff1bb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page