- Text to Video
- Resources
- Examples
- v1
Prompt to video
POST
https://ext.videogen.io/v2/prompt-to-video
v2
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
useGetty
boolean
optional
useGenerativeImage
boolean
optional
imageGenStyle
string
optional
voice
string
optional
Default:
Matilda
voiceVolume
number
optional
>= 0<= 1
Default:
1
musicUrl
string
optional
musicVolume
number
optional
>= 0<= 1
Default:
0.15
captionDetails
object (Caption Details)
optional
captionFontName
string
optional
captionFontWeight
number
optional
captionFontSize
number
optional
captionTextColor
object (Color)
optional
captionTextJustification
enum<string>
optional
Allowed values:
LEFTCENTERRIGHT
captionVerticalAlignment
enum<string>
optional
Allowed values:
TOPMIDDLEBOTTOM
captionStrokeColor
object (Color)
optional
captionStrokeWeight
number
optional
captionBackgroundStyleType
enum<string>
optional
Allowed values:
RECTWRAPPED
captionBackgroundColor
object (Color)
optional
captionBackgroundBorderRadius
number
optional
>= 0<= 1
captionBackgroundOpacity
number
optional
captionIsHidden
boolean
optional
aspectRatio
object (Aspect Ratio)
optional
width
number
required
height
number
required
minDimensionPixels
integer
optional
<= 1080> 0
Default:
1080
webhookUrl
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/v2/prompt-to-video' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "Best restaurants in San Francisco",
"targetScriptWordCount": 50,
"websiteUrls": [
"https://www.chezmamanrestos.com/"
]
}'
Responses
🟢200Successfully initiated video generation
application/json
Body
apiFileId
string
required
Examples
{
"apiFileId": "874d3150-f0e3-435c-be3d-0936d892b7e7"
}
🟠400Failed to initiate video generation