BerriAI/litellm · error · ValueError
Video generation is not complete yet. Please check status wi
Error message
Video generation is not complete yet. Please check status with video_status() before downloading.
What it means
Error "Video generation is not complete yet. Please check status with video_status() before downloading." thrown in BerriAI/litellm.
Source
Thrown at litellm/llms/gemini/videos/transformation.py:451
"""
Transform the video content request for Veo API.
For Veo, we need to:
1. Get operation status to extract video URI
2. Return download URL for the video
"""
operation_name: Final = extract_original_video_id(video_id)
status_url: Final = f"{api_base.rstrip('/')}/v1beta/{operation_name}"
client: Final = litellm.module_level_client
status_response: Final = client.get(url=status_url, headers=headers)
status_response.raise_for_status()
response_data: Final = status_response.json()
operation_response: Final = GeminiLongRunningOperationResponse(**response_data)
if not operation_response.done:
raise ValueError(
"Video generation is not complete yet. Please check status with video_status() before downloading."
)
if not operation_response.response:
raise ValueError("No response data in completed operation")
generated_samples: Final = operation_response.response.generateVideoResponse.generatedSamples
download_url: Final = generated_samples[0].video.uri
params: Final[dict[str, Any]] = {}
return download_url, params
def transform_video_content_response(
self,
raw_response: httpx.Response,
logging_obj: LiteLLMLoggingObj,
) -> bytes:View on GitHub (pinned to 6c2dcb801b)
Solutions
- Poll video_status() until the operation completes before downloading.
When it happens
Trigger: Thrown at litellm/llms/gemini/videos/transformation.py:451 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@6c2dcb801b (2026-08-15).
Data as JSON: /api/errors/fa130bc6b1845ee7.
Report an issue: GitHub.