Storyboard API is first step in sequence of APIs which requests Pictory to generate Video Preview from text, audio or video. This is asynchronous REST API.
Storyboard API
This API allows you to generate or edit videos based on different content inputs. For example, if you have an article/blog, you can turn it into a video by providing the webpage's URL. Various use-cases for which you can use storyboard API are listed below:
- Initiate New Video Request from Text/Article/Blog.
- Add generated transcription to the existing video.
- Request for Video Summary from the existing transcription.
- Convert Podcast to Video.
The Storyboard API also supports SSML tags for text-to-video use-case. These tags are supported by the text
attribute of scenes object.
Request Header
Parameter Name | Parameter Type | Description |
---|---|---|
Authorization | String (Required) | An authorization Token is required to call the Storyboard API. Authentication API. Contact [email protected] to get access to Authentication API. |
X-Pictory-User-Id | String (Required) | You can obtain X-Pictory-User-Id by reaching out to us at [email protected] |
Request Body
Parameter Name | Parameter Type | Description |
---|---|---|
videoName | Text (Required) | Name of the Output Video File. |
language | Choice (Optional) | More details here |
webhook | Text (Optional) | Callback URL where the Storyboard Job completion response will be delivered. |
brandLogo | Brand Logo Object | Sample Brand Logo object is defined in Sample request |
audio | Audio Object | Audio Settings of the Video |
scenes | Scenes Array | |
videoWidth | Text (Optional) | Width of Output Video file (video resolution width) |
videoHeight | Text (Optional) | Height of Output Video file (video resolution width) |
Response Body
The Storyboard API requests Pictory Server to generate a Video Preview and since this API is asynchronous, it returns job_id
in response.
To be notified when a Video Preview is available, you can poll the GET /v1/job/job_id
endpoint. Once the video preview job is completed, GET Job API returns a video preview URL and render_settings in response. Video Render settings returned in this response can be used to generate video in .mp4 format using /v1/video/render API.
Sample Request
curl --request POST \
--url https://api.pictory.ai/api/v1/video/storyboard \
--header 'Authorization: YOUR_AUTH_KEY' \
--header 'X-Pictory-User-Id: YOUR_USER_ID' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data @- <<EOF
{
"videoName": "Santa Claus",
"videoDescription": "Santa Claus is coming to town.",
"language": "en",
"audio": {
"aiVoiceOver": {
"speaker": "Jackson",
"speed": "100",
"amplifyLevel": "0"
},
"autoBackgroundMusic": true,
"backGroundMusicVolume": 0.5
},
"brandLogo": {
"url":"https://pictory.ai/wp-content/uploads/2022/03/logo-new-fon-2t.png",
"verticalAlignment": "top" ,
"horizontalAlignment": "right"
},
"scenes": [
{
"text": "In the North Pole, beneath the shimmering stars, Santa Claus, with a merry twinkle in his eyes, gears up for his Christmas ride. His workshop buzzes as elves craft toys, while Santa, in his festive red suit, checks his list of children worldwide. Come Christmas Eve, Santa and his reindeer, guided by Rudolph's bright nose whisk through the sky with Santa's sleigh brimming with gifts. At every stop, Santa descends chimneys, leaves presents, and heartily nibbles on cookies. With the break of dawn, Santa returns home leaving behind a world infused with Christmas magic and love",
"voiceOver": true,
"splitTextOnNewLine": true,
"splitTextOnPeriod": true
}
]
}