Generate WebM Video

POSThttps://api.konpro.ai/v1/video/webm

Create a WebM format video featuring an avatar speaking or performing based on supplied text or audio input.

Request History

Log in to see full request history

TIMESTATUSUSER AGENT
Make a request to see history.

0 Requests This Month

Request Body Parameters

FieldTypeDescription
avatar_pose_idstringID representing the avatar's pose to be used in the video. Defaults to "Vanessa-invest-20220722". Obtainable from the avatar list API.
avatar_stylestringStyle of the avatar's appearance. Options include "normal" (default), "closeUp", "circle", and "voiceOnly".
input_textstringText string the avatar will speak in the video. Defaults to "This is a WebM video generated by KonPro API".
voice_idstringID of the voice used for speech synthesis. Defaults to "1bd001e7e50f421d891986aad5158bc8".
input_audiostringURL of an audio file to use instead of text and voice. Specify either input_text/voice_id or input_audio, but not both.
dimensionobjectDefines the video output resolution. The size scales proportionally based on the original avatar height.

Response Fields

FieldTypeDescription
codeintegerStatus code (100 indicates success; others indicate errors)
dataobjectContains result data from the request
data.video_idstringUnique identifier of the generated video
messagestring/nullDescriptive message regarding the status or errors

cURL Request

shell
curl --request POST \
--url https://api.konpro.ai/v1/video/webm \
--header "accept: application/json" \
--header "content-type: application/json" \
--header "x-api-key: <your-api-key>" \
--data '{
  "avatar_pose_id": "Vanessa-invest-20220722",
  "avatar_style": "normal",
  "input_text": "This is a WebM video generated by KonPro API",
  "voice_id": "1bd001e7e50f421d891986aad5158bc8",
  "dimension": {
    "width": 1280,
    "height": 720
  }
}'

Example Usage

Shell
curl --request POST \
--url https://api.konpro.ai/v1/video/webm \
--header "accept: application/json" \
--header "content-type: application/json" \
--header "x-api-key: <your-api-key>" \
--data '{
  "avatar_pose_id": "Vanessa-invest-20220722",
  "avatar_style": "normal",
  "input_text": "This is a WebM video generated by KonPro API",
  "voice_id": "1bd001e7e50f421d891986aad5158bc8",
  "dimension": {
    "width": 1280,
    "height": 720
  }
}'

LANGUAGE

CREDENTIALS

HEADER

RESPONSE

Examples

Choose an example:

application/json
200 - Result
400 - Result