ai_avatar
Create a Kling task from a face image, audio, and prompt to generate a lip-synced avatar video; returns task ID, status, and output URLs.
Instructions
Create a Kling task on RunAPI (ai avatar). Returns a task id, status, and output URLs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_image_url": "<source_image_url>",
"source_audio_url": "<source_audio_url>",
"prompt": "<prompt>"
},
"name": "ai_avatar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| prompt | Yes | Description of the avatar. Declared type: string. | |
| timeout_ms | No | ||
| callback_url | No | Webhook URL for async notifications. Declared type: string. | |
| poll_interval_ms | No | ||
| source_audio_url | Yes | Audio URL for lip sync. Declared type: string. | |
| source_image_url | Yes | Face image URL. Declared type: string. |