Video Generation
Video Function
POST /video/function — Infipost Public API
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 · headerrequiredWorkspace API key or OAuth access token. Send the token directly without a Bearer prefix.
Body
functionNamestringrequiredFunction to execute
identifierstringrequiredVideo type identifier
paramsobjectAdditional parameters
Response
Function executed successfully
application/json
{
"voices": [
{
"id": "string",
"name": "string"
}
]
}voicesarray[]Show child attributes
idstringnamestringGet Available Voices
To get the list of available voices for video generation:
json
{
"functionName": "loadVoices",
"identifier": "image-text-slides"
}
Bài viết này có hữu ích không?