Generate WebM Video
POST
https://api.konpro.ai/v1/video/webmCreate 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
| TIME | STATUS | USER AGENT |
|---|---|---|
| Make a request to see history. | ||
0 Requests This Month
Request Body Parameters
| Field | Type | Description |
|---|---|---|
| avatar_pose_id | string | ID representing the avatar's pose to be used in the video. Defaults to "Vanessa-invest-20220722". Obtainable from the avatar list API. |
| avatar_style | string | Style of the avatar's appearance. Options include "normal" (default), "closeUp", "circle", and "voiceOnly". |
| input_text | string | Text string the avatar will speak in the video. Defaults to "This is a WebM video generated by KonPro API". |
| voice_id | string | ID of the voice used for speech synthesis. Defaults to "1bd001e7e50f421d891986aad5158bc8". |
| input_audio | string | URL of an audio file to use instead of text and voice. Specify either input_text/voice_id or input_audio, but not both. |
| dimension | object | Defines the video output resolution. The size scales proportionally based on the original avatar height. |
Response Fields
| Field | Type | Description |
|---|---|---|
| code | integer | Status code (100 indicates success; others indicate errors) |
| data | object | Contains result data from the request |
| data.video_id | string | Unique identifier of the generated video |
| message | string/null | Descriptive 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
LANGUAGE
CREDENTIALS
HEADER
RESPONSE
Examples
Choose an example:
application/json
200 - Result
400 - Result