Skip to main content
Endpoint: POST https://fal.run/fal-ai/kling-video/v1/pro/ai-avatar Endpoint ID: fal-ai/kling-video/v1/pro/ai-avatar

Try it in the Playground

Run this model interactively with your own prompts.

Quick Start

import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "fal-ai/kling-video/v1/pro/ai-avatar",
    arguments={
        "image_url": "https://storage.googleapis.com/falserverless/example_inputs/kling_ai_avatar_input.jpg",
        "audio_url": "https://v3.fal.media/files/rabbit/9_0ZG_geiWjZOmn9yscO6_output.mp3"
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)

Input Schema

image_url
string
required
The URL of the image to use as your avatar
audio_url
string
required
The URL of the audio file.
prompt
string
default:"."
The prompt to use for the video generation. Default value: "."

Output Schema

video
File
required
The generated video
duration
float
required
Duration of the output video in seconds.

Input Example

{
  "image_url": "https://storage.googleapis.com/falserverless/example_inputs/kling_ai_avatar_input.jpg",
  "audio_url": "https://v3.fal.media/files/rabbit/9_0ZG_geiWjZOmn9yscO6_output.mp3",
  "prompt": "."
}

Output Example

{
  "video": {
    "url": "https://v3.fal.media/files/penguin/ln3x7H1p1jL0Pwo7675NI_output.mp4"
  }
}