Interacting with the Video Outline
Interacting with the Video Outline
Generating a Video Outline from a Prompt
/prompt-to-outline
endpoint. This endpoint accepts a text prompt, which may be enhanced with website URLs and a target script word count, and returns a structured video outline. The outline is composed of one or more sections, each containing text content and metadata such as voice, title, or subtitle. This structure serves as the blueprint for the final video.Example Request
{
"prompt": "What is MCP Protocol?",
"websiteUrls": [
"https://modelcontextprotocol.io/introduction",
"https://www.anthropic.com/news/model-context-protocol"
],
"targetScriptWordCount": 250
}
Converting the Outline to Video
/outline-to-video
endpoint. This endpoint converts the structured outline into a video by utilizing the details specified within the outline and additional parameters that control the video's style, dimensions, and audio.Example Request with Advanced Optional Parameters
{
"outline": {
"sections": [
{
"text": "The Model Context Protocol (MCP) is revolutionizing how artificial intelligence interacts with various data sources.",
"voice": "Matilda",
"title": "Introduction to MCP",
"subtitle": "Bridging AI and Data",
"overlayType": "TITLE_SCREEN"
},
{
"text": "MCP empowers applications to provide dynamic context to large language models by integrating multiple data sources seamlessly.",
"voice": "Matilda"
},
{
"text": "Its open-source design fosters innovation, inviting developers to contribute and create more intelligent, context-aware systems.",
"voice": "Matilda"
}
],
"useGetty": true,
"useGenerativeImage": false,
"imageGenStyle": "",
"musicUrl": "https://example.com/audio/background-track.mp3",
"musicVolume": 0.75,
"captionDetails": {
"captionFontName": "Verdana",
"captionFontWeight": 700,
"captionFontSize": 75,
"captionTextColor": {
"red": 255,
"green": 255,
"blue": 255
},
"captionTextJustification": "CENTER",
"captionVerticalAlignment": "BOTTOM",
"captionStrokeColor": {
"red": 0,
"green": 0,
"blue": 0
},
"captionStrokeWeight": 2,
"captionBackgroundStyleType": "WRAPPED",
"captionBackgroundColor": {
"red": 0,
"green": 0,
"blue": 0
},
"captionBackgroundBorderRadius": 1,
"captionBackgroundOpacity": 0.5,
"captionIsHidden": false
}
},
"aspectRatio": {
width: 16,
height: 9
},
"minDimensionPixels": 1080,
"webhookUrl": "https://your-webhook-url.com/endpoint"
}
Explanation of the Optional Parameters
A boolean flag that instructs the API to use Getty Images as a source for backgrounds.
When set to
true
, the API generates images using a generative image model.This parameter accepts a URL that points to a style template or a reference image. The URL guides the generative image model to produce visuals that match the specified style, thereby achieving a customized artistic look.
These parameters control the background audio for the video. The
musicUrl
should point to the desired audio file, while musicVolume
sets the playback volume.This object allows precise customization of the appearance of text overlays (captions) in the video:
"CENTER"
, "LEFT"
, or "RIGHT"
)."BOTTOM"
)."SOLID"
).true
, causes the captions to be hidden entirely.Understanding the Section Structure
Flexible Use of Sections
/outline-to-video endpoint
.{
"outline": {
"sections": [
{
"text": "Welcome to an in-depth exploration of the Model Context Protocol (MCP). This video will provide a comprehensive overview of how MCP is transforming the manner in which artificial intelligence integrates with multiple data sources. The discussion will cover the protocol's architecture, benefits, and practical applications in modern systems.",
"voice": "Matilda"
}
]
},
}
Conclusion
/prompt-to-outline
and /outline-to-video
endpoints, it is possible to seamlessly convert a text prompt into a polished video. The inclusion of optional parameters allows for extensive customization. Moreover, understanding the section structure provides flexibility; whether multiple segments are required for diverse content or a single section is sufficient for a pre-prepared script, these endpoints offer a versatile and powerful video generation workflow.Modified at 2025-04-18 02:35:46