infipostdocs
Video Generation

Generate Video

POST /generate-video — Infipost Public API

POST/public/v1/generate-video

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 · headerrequired

Workspace API key or OAuth access token. Send the token directly without a Bearer prefix.

Body

typestringrequired

Video generation type

"image-text-slides""veo3"
outputstringrequired

Video orientation

"vertical""horizontal"
customParamsobjectrequired
Show child attributes
voicestring

ElevenLabs voice ID (for image-text-slides)

promptstring

Description/script for the video

imagesarray[]

Reference images (for veo3, max 3)

Show child attributes
idstringrequired
pathstringrequired
thumbnailTimestampnumber

Milliseconds 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"
  }
]
idstring
pathstring

URL of the generated video