The submit video task endpoint is used to create video generation tasks. MixRoute supports multiple video generation models with a unified API endpoint.
Video generation is an asynchronous task. After submission, you need to poll the task status.
curl -X POST "https://api.mixroute.ai/v1/video/generations" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer sk-xxxxxxxxxx" \ -d '{ "model": "seedance-1.0", "prompt": "The person slowly turns their head and smiles", "duration": 4, "first_frame": "https://api.mixroute.ai/portrait.jpg" }'
curl -X POST "https://api.mixroute.ai/v1/video/generations" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer sk-xxxxxxxxxx" \ -d '{ "model": "seedance-1.0", "prompt": "A car accelerates from standstill and drives into the distance", "duration": 6, "first_frame": "https://api.mixroute.ai/car-start.jpg", "last_frame": "https://api.mixroute.ai/car-end.jpg" }'
curl -X POST "https://api.mixroute.ai/v1/video/generations" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer sk-xxxxxxxxxx" \ -d '{ "model": "seedance-1.0", "prompt": "A girl walking on the street, maintaining the character appearance from the reference image", "duration": 6, "reference_image": "https://api.mixroute.ai/character-ref.jpg", "aspect_ratio": "16:9" }'
curl -X POST "https://api.mixroute.ai/v1/video/generations" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer sk-xxxxxxxxxx" \ -d '{ "model": "seedance-1.0-pro", "prompt": "Cinematic quality, a samurai slowly drawing his sword in the rain", "duration": 8, "aspect_ratio": "16:9", "resolution": "1080p" }'
curl -X POST "https://api.mixroute.ai/v1/video/generations" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer sk-xxxxxxxxxx" \ -d '{ "model": "seedance-1.5-pro", "prompt": "Ultra HD quality, an astronaut performing maintenance outside a space station, Earth slowly rotating in the background", "duration": 8, "aspect_ratio": "16:9", "resolution": "1080p", "negative_prompt": "blurry, noise, low quality" }'
Video generation consumes significant resources. Please control your request frequency. Different models have different pricing, see the pricing page for details.