Skip to main content

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

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Request Parameters

Field NameTypeExampleDescriptionRequired
typestringTEXT_TO_VIDEOFeature identifier✔️
modelstringklingAI model to use✔️
conversationIdstringTEXT_TO_VIDEOConversation context✔️
promptObject.promptstringa futuristic cityVideo description✔️
promptObject.durationnumber5Video duration (5 or 10 seconds)✔️
promptObject.modestringstdRendering mode (std or pro), Version 2.0 and 2.5 only accept mode pro✔️
promptObject.negative_promptstringblurry, low qualityWhat not to include in the video

Advanced Parameters

Field NameTypeExampleDescriptionRequired
promptObject.aspect_ratiostring16:9Video aspect ratio (16:9, 9:16, 1:1)
promptObject.versionstring1.0Model 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_scalenumber0.5CFG scale (0 to 1)
promptObject.camera_control_typestringdefaultCamera movement type
promptObject.camera_control_valuenumber0Camera control intensity (-10 to 10)

Camera Control Types

Note: Camera controls are not available for version 1.5

  • default - AI auto-selects based on prompt
  • horizontal - Horizontal camera movement
  • vertical - Vertical camera movement
  • zoom - Zoom in/out effect
  • pan - Panning movement
  • tilt - Tilting movement
  • roll - Rolling movement

Code Examples

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",
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Controls 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"
}
}