Discussions

Ask a Question
Back to all

Not able to generate video using Template API

I am trying following API:


curl --location '<https://api.heygen.com/v2/template/TEMPLATE_ID/generate'>  
--header 'X-Api-Key: XXXXX'  
--header 'Content-Type: application/json'  
--data '{  
  "title": "New Video 2",  
  "variables": {  
    "first_name": {  
      "name": "first_name",  
      "type": "text",  
      "properties": {  
        "content": "Dip"  
      }  
    },  
     "content_placeholder": {  
      "name": "content_placeholder",  
      "type": "text",  
      "properties": {  
        "content": "Custom generated content."  
      }  
    }  
  },  
  "caption": false,  
  "dimension": { "width": 1280, "height": 720},  
  "include_gif": false  
}'

But I keep getting following error.

  "error": {
            "code": "RESOLUTION_NOT_ALLOWED",
            "detail": "Please subscribe to higher plan to generate higher resolution videos",
            "message": "Please subscribe to higher plan to generate higher resolution videos"
        },

The template contains a taking photo avatar.