infipostdocs
Video Generation

Video Function

POST /video/function — Infipost Public API

POST/public/v1/video/function

Execute video-related functions like loading available voices.

cURL
curl --request POST \
  --url 'https://api.infipost.asia/public/v1/video/function' \
  --header 'Authorization: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "functionName": "loadVoices",
  "identifier": "image-text-slides"
}'

Authorization

Authorizationstring · headerrequired

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

Body

functionNamestringrequired

Function to execute

identifierstringrequired

Video type identifier

paramsobject

Additional parameters

Response

Function executed successfully

application/json
{
  "voices": [
    {
      "id": "string",
      "name": "string"
    }
  ]
}
voicesarray[]
Show child attributes
idstring
namestring

Get Available Voices

To get the list of available voices for video generation:

json
{
  "functionName": "loadVoices",
  "identifier": "image-text-slides"
}