Thai text

POST https://api.shotstack.io/{{ENV}}/render

Using the Thai character set within a video.

Thai characters preview

Example MP4

Request Body

{"timeline"=>{"fonts"=>[{"src"=>"https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/fonts/Sarabun-Regular.ttf"}], "soundtrack"=>{"src"=>"https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/music/freepd/fireworks.mp3", "effect"=>"fadeInFadeOut"}, "background"=>"#da8afc", "tracks"=>[{"clips"=>[{"asset"=>{"type"=>"html", "html"=>"<p>Shotstack รองรับภาษาไทย</p>", "css"=>"p { font-family: 'Sarabun'; color: #ffffff; font-size: 32px; text-align: center; }", "width"=>820, "height"=>100}, "start"=>0, "length"=>10, "transition"=>{"in"=>"fade", "out"=>"fade"}}]}]}, "output"=>{"format"=>"mp4", "resolution"=>"hd"}}

HEADERS

KeyDatatypeRequiredDescription
cache-controlstring
content-typestring
postman-tokenstring
x-api-keystring