Portrait PRO
Use this endpoint to create a portrait pro video
curl -X POST "https://api.videograph.ai/video/services/api/v1/contents/portrait_pro" \
-H "Content-Type: application/json" \
-H "Accept: example_string" \
-H "Authorization: Basic YOUR_CREDENTIALS" \
-d '{
"title": "Portrait PRO Test",
"description": "Video description",
"tags": [
"tag1",
"tag2"
],
"metadata": [
{
"key": "abc",
"value": "pqr"
}
],
"playback_policy": [
"public",
"signed"
],
"content": [
{
"url": "https://d19nx8bm4jzw4h.cloudfront.net/Tears-of-steel.mp4"
}
]
}'
import requests
import json
url = "https://api.videograph.ai/video/services/api/v1/contents/portrait_pro"
headers = {
"Content-Type": "application/json",
"Accept": "example_string",
"Authorization": "Basic YOUR_CREDENTIALS"
}
data = {
"title": "Portrait PRO Test",
"description": "Video description",
"tags": [
"tag1",
"tag2"
],
"metadata": [
{
"key": "abc",
"value": "pqr"
}
],
"playback_policy": [
"public",
"signed"
],
"content": [
{
"url": "https://d19nx8bm4jzw4h.cloudfront.net/Tears-of-steel.mp4"
}
]
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://api.videograph.ai/video/services/api/v1/contents/portrait_pro", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Accept": "example_string",
"Authorization": "Basic YOUR_CREDENTIALS"
},
body: JSON.stringify({
"title": "Portrait PRO Test",
"description": "Video description",
"tags": [
"tag1",
"tag2"
],
"metadata": [
{
"key": "abc",
"value": "pqr"
}
],
"playback_policy": [
"public",
"signed"
],
"content": [
{
"url": "https://d19nx8bm4jzw4h.cloudfront.net/Tears-of-steel.mp4"
}
]
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"title": "Portrait PRO Test",
"description": "Video description",
"tags": [
"tag1",
"tag2"
],
"metadata": [
{
"key": "abc",
"value": "pqr"
}
],
"playback_policy": [
"public",
"signed"
],
"content": [
{
"url": "https://d19nx8bm4jzw4h.cloudfront.net/Tears-of-steel.mp4"
}
]
}`)
req, err := http.NewRequest("POST", "https://api.videograph.ai/video/services/api/v1/contents/portrait_pro", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Accept", "example_string")
req.Header.Set("Authorization", "Basic YOUR_CREDENTIALS")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.videograph.ai/video/services/api/v1/contents/portrait_pro')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['Accept'] = 'example_string'
request['Authorization'] = 'Basic YOUR_CREDENTIALS'
request.body = '{
"title": "Portrait PRO Test",
"description": "Video description",
"tags": [
"tag1",
"tag2"
],
"metadata": [
{
"key": "abc",
"value": "pqr"
}
],
"playback_policy": [
"public",
"signed"
],
"content": [
{
"url": "https://d19nx8bm4jzw4h.cloudfront.net/Tears-of-steel.mp4"
}
]
}'
response = http.request(request)
puts response.body
{
"code": 200,
"message": "Data success",
"status": "Success",
"data": {
"category": "SocialClip",
"contentId": "702c325b-5c57-4162-924e-8accbef622b0",
"created_at": 1678796834550,
"description": "",
"duration": 0,
"isAdvanced": false,
"isSocialClip": true,
"metadata": [],
"playbackPolicy": [
"public"
],
"status": "Pending",
"statusId": 1,
"test_video": false,
"title": "Portrait PRO Test"
}
}
/video/services/api/v1/contents/portrait_pro
Username for basic authentication
Password for basic authentication
The media type of the request body
Provide a title for your content.
Describe your content.
Provide the source url to download the content. If you want to create video clips from the video then pass on the start time and end time of the clip along with source url.
Provide content metadata as key value pairs.
Playback policies. Allowed are public, signed or both
Request Preview
Response
Response will appear here after sending the request
Authentication
Basic authentication credentials. Provide username and password encoded in Base64 format: Basic base64(username:password)
Headers
Body
Provide a title for your content.
Describe your content.
Provide the source url to download the content. If you want to create video clips from the video then pass on the start time and end time of the clip along with source url.
Provide content metadata as key value pairs.
Playback policies. Allowed are public, signed or both
Responses
OK
Last updated Dec 29, 2025

