Create Video Avatar

POST/v1/video-avatars

Generate a video with an avatar speaking the provided text.

Request History

Log in to see full request history

TIMESTATUSUSER AGENT
Make a request to see history.

0 Requests This Month

Request Body

FieldTypeDescription
avatar_idstringThe ID of the avatar to use in the video
voice_idstringThe ID of the voice to use for speech
textstringThe text for the avatar to speak
settingsobjectVideo generation settings (resolution, format, background, webhook_url)

Settings Object

FieldTypeDescription
resolutionstringVideo resolution (e.g., 1080p)
formatstringVideo format (e.g., mp4)
backgroundstringBackground type or name (e.g., office)
webhook_urlstringURL to receive a callback when video generation is complete

Request Example

shell
curl -X POST https://api.konpro.ai/v1/video-avatars \
  -H "x-api-key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "avatar_id": "avatar-3655",
    "voice_id": "voice-123",
    "text": "Hello, welcome to KonPro! This is a sample video generation.",
    "settings": {
      "resolution": "1080p",
      "format": "mp4",
      "background": "office",
      "webhook_url": "https://your-webhook.com/callback"
    }
  }'

Response

FieldTypeDescription
job_idstringUnique identifier for the video generation job
statusstringCurrent status of the job (e.g., processing)
estimated_timeintegerEstimated time in seconds for video generation
messagestringStatus message (e.g., Video generation started)

Sample Successful Response

json
{
  "job_id": "job-456",
  "status": "processing",
  "estimated_time": 120,
  "message": "Video generation started"
}

Notes

  • This endpoint requires authentication using the x-api-key header.
  • The avatar_id must be a valid avatar ID from your account.
  • The voice_id must be a valid voice ID available in your account.
  • Video generation is asynchronous. Use the job_id to check the status of your video generation.
  • If a webhook_url is provided, you will receive a callback when the video is ready.
  • For error descriptions, see Error Responses.

Table of Contents