- Text to Video
- Resources
- Examples
Script to video
POST
https://ext.videogen.io/v1/script-to-video
v1
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
script
string
required
voice
string
optional
Default:
Matilda
voiceVolume
number
optional
>= 0<= 1
Default:
1
musicUrl
string
optional
musicVolume
number
optional
>= 0<= 1
Default:
0.15
captionFontName
string
optional
captionFontSize
number
optional
captionFontWeight
number
optional
captionTextColor
object (Color)
optional
red
integer
required
>= 0<= 255
green
integer
required
>= 0<= 255
blue
integer
required
>= 0<= 255
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
{
"script": "Machine learning is a technique where algorithms learn from data to make predictions or decisions without explicit programming... It powers applications like image recognition, natural language processing, and predictive analytics, continuously improving as it processes more data."
}
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/script-to-video' \
--header 'Content-Type: application/json' \
--data-raw '{
"script": "Machine learning is a technique where algorithms learn from data to make predictions or decisions without explicit programming... It powers applications like image recognition, natural language processing, and predictive analytics, continuously improving as it processes more data."
}'
Responses
🟢200Successfully initiated video generation
application/json
Body
apiFileId
string
required
Examples
{
"apiFileId": "874d3150-f0e3-435c-be3d-0936d892b7e7"
}
🟠400Failed to initiate video generation
Modified at 2024-10-22 05:20:52