# "đồng bộ chuyển động môi"

Nguồn: https://docs.openaihub.net/api-45208985/

> API origin: `https://api.openaihub.net`. Chọn đúng nhóm API và model. Thông số dưới đây là bản tham chiếu kỹ thuật; chưa phải kết quả kiểm thử từng endpoint bằng tài khoản của bạn.


## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /kling/v1/videos/lip-sync:
    post:
      summary: đồng bộ chuyển động môi
      deprecated: false
      description: >-
        1. Tạo video

        2. Giao diện này yêu cầu ID video hoặc URL video

        ID video cần được sử dụng trên tài khoản tác vụ cha. Vui lòng thực hiện
        sớm nhất có thể để tránh gói tài nguyên hết hạn.

        Tài liệu chính thức:
        https://app.klingai.com/cn/dev/document-api/apiReference/model/videoTolip


        Hệ thống cung cấp nhiều âm sắc để lựa chọn, cùng với hiệu ứng âm sắc, ID
        âm sắc và ngôn ngữ tương ứng cụ thể [nhấp vào đây để
        xem](https://docs.qingque.cn/s/home/eZQDvafJ4vXQkP8T9ZPvmye8S?identityId=2E1MlYrrPk4)
      operationId: post-kling-v1-videos-lip-sync
      tags:
        - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Video/Kling
        - kling
      parameters:
        - name: Content-Type
          in: header
          description: Content-Type của phần thân yêu cầu, thường là application/json
          required: true
          example: application/json
          schema:
            type: string
        - name: Accept
          in: header
          description: Content-Type dự kiến của phản hồi
          required: true
          example: application/json
          schema:
            type: string
        - name: Authorization
          in: header
          description: Khóa API Bearer
          required: true
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - input
              properties:
                input:
                  type: object
                  required:
                    - mode
                    - text
                    - voice_id
                    - voice_language
                    - video_id
                    - video_url
                  properties:
                    mode:
                      type: string
                      enum:
                        - std
                        - pro
                      enumDetails:
                        - value: std
                          displayName: chế độ tiêu chuẩn
                          description: chế độ cơ bản, hiệu quả chi phí tốt hơn
                        - value: chuyên nghiệp
                          displayName: chế độ chuyên gia
                          description: chế độ hiệu suất cao, chất lượng video tốt hơn
                      description: chế độ tạo video
                    text:
                      type: string
                      description: kịch bản cho âm thanh tổng hợp
                    video_id:
                      type: string
                      description: ID của video được tạo bởi Kling AI
                    video_url:
                      type: string
                      description: >-
                        URL của video đã tải lên, loại trừ lẫn nhau với
                        input.video_id; phải thiết lập chính xác một trong hai
                    voice_id:
                      type: string
                      description: ID giọng nói
                    voice_language:
                      type: string
                      enum:
                        - zh
                        - en
                      enumDetails:
                        - value: zh
                        - value: en
                      description: ngôn ngữ giọng nói, tương ứng với mã định danh giọng nói
                  description: Vui lòng cung cấp nội dung tài liệu cần dịch.
                  x-apifox-orders:
                    - mode
                    - text
                    - video_id
                    - video_url
                    - voice_id
                    - voice_language
                  x-apidog-orders:
                    - mode
                    - text
                    - video_id
                    - video_url
                    - voice_id
                    - voice_language
              x-apifox-orders:
                - input
              x-apidog-orders:
                - input
            examples:
              example:
                value:
                  input:
                    mode: std
                    text: >-
                      Hôm nay thời tiết rất đẹp Hôm nay thời tiết rất đẹp Hôm
                      nay thời tiết rất đẹp Hôm nay thời tiết rất đẹp Hôm nay
                      thời tiết rất đẹp Hôm nay thời tiết rất đẹp Hôm nay thời
                      tiết rất đẹp Hôm nay thời tiết rất đẹp Hôm nay thời tiết
                      rất đẹp Hôm nay thời tiết rất đẹp Hôm nay thời tiết rất
                      đẹp
                    video_id: '827964097668337738'
                    video_url: https://example.com/sample.mp4
                    voice_id: girlfriend_1_speech02
                    voice_language: zh
                summary: example
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                  - request_id
                  - data
                properties:
                  code:
                    type: integer
                    description: Mã trạng thái nghiệp vụ
                  data:
                    type: object
                    required:
                      - task_id
                      - task_status
                      - task_info
                      - created_at
                      - updated_at
                    properties:
                      created_at:
                        type: integer
                        description: Thời gian tạo
                      task_id:
                        type: string
                        description: ID tác vụ bất đồng bộ
                      task_info:
                        type: object
                        description: Vui lòng cung cấp nội dung tài liệu kỹ thuật cần dịch.
                        x-apidog-orders: []
                      task_status:
                        type: string
                        description: Trạng thái tác vụ
                      updated_at:
                        type: integer
                        description: Thời gian cập nhật
                    description: >-
                      Phần dữ liệu (thường là Base64 hoặc một đối tượng có cấu
                      trúc)
                    x-apifox-orders:
                      - created_at
                      - task_id
                      - task_info
                      - task_status
                      - updated_at
                    x-apidog-orders:
                      - created_at
                      - task_id
                      - task_info
                      - task_status
                      - updated_at
                  message:
                    type: string
                    description: Vui lòng cung cấp nội dung tài liệu cần dịch.
                  request_id:
                    type: string
                    description: ID truy vết yêu cầu
                x-apifox-orders:
                  - code
                  - data
                  - message
                  - request_id
                x-apidog-orders:
                  - code
                  - data
                  - message
                  - request_id
              examples:
                example:
                  summary: example
                  value:
                    code: 0
                    data:
                      created_at: 1762832498885
                      task_id: '817067112967086149'
                      task_info: {}
                      task_status: đã gửi
                      updated_at: 1762832498885
                    message: THÀNH CÔNG
                    request_id: 38905f60-e76c-4f77-adb3-867a5b67d41e
          headers: {}
          x-apidog-name: ''
        '400':
          description: Yêu cầu không hợp lệ hoặc xác thực thất bại
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - message
                      - type
                    properties:
                      message:
                        type: string
                        description: Thông báo lỗi (thường kết thúc bằng mã yêu cầu)
                      type:
                        type: string
                        description: Loại lỗi; các lỗi cổng cục bộ thường là new_api_error
                        examples:
                          - new_api_error
                    x-apifox-orders:
                      - message
                      - type
                    x-apidog-orders:
                      - message
                      - type
                refName: NewApiError
                x-apifox-orders:
                  - error
                x-apidog-orders:
                  - error
              examples:
                example:
                  summary: example
                  value:
                    error:
                      message: >-
                        Yêu cầu không hợp lệ (mã yêu cầu:
                        20260805120000123456789AbCdEfGh)
                      type: new_api_error
          headers: {}
          x-apidog-name: Yêu cầu không hợp lệ hoặc xác thực thất bại
        '401':
          description: Khóa API bị thiếu hoặc không hợp lệ
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - message
                      - type
                    properties:
                      message:
                        type: string
                        description: Thông báo lỗi (thường kết thúc bằng mã yêu cầu)
                      type:
                        type: string
                        description: Loại lỗi; các lỗi cổng cục bộ thường là new_api_error
                        examples:
                          - new_api_error
                    x-apifox-orders:
                      - message
                      - type
                    x-apidog-orders:
                      - message
                      - type
                refName: NewApiError
                x-apifox-orders:
                  - error
                x-apidog-orders:
                  - error
              examples:
                example:
                  summary: example
                  value:
                    error:
                      message: >-
                        Mã thông báo không hợp lệ (request id:
                        20260805120000123456789AbCdEfGh)
                      type: new_api_error
          headers: {}
          x-apidog-name: Khóa API bị thiếu hoặc không hợp lệ
      security: []
      x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Video/Kling
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208985-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.openaihub.net
    description: Prod Env
security: []

```
