Generate Preview video from link
This endpoint generates a preiview of video before redering the final video. Generating a video preview through this endpoint costs 1 credit for every 30 seconds.
About preview Field in the Response
The preview field provides a link to preview the video. This link allows you to preview the video before rendering it, you can put it in an iframe to show the video in your application. Example: The preview field in the response will look like this:
About override_avatar parameter
When using ‘create video from link’ API, if the ‘override_avatar’ (avatar_id
is passed in the parameters, we will use it as the avatar of the video. If the ‘override_avatar’ is not passed, we will use the matched avatar for the video.
avatar_id
is the unique identifier of an avatar. You can get the avatar_id
by calling the Get avatar endpoint.
About override_voice parameter
When using ‘create video from link’ API, if the ‘override_voice’ is passed in the parameters, we will use it for the voiceover of the video. If the ‘override_voice’ is not passed, we’ll use the matched voice (from the avatar) for the video.
voice_id
is the unique identifier of the voice. You can get the voice_id by calling the Get voices interface.
Tips: foreach voice has multiple accents, you can choose one from the accents as the voice of the video.
Authorizations
API ID, from your settings page.
API Key, from your settings page.
Body
Link associated with the video.
Aspect ratio of the video. Default is '16x9'.
16x9
- 16x91x1
- 1x19x16
- 9x16
16x9
, 1x1
, 9x16
Background music URL for the video. Default is null, video will use random music.
255
Volume of the background music, ranging from 0.0 to 1.0. Default is null, video will use default music volume of visual_style.
0 < x < 1
Deprecated, use offset in caption_setting instead. Caption offset x is horizontally relative to the center of the canvas in percentage, range from -0.5 to 0.5. Default is null, video with default caption position of visual_style.
Deprecated, use offset in caption_setting instead. Caption offset y is vertically relative to the center of the canvas in percentage, range from -0.5 to 0.5. Default is null, video with default caption position of visual_style.
Caption setting, default null and default caption setting will be used
Deprecated, use style in caption_setting instead. Caption style for the video. Default is 'normal-black'.
normal-black
- NORMAL_BLACKnormal-white
- NORMAL_WHITEnormal-red
- NORMAL_REDnormal-blue
- NORMAL_BLUEneo
- NEObrick
- BRICKfrenzy
- FRENZYverana
- VERANAmustard
- MUSTARDglow
- GLOWmint
- MINTcoolers
- COOLERSbilo
- BILOtoons
- TOONSdeep-blue
- DEEP_BLUEmystique
- MYSTIQUEcaution
- CAUTIONduality
- DUALITY
normal-black
, normal-white
, normal-red
, normal-blue
, neo
, brick
, frenzy
, verana
, mustard
, glow
, mint
, coolers
, bilo
, toons
, deep-blue
, mystique
, caution
, duality
Language of the video. Default is 'en'.
ar
- Arabicbg
- Bulgariancs
- Czechda
- Danishde
- Germanel
- Greek, Modernen
- Englishes
- Spanish; Castilianfi
- Finnishfr
- Frenchhi
- Hindihr
- Croatianid
- Indonesianit
- Italianja
- Japaneseko
- Koreanms
- Malaynl
- Dutchpl
- Polishpt
- Portuguesero
- Romanian, Moldavian, Moldovanru
- Russiansk
- Slovaksv
- Swedishta
- Tamiltl
- Tagalogtr
- Turkishuk
- Ukrainianzh
- Chinese
ar
, bg
, cs
, da
, de
, el
, en
, es
, fi
, fr
, hi
, hr
, id
, it
, ja
, ko
, ms
, nl
, pl
, pt
, ro
, ru
, sk
, sv
, ta
, tl
, tr
, uk
, zh
Name of the video. Default is null.
255
No background music for the video. Default is false, video with background music.
No caption for the video. Default is false, video with caption.
No call to action for the video. Default is false, video with call to action.
No emotion for the video. Default is false, video with emotion.
No stock broll for the video. Default is false, video with stock broll.
Override avatar for the video. Default is null.
255
Override script for the video. Default is null.
Override voice for the video. Default is null.
255
Script style of the video. Default is DiscoveryWriter.
BenefitsV2
- BenefitsBrandStoryV2
- Brand StoryCallToActionV2
- Call To ActionDiscoveryWriter
- DiscoveryDontWorryWriter
- Don't WorryEmotionalWriter
- EmotionalGenzWriter
- Gen ZHowToV2
- How ToLetMeShowYouWriter
- Let Me Show YouMotivationalWriter
- MotivationalProblemSolutionV2
- Problem SolutionProblemSolutionWriter
- Problem-SolutionProductHighlightsV2
- Product HighlightsProductLifestyleV2
- Product LifestyleResponseBubbleWriter
- Response BubbleSpecialOffersV2
- Special OffersStoryTimeWriter
- StorytimeThreeReasonsWriter
- 3 Reasons WhyTrendingTopicsV2
- Trending TopicsDIY
- DIY
BenefitsV2
, BrandStoryV2
, CallToActionV2
, DiscoveryWriter
, DontWorryWriter
, EmotionalWriter
, GenzWriter
, HowToV2
, LetMeShowYouWriter
, MotivationalWriter
, ProblemSolutionV2
, ProblemSolutionWriter
, ProductHighlightsV2
, ProductLifestyleV2
, ResponseBubbleWriter
, SpecialOffersV2
, StoryTimeWriter
, ThreeReasonsWriter
, TrendingTopicsV2
, DIY
Target audience for the video. Default is 'young adults'.
Target platform for the video. Default is 'tiktok'.
255
Length of the video in seconds. Default is 15.
15
- 1530
- 3060
- 60
15
, 30
, 60
Visual style of the video. Default is AvatarBubbleTemplate.
AvatarBubbleTemplate
- Avatar BubbleDramaticTemplate
- DramaticDynamicProductTemplate
- ProductDynamicResponseBubbleTemplate
- Response BubbleEnhancedVanillaTemplate
- Dynamic VanillaFullScreenTemplate
- Full ScreenFullScreenV2Template
- Full Screen V2GreenScreenEffectTemplate
- Green Screen EffectLegoTemplate
- LegoMotionCardsTemplate
- Motion CardsOverCardsTemplate
- Over CardsQuickTransitionTemplate
- Quick TransitionScribbleTemplate
- ScribbleSideBySideTemplate
- Side by SideSimpleAvatarOverlayTemplate
- Product PresenterTopBottomTemplate
- Top & BottomTwitterFrameTemplate
- Twitter FrameVanillaTemplate
- VanillaVlogTemplate
- Vlog
AvatarBubbleTemplate
, DramaticTemplate
, DynamicProductTemplate
, DynamicResponseBubbleTemplate
, EnhancedVanillaTemplate
, FullScreenTemplate
, FullScreenV2Template
, GreenScreenEffectTemplate
, LegoTemplate
, MotionCardsTemplate
, OverCardsTemplate
, QuickTransitionTemplate
, ScribbleTemplate
, SideBySideTemplate
, SimpleAvatarOverlayTemplate
, TopBottomTemplate
, TwitterFrameTemplate
, VanillaTemplate
, VlogTemplate
Volume of the voiceover, ranging from 0.0 to 1.0. Default is null, video will use default voiceover volume of visual_style.
0 < x < 1
Webhook URL for status updates. Default is null.
200
Response
Credits used in this api call
Reason for failure. Default is null.
Link associated with the video.
Media job associated with the video. Default is null.
Aspect ratio of the video. Default is '16x9'.
16x9
- 16x91x1
- 1x19x16
- 9x16
16x9
, 1x1
, 9x16
Background music URL for the video. Default is null, video will use random music.
255
Volume of the background music, ranging from 0.0 to 1.0. Default is null, video will use default music volume of visual_style.
0 < x < 1
Deprecated, use offset in caption_setting instead. Caption offset x is horizontally relative to the center of the canvas in percentage, range from -0.5 to 0.5. Default is null, video with default caption position of visual_style.
Deprecated, use offset in caption_setting instead. Caption offset y is vertically relative to the center of the canvas in percentage, range from -0.5 to 0.5. Default is null, video with default caption position of visual_style.
Caption setting, default null and default caption setting will be used
Deprecated, use style in caption_setting instead. Caption style for the video. Default is 'normal-black'.
normal-black
- NORMAL_BLACKnormal-white
- NORMAL_WHITEnormal-red
- NORMAL_REDnormal-blue
- NORMAL_BLUEneo
- NEObrick
- BRICKfrenzy
- FRENZYverana
- VERANAmustard
- MUSTARDglow
- GLOWmint
- MINTcoolers
- COOLERSbilo
- BILOtoons
- TOONSdeep-blue
- DEEP_BLUEmystique
- MYSTIQUEcaution
- CAUTIONduality
- DUALITY
normal-black
, normal-white
, normal-red
, normal-blue
, neo
, brick
, frenzy
, verana
, mustard
, glow
, mint
, coolers
, bilo
, toons
, deep-blue
, mystique
, caution
, duality
Language of the video. Default is 'en'.
ar
- Arabicbg
- Bulgariancs
- Czechda
- Danishde
- Germanel
- Greek, Modernen
- Englishes
- Spanish; Castilianfi
- Finnishfr
- Frenchhi
- Hindihr
- Croatianid
- Indonesianit
- Italianja
- Japaneseko
- Koreanms
- Malaynl
- Dutchpl
- Polishpt
- Portuguesero
- Romanian, Moldavian, Moldovanru
- Russiansk
- Slovaksv
- Swedishta
- Tamiltl
- Tagalogtr
- Turkishuk
- Ukrainianzh
- Chinese
ar
, bg
, cs
, da
, de
, el
, en
, es
, fi
, fr
, hi
, hr
, id
, it
, ja
, ko
, ms
, nl
, pl
, pt
, ro
, ru
, sk
, sv
, ta
, tl
, tr
, uk
, zh
Name of the video. Default is null.
255
No background music for the video. Default is false, video with background music.
No caption for the video. Default is false, video with caption.
No call to action for the video. Default is false, video with call to action.
No emotion for the video. Default is false, video with emotion.
No stock broll for the video. Default is false, video with stock broll.
Override avatar for the video. Default is null.
255
Override script for the video. Default is null.
Override voice for the video. Default is null.
255
Script style of the video. Default is DiscoveryWriter.
BenefitsV2
- BenefitsBrandStoryV2
- Brand StoryCallToActionV2
- Call To ActionDiscoveryWriter
- DiscoveryDontWorryWriter
- Don't WorryEmotionalWriter
- EmotionalGenzWriter
- Gen ZHowToV2
- How ToLetMeShowYouWriter
- Let Me Show YouMotivationalWriter
- MotivationalProblemSolutionV2
- Problem SolutionProblemSolutionWriter
- Problem-SolutionProductHighlightsV2
- Product HighlightsProductLifestyleV2
- Product LifestyleResponseBubbleWriter
- Response BubbleSpecialOffersV2
- Special OffersStoryTimeWriter
- StorytimeThreeReasonsWriter
- 3 Reasons WhyTrendingTopicsV2
- Trending TopicsDIY
- DIY
BenefitsV2
, BrandStoryV2
, CallToActionV2
, DiscoveryWriter
, DontWorryWriter
, EmotionalWriter
, GenzWriter
, HowToV2
, LetMeShowYouWriter
, MotivationalWriter
, ProblemSolutionV2
, ProblemSolutionWriter
, ProductHighlightsV2
, ProductLifestyleV2
, ResponseBubbleWriter
, SpecialOffersV2
, StoryTimeWriter
, ThreeReasonsWriter
, TrendingTopicsV2
, DIY
Target audience for the video. Default is 'young adults'.
Target platform for the video. Default is 'tiktok'.
255
Length of the video in seconds. Default is 15.
15
- 1530
- 3060
- 60
15
, 30
, 60
Visual style of the video. Default is AvatarBubbleTemplate.
AvatarBubbleTemplate
- Avatar BubbleDramaticTemplate
- DramaticDynamicProductTemplate
- ProductDynamicResponseBubbleTemplate
- Response BubbleEnhancedVanillaTemplate
- Dynamic VanillaFullScreenTemplate
- Full ScreenFullScreenV2Template
- Full Screen V2GreenScreenEffectTemplate
- Green Screen EffectLegoTemplate
- LegoMotionCardsTemplate
- Motion CardsOverCardsTemplate
- Over CardsQuickTransitionTemplate
- Quick TransitionScribbleTemplate
- ScribbleSideBySideTemplate
- Side by SideSimpleAvatarOverlayTemplate
- Product PresenterTopBottomTemplate
- Top & BottomTwitterFrameTemplate
- Twitter FrameVanillaTemplate
- VanillaVlogTemplate
- Vlog
AvatarBubbleTemplate
, DramaticTemplate
, DynamicProductTemplate
, DynamicResponseBubbleTemplate
, EnhancedVanillaTemplate
, FullScreenTemplate
, FullScreenV2Template
, GreenScreenEffectTemplate
, LegoTemplate
, MotionCardsTemplate
, OverCardsTemplate
, QuickTransitionTemplate
, ScribbleTemplate
, SideBySideTemplate
, SimpleAvatarOverlayTemplate
, TopBottomTemplate
, TwitterFrameTemplate
, VanillaTemplate
, VlogTemplate
Volume of the voiceover, ranging from 0.0 to 1.0. Default is null, video will use default voiceover volume of visual_style.
0 < x < 1
Webhook URL for status updates. Default is null.
200