Skip to main content
POST
/
v2
/
video_translate
Translate Video
curl --request POST \
  --url https://api.jogg.ai/v2/video_translate/ \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "video_url": "https://res.jogg.ai/video.mp4",
  "output_language": "spanish",
  "title": "Translated Video Title",
  "translate_audio_only": false,
  "output_voice": "es-ES-ElviraNeural",
  "add_subtitles": true,
  "enable_dynamic_duration": false,
  "callback_url": "https://example.com/callback"
}
'
{
  "code": 0,
  "msg": "Success",
  "data": {
    "video_translate_id": "vt_123456"
  }
}
Translate an existing video into another language with voiceover and subtitles.
Video Duration Limit: Videos must be between 0-3 minutes in length.

Example Usage

curl -X POST 'https://api.jogg.ai/v2/video_translate/' \
  -H 'x-api-key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "video_url": "https://example.com/original.mp4",
    "target_language": "es",
    "voice_id": "es-ES-AlvaroNeural",
    "enable_subtitles": true
  }'

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

URL of the video to translate

Example:

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

output_language
string
required

Target language for translation

Example:

"spanish"

title
string

Title for the translated video

Example:

"Translated Video Title"

translate_audio_only
boolean

Translate audio only without lip sync

Example:

false

output_voice
string

Voice ID for dubbed audio

Example:

"es-ES-ElviraNeural"

add_subtitles
boolean

Enable translated subtitles

Example:

true

enable_dynamic_duration
boolean

Enable dynamic duration adjustment

Example:

false

callback_url
string<uri>

Callback URL for status notifications

Example:

"https://example.com/callback"

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