diff --git a/backend/video_api.php b/backend/video_api.php index 4a48c6f..dfcafc7 100644 --- a/backend/video_api.php +++ b/backend/video_api.php @@ -171,7 +171,8 @@ class VeoVideoAPI { $mimeType = $refImg['mime_type'] ?? 'image/jpeg'; $data = $this->resizeImageForVeo($data, $mimeType, $aspectRatio); $instance['image'] = [ - 'inlineData' => ['mimeType' => $mimeType, 'data' => $data] + 'bytesBase64Encoded' => $data, + 'mimeType' => $mimeType ]; error_log("Added first frame for I2V generation (resized to match $aspectRatio)"); } @@ -188,7 +189,8 @@ class VeoVideoAPI { $lastMimeType = $lastImg['mime_type'] ?? 'image/jpeg'; $lastData = $this->resizeImageForVeo($lastData, $lastMimeType, $aspectRatio); $instance['lastFrame'] = [ - 'inlineData' => ['mimeType' => $lastMimeType, 'data' => $lastData] + 'bytesBase64Encoded' => $lastData, + 'mimeType' => $lastMimeType ]; error_log("Added lastFrame to instance for video interpolation (8s duration)"); }