{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kling-ai/json-schema/kling-ai-lip-sync-request-schema.json",
  "title": "LipSyncRequest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kling-ai-lip-sync-api-openapi.yml#/components/schemas/LipSyncRequest",
  "type": "object",
  "properties": {
    "video_id": {
      "type": "string",
      "description": "Origin task/video id of the video to lip-sync."
    },
    "video_url": {
      "type": "string",
      "description": "Alternatively, a URL to the source video."
    },
    "mode": {
      "type": "string",
      "enum": [
        "text2video",
        "audio2video"
      ],
      "description": "Drive lips from generated speech (text) or from an audio file."
    },
    "text": {
      "type": "string",
      "description": "Text to synthesize into speech when mode is text2video."
    },
    "voice_id": {
      "type": "string",
      "description": "Voice identifier for text-to-speech."
    },
    "audio_url": {
      "type": "string",
      "description": "Audio file URL when mode is audio2video."
    },
    "callback_url": {
      "type": "string"
    }
  }
}