bash
curl -sSf -X POST https://staging.hub.oxen.ai/api/videos/generate \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OXEN_API_KEY" \
-d '{
"model": "kling-video-o1-reference-to-video",
"prompt": "@Element1 flies into the scene and lands on the table next to the ox in @Image1",
"input_image": [
"https://hub.oxen.ai/api/repos/ox/Oxen-AI-Assets/file/main/images/daily_moo.png"
],
"elements": [
{
"frontal_image_url": "https://hub.oxen.ai/api/repos/ox/Oxen-AI-Assets/file/main/images/red_bird.png",
"reference_image_urls": [
"https://hub.oxen.ai/api/repos/ox/Oxen-AI-Assets/file/main/images/red_bird_side.png"
]
}
],
"aspect_ratio": "16:9",
"duration": 5
}'