Create a video
An endpoint to create a new video
POST
https://api.aipixy.com/v1/bot
Headers
Request Body
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "webhook=www.website.com/video-process-done-endpoint" \
-F "create_video=true" \
-F "clips=[{ \"bot_uid\": 'YOUR_BOT_UID', \"text\": \"This is the text that I want to say\", \"bot_position\": 'bottom-right', \"remove_bot_background\": false, \"background\": 'https://url_to_your_background.mp4', \"background_volume\": 0.1, \"transitions\": 'fade_in fade_out', \"reusable_clip\": true, \"clip_name\": 'A name for this video' }]" \
https://api.example.com/v1/create_video
ap = Aipixy(api_key='API_KEY')
clips = [
{
"bot_uid": 'YOUR_BOT_UID',
"text": "This is the text that I want to say",
"bot_position": 'bottom-right',
"remove_bot_background": False,
"background": 'https://url_to_your_background.mp4',
"background_volume": 0.1,
"transitions": 'fade_in fade_out',
"reusable_clip": True,
"clip_name": 'A name for this video',
}
]
new_video = ap.create_video(webhook='www.website.com/video-process-done-endpoint',
create_video=True,
clips=clips)
Last updated