
以标准或Pro模式制作的视频模型有Text至Video,Image至Video,Reference-toVideo,编辑,原声,以及多景过渡.
以标准或Pro模式制作的视频模型有Text至Video,Image至Video,Reference-toVideo,编辑,原声,以及多景过渡.
也称为 Kling AI Kling O3, Kling-O3
kling-o3/v1/videos/generationskling/o3来自 EmpirioLabs 目录的实时按量计费价格。只为实际用量付费,没有月度最低消费。
Kling O3 通过 POST /v1/videos/generations 运行。请求会立即返回 job_id;轮询 GET /v1/jobs/{job_id} 直到任务完成,再从结果中读取输出 URL。 在EmpirioLabs 控制台获取 API 密钥。
curl https://api.empiriolabs.ai/v1/videos/generations \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling-o3",
"prompt": "Describe what you want Kling O3 to generate."
}'curl https://api.empiriolabs.ai/v1/jobs/JOB_ID \
-H "Authorization: Bearer $EMPIRIOLABS_API_KEY"import requests
response = requests.post(
"https://api.empiriolabs.ai/v1/videos/generations",
headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
json={
"model": "kling-o3",
"prompt": "Describe what you want Kling O3 to generate.",
},
)
job = response.json()
# Generation runs as an async job. Poll until it completes.
import time
while True:
status = requests.get(
f"https://api.empiriolabs.ai/v1/jobs/{job['job_id']}",
headers={"Authorization": "Bearer YOUR_EMPIRIOLABS_API_KEY"},
).json()
if status.get("status") in ("completed", "failed"):
print(status)
break
time.sleep(5)EmpirioLabs 上 Kling O3 API 支持的请求参数。省略字段时使用默认值。
| 参数 | 类型 | 默认值 | 范围 / 值 | 描述 |
|---|---|---|---|---|
| prompt | string | - | - | 多场景:管道(|)或换行分隔提示,可选时长前缀,如“5:场景文本”。最多6个场景。 |
| model_tier | enum | pro | standard, pro, 4k | 标准:最便宜。优点:质量平衡。4K:最高保真,最长渲染。 |
| workflow | enum | auto | auto, t2v, i2v, video_edit, reference | 自动:从输入中检测。T2V:text-to-video。i2V:image-to-video。video_edit:编辑附上视频。参考:请使用reference_images或 reference_videos。 |
| aspect_ratio | enum | 16:9 | 16:9, 1:1, 9:16 | Kling O3 仅支持横屏、方形和竖屏。 |
| duration | number | 5 | 3 到 15 | 每场戏的时长以秒计。 |
| sound | boolean | true | - | 用视频生成原生音频。 |
| keep_original_sound | boolean | true | - | video_edit。保留源视频的音频。 |
| image | string | - | - | i2v的参考图片网址。 |
| image_end | string | - | - | 可选的最后一帧图片网址用于image-to-video。 |
| video | string | - | - | video_edit视频来源链接。 |
| reference_images | string | - | - | 用于参考工作流程的逗号分隔图片URL。 |
| reference_videos | string | - | - | 用于参考工作流程的逗号分隔视频URL。 |
标准或Pro模式中的视频模型有 text-to-video, image-to-video, reference-to-video,编辑,原声,以及多场过渡. 上载的媒体预处理 - 视频输入的视频编辑和视频参考工作流程上限为10秒. - 上传的视频输入在有需要时恢复正常化为与供应商兼容的MP4。 - Kling O3 4K 支持文本,图像,和只使用图像的参考工作流程. 视频输入使用标准或Pro.
在 EmpirioLabs,Kling O3 按量计费:标准 T2V/I2V $0.168 每秒钟; 标准 T2V/I2V 声音 $0.224 每秒钟; 标准视频输入 $0.252 每秒钟。本页的实时价格表始终与 API 的实际计费一致。
Kling O3 通过 api.empiriolabs.ai 上的 POST /v1/videos/generations 提供,使用标准的 Bearer 令牌认证。
可以。EmpirioLabs Playground在浏览器中以与 API 相同的参数运行 Kling O3,你可以在写代码之前先测试提示词。
创建 EmpirioLabs 账户,然后在控制台的 API Keys生成密钥。计费使用按量付费的额度,只为实际发出的请求付费。