mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-12-05 16:04:03 +00:00
Kling 4.0 makes videos of 3 to 30 seconds. The plugin accepted 1 to 3600, so a longer or shorter duration was reserved and then refunded when Kling refused it. It is now refused before anything is reserved. A /v1/videos size now gets the nearest of Kling's text-to-video aspect ratios, 21:9 included for Kling 4.0, and Kling 4.0 takes 720p or 1080p by the size's shorter side. Before, only four sizes were mapped: 720x720 was reserved at 1080p and 1792x1024 was sent as 1:1. A size that is not WIDTHxHEIGHT is refused.