Kling (Kie.ai) icon

Kling (Kie.ai)

Generate videos using Kling via Kie.ai API

AI Avatar

AI-generated

Summary

Generate a lip-synced AI avatar video using a provided portrait image, audio file, and text prompt with selectable AI avatar models.

Inputs

  • modelAvatar — Select the AI avatar model to use, either 'AI Avatar Pro' or 'AI Avatar Standard'. Defaults to 'AI Avatar Pro'.
  • prompt (required) — Provide a text prompt guiding the avatar video generation.
  • avatarImageUrl (required) — URL of the portrait/avatar image (jpg, jpeg, or png) with a clearly visible face.
  • audioUrl (required) — URL of the audio file that drives the avatar's lip-syncing.
  • replyUrl — Optional webhook URL that is called once the video generation task completes.
  • replyRef — Optional custom reference string included in the webhook callback for identification.
  • captchaToken — Optional reCAPTCHA v3 Enterprise token; leave empty to let kie.ai handle it automatically.
  • waitForCompletion — Whether to wait for the video generation task to complete before returning (polls every 3 seconds with a 5-minute timeout). Defaults to true.

Output shape

a single JSON object

Returns the API response for the avatar generation task. If 'waitForCompletion' is true, returns the final completed task data with parsed URLs for the generated video. Otherwise, returns the task creation response containing the task ID.

Links

Discussion