Video Generation
Generate Video
POST /generate-video — Infipost Public API
Create AI-generated videos for your posts.
cURL
curl --request POST \
--url 'https://api.infipost.asia/public/v1/generate-video' \
--header 'Authorization: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"type": "image-text-slides",
"output": "vertical",
"customParams": {
"voice": "elevenlabs-voice-id",
"prompt": "Description of the video content"
}
}'Authorization
Authorizationstring · headerrequiredWorkspace API key or OAuth access token. Send the token directly without a Bearer prefix.
Body
typestringrequiredVideo generation type
"image-text-slides""veo3"outputstringrequiredVideo orientation
"vertical""horizontal"customParamsobjectrequiredShow child attributes
voicestringElevenLabs voice ID (for image-text-slides)
promptstringDescription/script for the video
imagesarray[]Reference images (for veo3, max 3)
Show child attributes
idstringrequiredpathstringrequiredthumbnailTimestampnumberMilliseconds into the video to use as the cover/thumbnail frame. Supported by Instagram, Instagram Standalone, TikTok Business, and TikTok (Direct Post only, not the UPLOAD/inbox flow); other providers ignore it. For TikTok, in our testing the cover was applied only to public posts (privacy_level PUBLIC_TO_EVERYONE).
Response
Video generated successfully
application/json
[
{
"id": "string",
"path": "string"
}
]idstringpathstringURL of the generated video
Bài viết này có hữu ích không?