Generate a video script from a prompt. This script can then be passed into POST /script-to-video to generate a video.
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
Example
{"prompt":"Best restaurants in San Francisco","targetScriptWordCount":50,"websiteUrls":["https://www.chezmamanrestos.com/"]}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://ext.videogen.io/v1/prompt-to-script' \
--header'Content-Type: application/json' \
--data-raw'{
"prompt": "Best restaurants in San Francisco",
"targetScriptWordCount": 50,
"websiteUrls": [
"https://www.chezmamanrestos.com/"
]
}'
Responses
🟢200Successfully generated script
application/json
Body
Example
{"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."}