curl --request POST \
--url https://api.omnimux.ai/v1/video/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "kling-avatar",
"prompt": "Portrait subject speaking calmly to camera under soft studio lighting",
"images": ["https://example.com/avatar-portrait.jpg"]
}'
{
"task_id": "task_01HXYZABCDEF",
"status": "queued"
}
{
"error": { "message": "Invalid request", "type": "invalid_request_error", "code": "bad_request" }
}
{
"error": { "message": "Invalid token", "type": "authentication_error", "code": "unauthorized" }
}
{
"error": {
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota",
"code": "insufficient_quota"
}
}
{
"error": { "message": "Model not allowed", "type": "permission_error", "code": "forbidden" }
}
{
"error": { "message": "Rate limit exceeded", "type": "rate_limit_error", "code": "rate_limit_exceeded" }
}
{
"error": { "message": "Internal server error", "type": "server_error", "code": "internal_error" }
}
curl --request POST \
--url https://api.omnimux.ai/v1/video/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "kling-avatar",
"prompt": "Portrait subject speaking calmly to camera under soft studio lighting",
"images": ["https://example.com/avatar-portrait.jpg"]
}'
{
"task_id": "task_01HXYZABCDEF",
"status": "queued"
}
{
"error": { "message": "Invalid request", "type": "invalid_request_error", "code": "bad_request" }
}
{
"error": { "message": "Invalid token", "type": "authentication_error", "code": "unauthorized" }
}
{
"error": {
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota",
"code": "insufficient_quota"
}
}
{
"error": { "message": "Model not allowed", "type": "permission_error", "code": "forbidden" }
}
{
"error": { "message": "Rate limit exceeded", "type": "rate_limit_error", "code": "rate_limit_exceeded" }
}
{
"error": { "message": "Internal server error", "type": "server_error", "code": "internal_error" }
}
Kling
Kling Avatar 视频生成
在 OmniMux 上查看 Kling Avatar(kling-avatar)可用状态与调用路径,或直接选用已上线的 LTX 2.3 与 MiniMax H3 数字人口型同步专线。
curl --request POST \
--url https://api.omnimux.ai/v1/video/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "kling-avatar",
"prompt": "Portrait subject speaking calmly to camera under soft studio lighting",
"images": ["https://example.com/avatar-portrait.jpg"]
}'
{
"task_id": "task_01HXYZABCDEF",
"status": "queued"
}
{
"error": { "message": "Invalid request", "type": "invalid_request_error", "code": "bad_request" }
}
{
"error": { "message": "Invalid token", "type": "authentication_error", "code": "unauthorized" }
}
{
"error": {
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota",
"code": "insufficient_quota"
}
}
{
"error": { "message": "Model not allowed", "type": "permission_error", "code": "forbidden" }
}
{
"error": { "message": "Rate limit exceeded", "type": "rate_limit_error", "code": "rate_limit_exceeded" }
}
{
"error": { "message": "Internal server error", "type": "server_error", "code": "internal_error" }
}
POST
/
v1
/
video
/
generations
curl --request POST \
--url https://api.omnimux.ai/v1/video/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "kling-avatar",
"prompt": "Portrait subject speaking calmly to camera under soft studio lighting",
"images": ["https://example.com/avatar-portrait.jpg"]
}'
{
"task_id": "task_01HXYZABCDEF",
"status": "queued"
}
{
"error": { "message": "Invalid request", "type": "invalid_request_error", "code": "bad_request" }
}
{
"error": { "message": "Invalid token", "type": "authentication_error", "code": "unauthorized" }
}
{
"error": {
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota",
"code": "insufficient_quota"
}
}
{
"error": { "message": "Model not allowed", "type": "permission_error", "code": "forbidden" }
}
{
"error": { "message": "Rate limit exceeded", "type": "rate_limit_error", "code": "rate_limit_exceeded" }
}
{
"error": { "message": "Internal server error", "type": "server_error", "code": "internal_error" }
}
- 创建:
POST /v1/video/generations,model设为kling-avatar - 异步任务:用返回的
task_id查询 查询视频任务 - 实时目录提示:接入前请在OmniMux 控制台或通过
GET /v1/models确认当前账号是否已开通kling-avatar。如需调用当前实时在线的照片+音频口型同步/数字人线路,推荐直接使用 LTX 数字人(ltx-2-3-kj)或 MiniMax H3 视频专线(minimax-h3-video,使用minimax-h3-video-digital-human分组) - 产物 URL 请及时落盘(上游链接可能有时效)
身份
| 字段 | 值 |
|---|---|
| 系列 | 视频系列 |
| 品牌 | Kling |
| model | kling-avatar |
在线数字人与口型同步替代方案
| 模型 ID | 接口路径 | 能力说明 | 文档 |
|---|---|---|---|
ltx-2-3-kj | POST /v1/video/generations | 人像图 + 音频对口型(nodeInfoList) | LTX 数字人 |
minimax-h3-video | POST /v1/videos | 数字人专线(minimax-h3-video-digital-human 分组,人像图 + 语音) | MiniMax H3 视频专线 |
接口
| 方法 | 路径 |
|---|---|
POST | /v1/video/generations |
GET | /v1/video/generations/{task_id} |
https://api.omnimux.ai
鉴权
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
Authorization | header | string | 是 | Bearer sk-...(API Key) |
请求体
网关暂未为kling-avatar 发布独立模型规格档案;实际字段请以已开通渠道及 GET /v1/models 返回为准。
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | kling-avatar(当实时目录可用时) |
prompt | string | 条件 | 画面或动作描述 |
seconds / duration | number | 否 | 时长(秒,受模型与网关上限约束) |
size / resolution | string | 否 | 分辨率(模型相关) |
image / images | string/array | 否 | 人像参考图 URL |
响应
200(创建)
| 字段 | 类型 | 说明 |
|---|---|---|
task_id | string | 任务 id,用于轮询 |
status | string | 如 queued / processing / completed |