/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.{
"prompt": "What is MCP Protocol?",
"websiteUrls": [
"https://modelcontextprotocol.io/introduction",
"https://www.anthropic.com/news/model-context-protocol"
],
"targetScriptWordCount": 250
}
/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.{
"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"
}
true
, the API generates images using a generative image model.musicUrl
should point to the desired audio file, while musicVolume
sets the playback volume."CENTER"
, "LEFT"
, or "RIGHT"
)."BOTTOM"
)."SOLID"
).true
, causes the captions to be hidden entirely./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"
}
]
},
}
/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.