Prompt to script
POST
/v1/prompt-to-scriptGenerate a video script from a prompt. This script can then be passed into POST /script-to-video to generate a video.
Request
AI prompt that controls the script generation.
Name of the template for the script generation (e.g., "Landing Page to Video", "Employee Training", "Explainer Video")
Writing style for the script generation (e.g., "persuasive and engaging", "professional and instructional").
Target word count for the generated script. Not exact, but VideoGen's AI will attempt to generate a script close to this word count.
Two letter language code. See https://detectlanguage.com/languages for a list of supported language codes.
List of website URLs to be scanned by VideoGen's AI and included along with the AI prompt to generate the script.
{
"prompt": "Best restaurants in San Francisco",
"targetScriptWordCount": 50,
"websiteUrls": [
"https://www.chezmamanrestos.com/"
]
}
Request samples
Responses
Generated video script.
{
"script": "When I think of San Francisco’s culinary scene, Chez Maman instantly comes to mind. It’s not just a restaurant; it’s a cozy embrace of French nostalgia. The burgers with guacamole? Divine. The Brie and wine? A match made in heaven. It’s that perfect blend of comfort and elegance, inviting you to linger."
}