BerriAI/litellm · error · NotImplementedError

Video remix is not supported by Google Veo. Please use…

Error message

Video remix is not supported by Google Veo. Please use video_generation() to create new videos.

What it means

transform_video_remix_request for the Gemini/Veo provider deliberately raises NotImplementedError: Google's Veo API has no remix endpoint. Any call routed to video remix with a 'gemini/' video model hits this immediately at request-build time. The supported path is a fresh video_generation() call with the new prompt.

Solutions

  1. Replace the video_remix call with litellm.video_generation(model='gemini/veo-3', prompt=...) to create a new video from the updated prompt.
  2. If you need true remixing, switch the model to a provider that supports it (e.g. an OpenAI video model via LiteLLM's video_remix).
  3. Gate remix calls per provider before invoking them so Gemini users get a clean 'not supported' message instead of a traceback.

Example fix

# before
new_video = litellm.video_remix(
    model="gemini/veo-3", video_id=video.id, prompt="make it snow"
)

# after (Veo has no remix; generate a new video)
new_video = litellm.video_generation(
    model="gemini/veo-3", prompt="the same scene, but now it is snowing"
)
Defensive patterns

Strategy: try-catch

Validate before calling

def provider_supports_video_remix(model: str) -> bool:
    """Gate remix calls before invoking the API."""
    return not model.startswith("gemini/") and not model.startswith("vedo/")

Type guard

def can_remix(model: str) -> bool:
    return not model.lower().startswith(("gemini/", "vedo/"))

Try / catch

try:
    new_video = litellm.video_remix(model=model, video_id=video_id, prompt=prompt)
except NotImplementedError:
    if model.startswith("gemini/"):
        new_video = litellm.video_generation(model=model, prompt=prompt)  # fallback path

Prevention

When it happens

Trigger: Calling litellm.video_remix(model='gemini/veo-3', video_id=..., prompt=...) or equivalent remix API with any Gemini/Veo model string.

Common situations: Generic code written against a multi-provider video abstraction (OpenAI Sora supports remix) being pointed at Gemini; provider-agnostic workflows that assume every provider implements every operation.

Understand the failure class

Background: UnsupportedOperationException and "is not supported" errors: when a library deliberately refuses a call — this error's family across 30 libraries.

Related errors


AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18). Data as JSON: /api/errors/e1145fda1b389bc5. Report an issue: GitHub.

Appendix: source

Thrown at litellm/llms/gemini/videos/transformation.py:488

        """
        Transform the Veo video content download response.
        Returns the video bytes directly.
        """
        return raw_response.content

    def transform_video_remix_request(
        self,
        video_id: str,
        prompt: str,
        api_base: str,
        litellm_params: GenericLiteLLMParams,
        headers: dict,
        extra_body: dict[str, Any] | None = None,
    ) -> tuple[str, dict]:
        """
        Video remix is not supported by Veo API.
        """
        raise NotImplementedError(
            "Video remix is not supported by Google Veo. Please use video_generation() to create new videos."
        )

    def transform_video_remix_response(
        self,
        raw_response: httpx.Response,
        logging_obj: LiteLLMLoggingObj,
        custom_llm_provider: str | None = None,
    ) -> VideoObject:
        """Video remix is not supported."""
        raise NotImplementedError("Video remix is not supported by Google Veo.")

    def transform_video_list_request(
        self,
        api_base: str,
        litellm_params: GenericLiteLLMParams,
        headers: dict,
        after: str | None = None,

View on GitHub (pinned to 77b7c6c40c)