Get Video Template
GET https://api.newportai.com/api/get_video_template
User can get templateId from this API used in Template To Video. These templates are composed of high-quality prompts and have been verified by users.
- Use this API to get all available template, select the template id.
- Use Template To Video with the template id and user image.
- Use the Polling API to get results.
Request Headers
- Content-TypestringRequiredEnumapplication/json
- AuthorizationstringRequiredBearer authentication format, for example: Bearer
Request Body
Response
- codeintegerstatus code, 0 for success, or error code.
- messagestring"success", or error msg.
- dataobjectlistArraytemplateIdstringtemplate id used to animate video.namestringtemplate name.imgUrlstringtemplate example image.
Example
Request:
zsh
curl 'https://api.newportai.com/api/get_video_template' \
-H "Authorization: Bearer {{key}}"
Response:
json
{
"code": 0,
"message": "success",
"data": {
"list": [
{
"templateId": "6752c394d3333900087a538f",
"imgUrl": "https://dreamface-resource-new.s3.amazonaws.com/server/aigc/main/f4921a8f-1da1-4313-83c8-733cd2f86119.webp",
"name": "hand heart"
}
]
}
}