Skip to content

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.

    1. Use this API to get all available template, select the template id.
    1. Use Template To Video with the template id and user image.
    1. Use the Polling API to get results.

Request Headers

  • Content-TypestringRequired
    Enum
    application/json
  • AuthorizationstringRequired
    Bearer authentication format, for example: Bearer

Request Body

Response

  • codeinteger
    status code, 0 for success, or error code.
  • messagestring
    "success", or error msg.
  • dataobject
    listArray
    templateIdstring
    template id used to animate video.
    namestring
    template name.
    imgUrlstring
    template 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"
      }
    ]
  }
}