- Text to Video
- Resources
- Examples
Prompt to script
POST
https://ext.videogen.io/v1/prompt-to-script
v1
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
prompt
string
required
targetScriptWordCount
integer
optional
outputLanguageCode
string
optional
websiteUrls
array[string]
optional
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
script
string
required
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."
}
🟠400Failed to generate script
Modified at 2025-02-26 21:53:01