curl --request POST \
--url https://api.jogg.ai/v1/create_video_with_template \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"template_id": 1234,
"lang": "english",
"template_type": "common",
"avatar_id": 1,
"avatar_type": 0,
"voice_id": "en-US-ChristopherNeural",
"caption": true,
"music_id": 1,
"video_name": "My Video",
"variables": [
{
"type": "text",
"name": "<string>",
"properties": {
"content": "<string>",
"url": "<string>",
"asset_id": 123
}
}
]
}'
{
"code": 123,
"msg": "<string>",
"data": {
"project_id": "12345"
}
}
Create video from Your Template.
curl --request POST \
--url https://api.jogg.ai/v1/create_video_with_template \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"template_id": 1234,
"lang": "english",
"template_type": "common",
"avatar_id": 1,
"avatar_type": 0,
"voice_id": "en-US-ChristopherNeural",
"caption": true,
"music_id": 1,
"video_name": "My Video",
"variables": [
{
"type": "text",
"name": "<string>",
"properties": {
"content": "<string>",
"url": "<string>",
"asset_id": 123
}
}
]
}'
{
"code": 123,
"msg": "<string>",
"data": {
"project_id": "12345"
}
}
Success
The response is of type object
.