> ## Documentation Index
> Fetch the complete documentation index at: https://docs.acedata.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Kling Lip Sync

> Kling Lip Sync



## OpenAPI

````yaml /openapi/kling.json post /kling/lip-sync
openapi: 3.0.0
info:
  title: Kling video generation
  version: 1.0.0
  description: API reference for Kling video generation on Ace Data Cloud.
servers:
  - url: https://api.acedata.cloud
    description: Ace Data Cloud API
security:
  - bearerAuth: []
paths:
  /kling/lip-sync:
    post:
      summary: Kling Lip Sync
      description: Kling Lip Sync
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - mode
              properties:
                video_id:
                  type: string
                  description: Kling Lip Sync Video Id
                video_url:
                  type: string
                  format: uri
                  description: Kling Lip Sync Video Url
                mode:
                  type: string
                  enum:
                    - audio2video
                    - text2video
                  description: Kling Lip Sync Mode
                audio_url:
                  type: string
                  format: uri
                  description: Kling Lip Sync Audio Url
                audio_type:
                  type: string
                  enum:
                    - url
                    - file
                  default: url
                  description: Kling Lip Sync Audio Type
                audio_file:
                  type: string
                  description: Kling Lip Sync Audio File
                text:
                  type: string
                  maxLength: 120
                  description: Kling Lip Sync Text
                voice_id:
                  type: string
                  description: Kling Lip Sync Voice Id
                voice_language:
                  type: string
                  enum:
                    - zh
                    - en
                  default: zh
                  description: Kling Lip Sync Voice Language
                voice_speed:
                  type: number
                  minimum: 0.8
                  maximum: 2
                  default: 1
                  description: Kling Lip Sync Voice Speed
                callback_url:
                  type: string
                  format: uri
                  description: Kling Lip Sync Callback Url
                async:
                  type: boolean
                  default: false
                  description: Kling Lip Sync Async
      responses:
        '200':
          description: Kling Lip Sync Response 200
          content:
            application/json:
              schema:
                type: object
                example:
                  success: true
                  task_id: 0c0b4d3a-2f1e-4a6b-9c2d-2b3c4d5e6f70
                  video_id: '895047463190134880'
                  video_url: https://cdn.acedata.cloud/bafb400e8a.mp4
                  duration: 5
                  state: succeed
        '400':
          description: Kling Lip Sync Response 400
          content:
            application/json:
              schema:
                type: object
                example:
                  code: bad_request
                  detail: one of video_id or video_url is required
        '401':
          description: Kling Lip Sync Response 401
          content:
            application/json:
              schema:
                type: object
                example:
                  code: authorization_missing
        '500':
          description: Kling Lip Sync Response 500
          content:
            application/json:
              schema:
                type: object
                example:
                  code: api_error
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API token from https://platform.acedata.cloud

````