background_mode 设为 transparent,即可生成用于合成的主视频和 Alpha 蒙版。
video_url 用作前景视频,将 alpha_url 用作其蒙版。若使用绿幕流程,请设置 background_mode=solid,并将 bg_color 设为 0,255,0。Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
生成用于视频合成的 Alpha 输出。
background_mode 设为 transparent,即可生成用于合成的主视频和 Alpha 蒙版。
curl -X POST "https://apis.viggle.ai/v1/renders" \
-H "Authorization: Bearer $VIGGLE_API_KEY" \
-F "[email protected]" \
-F "[email protected]" \
-F "background_mode=transparent"
{
"status": "ready",
"video_url": "https://...",
"alpha_url": "https://..."
}
video_url 用作前景视频,将 alpha_url 用作其蒙版。若使用绿幕流程,请设置 background_mode=solid,并将 bg_color 设为 0,255,0。