Kling AI - Text to Video
Generate professional-quality videos from text descriptions using Kling AI's advanced video generation model. Features customizable duration, aspect ratios, camera controls, and professional rendering modes.
Endpoint
Request Headers
| Field | Value |
|---|---|
| API-KEY | <api-key> |
| Content-Type | application/json |
Request Parameters
| Field Name | Type | Example | Description | Required |
|---|---|---|---|---|
| type | string | TEXT_TO_VIDEO | Feature identifier | ✔️ |
| model | string | kling | AI model to use | ✔️ |
| conversationId | string | TEXT_TO_VIDEO | Conversation context | ✔️ |
| promptObject.prompt | string | a futuristic city | Video description | ✔️ |
| promptObject.duration | number | 5 | Video duration (5 or 10 seconds) | ✔️ |
| promptObject.mode | string | std | Rendering mode (std or pro), Version 2.0 and 2.5 only accept mode pro | ✔️ |
| promptObject.negative_prompt | string | blurry, low quality | What not to include in the video | ❌ |
Advanced Parameters
| Field Name | Type | Example | Description | Required |
|---|---|---|---|---|
| promptObject.aspect_ratio | string | 16:9 | Video aspect ratio (16:9, 9:16, 1:1) | ❌ |
| promptObject.version | string | 1.0 | Model version (1.0, 1.5, 1.6, 2.0, 2.1-master, 2.5). Note: Version 2.1 is not supported for text-to-video | ❌ |
| promptObject.cfg_scale | number | 0.5 | CFG scale (0 to 1) | ❌ |
| promptObject.camera_control_type | string | default | Camera movement type | ❌ |
| promptObject.camera_control_value | number | 0 | Camera control intensity (-10 to 10) | ❌ |
Camera Control Types
Note: Camera controls are not available for version 1.5
default- AI auto-selects based on prompthorizontal- Horizontal camera movementvertical- Vertical camera movementzoom- Zoom in/out effectpan- Panning movementtilt- Tilting movementroll- Rolling movement
Code Examples
- cURL
- JavaScript
- Python
curl --location 'https://api.1min.ai/api/features' \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "TEXT_TO_VIDEO",
"model": "kling",
"conversationId": "TEXT_TO_VIDEO",
"promptObject": {
"prompt": "a futuristic city with flying cars at sunset",
"duration": 5,
"negative_prompt": "blurry, low quality",
"aspect_ratio": "16:9",
"mode": "std",
"version": "1.0",
}
}'
fetch('https://api.1min.ai/api/features', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'API-KEY': 'YOUR_API_KEY'
},
body: JSON.stringify({
type: 'TEXT_TO_VIDEO',
model: 'kling',
conversationId: 'TEXT_TO_VIDEO',
promptObject: {
prompt: 'a futuristic city with flying cars at sunset',
duration: 5,
negative_prompt: 'blurry, low quality',
aspect_ratio: '16:9',
mode: 'std',
version: '1.0',
}
})
})
import requests
url = "https://api.1min.ai/api/features"
headers = {
"Content-Type": "application/json",
"API-KEY": "YOUR_API_KEY"
}
data = {
"type": "TEXT_TO_VIDEO",
"model": "kling",
"conversationId": "TEXT_TO_VIDEO",
"promptObject": {
"prompt": "a futuristic city with flying cars at sunset",
"duration": 5,
"negative_prompt": "blurry, low quality",
"aspect_ratio": "16:9",
"mode": "std",
"version": "1.0",
"cfg_scale": 0.5,
}
}
response = requests.post(url, headers=headers, json=data)
Interactive Playground
API Playground
https://api.1min.ai/api/featuresControls adherence to prompt (0-1)
Camera movement intensity
Generated cURL Command:
curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "TEXT_TO_VIDEO",
"model": "kling",
"conversationId": "TEXT_TO_VIDEO",
"promptObject": {
"prompt": "a futuristic city with flying cars at sunset",
"duration": 5,
"negative_prompt": "",
"aspect_ratio": "16:9",
"mode": "std",
"version": "1.0"
}
}'
Response
{
"aiRecord": {
"uuid": "e2c6c3ba-c057-420b-96f2-100aee48b964",
"userId": "2f57c2a4-1fff-48e7-972f-3c1d6c59bced",
"teamId": "eb48d89f-1bb7-4d82-9b25-481971a0e97a",
"teamUser": {
"teamId": "eb48d89f-1bb7-4d82-9b25-481971a0e97a",
"userId": "2f57c2a4-1fff-48e7-972f-3c1d6c59bced",
"userName": "John",
"userAvatar": "https://lh3.googleusercontent.com/a/ACg8ocLqgsNsHRfmWF9d-E1RvJetVsEzxNOsOg-NXWNTpMxLDPJbwELI=s96-c",
"status": "ACTIVE",
"role": "ADMIN",
"creditLimit": 100000000,
"usedCredit": 14992338,
"createdAt": "2025-11-25T11:04:08.620Z",
"createdBy": "SYSTEM",
"updatedAt": "2025-11-26T08:53:01.895Z",
"updatedBy": "SYSTEM"
},
"model": "kling",
"type": "TEXT_TO_VIDEO",
"metadata": null,
"rating": null,
"feedback": null,
"conversationId": null,
"status": "SUCCESS",
"createdAt": "2025-11-26T08:52:48.935Z",
"aiRecordDetail": {
"promptObject": {
"mode": "std",
"prompt": "a futuristic city with flying cars at sunset",
"version": "1.0",
"duration": 5,
"aspect_ratio": "16:9",
"negative_prompt": ""
},
"resultObject": [
"development/videos/2025_11_26_15_56_28_338_540753.mp4"
],
"responseObject": {}
},
"additionalData": null,
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/videos/2025_11_26_15_56_28_338_540753.mp4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAVRUVQEFIHSKAXGE7%2F20251126%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20251126T085634Z&X-Amz-Expires=604800&X-Amz-Signature=0fcf8a657980c57d04da4c5f0bb74166a17f9c2885b020205b2d47524d7adb43&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
}