curl --location 'https://app-api.pixverse.ai/openapi/v2/video/agent/generate' \
--header 'Ai-Trace-Id: your-ai-trace-id' \
--header 'API-KEY: your-api-key' \
--header 'Content-Type: application/json' \
--data '{
"agent_id": 414562414124109,
"prompt": "Replace the product in the video with the product shown in the uploaded image(s), while preserving all original video shots and storyboard design. Remove all original subtitles from the video, and ensure that no subtitles appear at any point throughout the generated video. The voiceover should emphasize the following product selling points: XXXXXX.",
"img_references": [
{
"img_id": 883671823
},
{
"img_id": 883671834
},
{
"img_id": 883671837
},
{
"img_id": 883671844
},
{
"img_id": 883671873
}
],
"video_references": [
{
"video_media_id": 416097137329803
}
],
"aspect_ratio": "9:16",
"quality": "1080p",
"lip_sync_switch": true,
"bgm_switch": true,
"caption_switch": true,
"webhook_id": "your webhook id"
}'