Create Videos with Photo Avatars
Create engaging videos using your personalized photo avatars
Welcome to Photo Avatar Video Creation!
After generating AI Photo Avatars, you can use them in the Create Avatar Video API to generate videos.
Get Photo Avatar ID
If you already have a photo avatar ID from previous steps, you can skip this step.
Avatar Group: Get the avatar group ID
You can use this ID or view other looks and choose a different look ID.
curl -L 'https://api.konpro.ai/v1/avatar_group.list' \ -H 'x-api-key: <your-api-key>' \ -H 'Content-Type: application/json'
{
"code": 0,
"data": {
"avatar_groups": [
{
"group_id": "0b1b8dabd16f40a2b2ae6599790bba05",
"name": "Sylvia",
"created_at": "2024-01-15T10:30:00Z"
}
]
},
"message": "Success"
}Avatar Group Looks: Choose the avatar look ID
Select a specific look from your avatar group for video generation.
curl -L 'https://api.konpro.ai/v1/avatar_group/<group_id>/avatars' \ -H 'x-api-key: <your-api-key>' \ -H 'Content-Type: application/json'
{
"code": 0,
"data": {
"avatars": [
{
"talking_photo_id": "e08fcc7348ef4f839ed31abf000cef2c",
"image_key": "image/47b2367366d94ee79894ed1f692b33ae/original",
"created_at": "2024-01-15T10:30:00Z"
}
]
},
"message": "Success"
}Create a Video with the Photo Avatar
To generate Photo Avatar videos you need to change "Character Settings" type as talking_photo then you need to provide talking_photo_id you got in the previous step.
curl -X POST https://api.konpro.ai/v1/video/generate \
-H 'x-api-key: <your-api-key>' \
-H 'Content-Type: application/json' \
-d '{
"video_inputs": [
{
"character": {
"type": "talking_photo",
"talking_photo_id": "<talking_photo_id>"
},
"voice": {
"type": "text",
"input_text": "With KonPro, it is very easy to create Photo Avatar videos.",
"voice_id": "d7bbcdd6964c47bdaae26decade4a933"
}
}
]
}'{
"code": 0,
"data": {
"video_id": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
"status": "processing"
},
"message": "Success"
}Note
The video generation process may take some time. You can check the status of your video generation using the video_id returned in the response.
Conclusion
By following this guide, you can successfully create engaging videos using your personalized photo avatars. The process involves getting the appropriate avatar IDs and then using them in the video generation API with the correct character settings.