Skip to main content
POST
/
open
/
v2
/
create_lip_sync_video
Create lip sync video task
curl --request POST \
  --url https://api.jogg.ai/open/v2/create_lip_sync_video \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "video_url": "https://res.jogg.ai/source-video.mp4",
  "audio_url": "https://res.jogg.ai/source-audio.wav",
  "playback_type": "normal"
}
'
{
  "code": 0,
  "msg": "Success",
  "data": {
    "task_id": "3d5c6930-d0da-4f7b-826e-cd1530f6734f",
    "status": "pending"
  }
}
Submit a source video URL and a source audio URL to create a lip sync video task.

Example Usage

curl --request POST \
  --url 'https://api.jogg.ai/open/v2/create_lip_sync_video' \
  --header 'x-api-key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "video_url": "https://res.jogg.ai/source-video.mp4",
    "audio_url": "https://res.jogg.ai/source-audio.wav",
    "playback_type": "normal"
  }'

Get Lip Sync Task Status

Check task processing status and results

Authorizations

x-api-key
string
header
required

API key for authentication. Obtain your key from the JoggAI dashboard.

Body

application/json
video_url
string<uri>
required

Source video URL

Example:

"https://res.jogg.ai/source-video.mp4"

audio_url
string<uri>
required

Source audio URL

Example:

"https://res.jogg.ai/source-audio.wav"

playback_type
enum<string>
default:normal

Playback strategy when source video is shorter than audio

Available options:
normal,
normal_reverse,
normal_reverse_by_audio
Example:

"normal"

Response

200 - application/json

Success

code
integer
required

Business status code:

  • 0 - Success
  • 10104 - Record not found
  • 10105 - Invalid API key
  • 18020 - Insufficient credit
  • 18025 - No permission to call APIs
  • 40000 - Parameter error
  • 50000 - System error
Example:

0

msg
string
required

Response message

Example:

"Success"

data
object