Kling Video O3 Pro Text To Video
135积分/次起
ae_kling_video_o3_pro_text_to_video
根据文字描述创建短视频,可设置画面比例、时长、音频和多镜头序列。
135积分/次起
价格说明
135积分/次起
| 生成音频 | 费用 |
|---|---|
| 关闭 / 未指定 | 135积分/秒 |
| 开启 | 168积分/秒 |
时长未填写时按1秒计费。 起价对应生成音频:关闭。
工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
request_body | object | 是 | 暂无参数说明。 | — |
request_body.prompt | string | unknown | 否 | Text prompt for video generation. Required unless multi_prompt is provided. | — |
request_body.duration | enum (3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15) | 否 | Video duration in seconds (3-15s). | 5 |
request_body.shot_type | string | 否 | The type of multi-shot video generation. | customize |
request_body.aspect_ratio | enum (16:9 | 9:16 | 1:1) | 否 | Aspect ratio of the generated video. | 16:9 |
request_body.multi_prompt | array | unknown | 否 | List of prompts for multi-shot video generation. | — |
request_body.multi_prompt[].prompt | string | 是 | The prompt for this shot. | — |
request_body.multi_prompt[].duration | enum (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15) | 否 | The duration of this shot in seconds | 5 |
request_body.generate_audio | boolean | 否 | Whether to generate native audio for the video. | false |
调用示例
提交任务并查询完成结果
POST
/agent-api/v1/tool/executeX-Api-Key先提交任务,再用返回的 task_id 查询,直至完成。
请求代码request.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_kling_video_o3_pro_text_to_video' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"request_body": {
"aspect_ratio": "16:9",
"duration": "3",
"generate_audio": false,
"prompt": "纯黑纯色背景(绝对纯黑,没有任何地面、桌面、墙面、反光、渐变、烟雾、光晕或环境光),画面中只有一条深红色真丝缎带,悬浮在黑色空间里。\n\n材质:哑光缎面(matte satin,真丝缎),低反光,绝不是塑料、不是金属、不是漆皮。高光只沿着折痕柔和渐变,宽而柔;不要镜面反射、不要塑料高光点、不要金属光泽、不要刺眼白色闪光。布面有细微丝织纹理与自然柔软褶皱,厚度可感,不是一片薄膜。边缘柔和,带轻微景深虚化,不要锐利描边。\n\n运动(总时长 3 秒,短促利落,方向明确):\n第 0.0–1.2 秒:丝带从画面深处由远及近快速穿出,斜向上掠过前景,靠近镜头时略微变宽变亮。\n第 1.2–1.5 秒:急折返,突然反向折回画面深处。\n第 1.5–2.4 秒:反向斜向下快速穿出,从画面右下方离开画面边缘。\n第 2.4–3.0 秒:从画面左上方边缘重新穿入,卷回纵深,最后停在画面中部偏深处。\n丝带要多次进出画面四边,不总停留在画面中央,有明确的纵深穿梭动感。不要缓慢拖尾式飘动,不要固定单一方向横移。\n\n镜头:完全固定不动。不要横移、不要平移、不要推拉摇移、不要旋转。画面里不要出现文字、水印、字幕或任何其他物体。"
}
}
}'返回示例response.json
{
"description": "task accepted; poll the result via query_tool with this task_id",
"query_tool": "ae_get_result",
"status": "created",
"task_id": "fc1dbbdd-f41d-444e-a803-6bee9bdd4f71"
}



