---
title: "Create Lip Sync Task"
method: POST
path: "/kling/v1/videos/advanced-lip-sync"
---

# Create Lip Sync Task

`POST /kling/v1/videos/advanced-lip-sync`

Create an asynchronous lip sync video generation task. The facial movements in the source video are re-animated to match the provided speech.

**Prerequisite**: call the `identify-face` endpoint first to obtain a `session_id`.

Two input modes are supported:
- **Text mode** — provide `text`, `voice_id`, and `voice_language`. The platform converts the text to speech using the specified voice and drives the lip movements.
- **Audio mode** — provide `audio_url`. The lip movements are driven directly by the supplied audio file.

After submission, poll `GET /kling/v1/videos/advanced-lip-sync/{task_id}` until `status` is `succeeded`.

## Request body

- object
  - `input` object, required
    - `session_id` string, required — Session ID obtained from the `identify-face` endpoint.
    - `face_image_url` string — Optional reference face image URL to improve identity consistency.
    - `text` string — Text for the character to speak (Text mode). The platform uses built-in TTS to synthesize the audio. Required when `audio_url` is not provided.
    - `voice_id` string — Voice ID for TTS synthesis (Text mode). Required when `text` is provided.
    - `voice_language` 'zh' | 'en' — Language code for TTS synthesis (Text mode). Required when `text` is provided.
    - `audio_url` string — Public URL of an audio file to drive lip movements directly (Audio mode). Required when `text` is not provided.

## Response `200`

Lip sync task created

- object
  - `id` string — Task ID
  - `task_id` string — Task ID (same as id)
  - `object` string
  - `model` string
  - `status` string — Initially empty; poll the query endpoint for updates.
  - `progress` integer — Progress 0–100
  - `created_at` integer — Unix timestamp

## Other responses

- `400` — Invalid request
- `401` — Unauthorized

---

[API](https://skmtc.net/anyfast/apis/anthropic-claude-compatible-endpoint.md) · [All operations](https://skmtc.net/anyfast/apis/anthropic-claude-compatible-endpoint/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/anyfast/anthropic-claude-compatible-endpoint/revisions/edfc53e182a1/schema)
