Kuaishou Kling 4.0 Video Generate
3s minimum, from 565.2 credits
ae_kuaishou_kling_4_0_video_generate
Kling 4.0 text to video. Use when a text prompt should produce a short video.
3s minimum, from 565.2 credits
Pricing
| Condition | Charge |
|---|---|
| 720p | 188.4 credits/second |
| 1080p | 282 credits/second |
Charges follow the selected settings and the rates below.
When no duration is specified, pricing uses 5 seconds.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
request_body | object | Yes | No parameter description. | — |
request_body.prompt | string | Yes | The positive prompt for the generation. | — |
request_body.duration | enum (3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30) | No | The duration of the generated video in seconds (3-30). | 5 |
request_body.resolution | enum (720p | 1080p) | No | Output resolution. | 720p |
request_body.aspect_ratio | enum (16:9 | 9:16 | 1:1 | 21:9) | No | The aspect ratio of the generated video. | 16:9 |
Invocation example
Copy the request and explore its response example.
POST
/agent-api/v1/tool/executeX-Api-KeySubmit first, then query with the returned task_id until the task completes.
Request coderequest.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_kuaishou_kling_4_0_video_generate' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"request_body": {
"aspect_ratio": "1:1",
"duration": 8,
"prompt": "Cinematic vertical video, a young East Asian woman in her early twenties, delicate features, fair luminous skin, long black hair loosely draped, wearing a flowing translucent silk robe that catches the light. Setting: an opulent palace chamber with tall windows, warm golden light filtering through layers of sheer gauze curtains that billow softly.\n\nThe sequence unfolds as a meditative emotional arc:\nShe stands in profile near a window, golden light wrapping around her silhouette. Her hand rises slowly, fingers trailing gently down her own forearm, a gesture of quiet self-awareness. She turns her head toward the light, eyes closing as if bathing in warmth. A soft contented smile plays on her lips. The camera slowly orbits around her, silk robe rippling, fabric shimmering as light passes through.\n\nHer eyes open and look toward the camera. Her fingertips brush her own cheek, tracing the curve of her jawline with wonder. The expression transforms subtly from contentment to something more radiant, as if a long-held weight has lifted. A genuine luminous smile breaks across her face. The camera pushes in for an intimate close-up, capturing the light in her eyes.\n\nShe lifts a strand of hair and lets it fall, then steps slowly backward to the hall center, arms rising slightly at her sides, palms open upward. The fabric of her robe slips slightly, revealing the graceful line of her neck. Gauze curtains swirl gently around her. The camera pulls back and rises, revealing the full palace grandeur. She tilts her face up toward cascading golden light. The light envelops her completely. She stands serene and whole, profoundly fulfilled.\n\nThroughout: extremely shallow depth of field, soft bokeh, warm amber color grading, film grain, 35mm anamorphic look, slow deliberate camera movements, focus breathing, intimate close-ups intercut with medium shots. Mood: reverent, tender, transformative, quietly euphoric.",
"resolution": "720p"
}
}
}'Response exampleresponse.json
{
"description": "task accepted; poll the result via query_tool with this task_id",
"query_tool": "ae_get_result",
"status": "created",
"task_id": "c0046668-5025-47de-955e-1caf57827e4c"
}This example shows part of the response. Copied content is valid JSON.

