BerriAI/litellm · error · NotImplementedError

video create character is not supported for Gemini

Error message

video create character is not supported for Gemini

What it means

The Gemini/Veo video transformer does not implement character creation: Google's Veo API (as modeled here) has no first-class character objects, so transform_video_create_character_request raises NotImplementedError immediately. Character-based video workflows are simply not part of this provider integration.

Solutions

  1. Exclude Gemini from character workflows and drive video identity through detailed text prompts (describe appearance, clothing, style) instead.
  2. Switch to a provider whose integration implements create_character if the feature is essential.
  3. Feature-flag character APIs per provider in your UI.
Defensive patterns

Strategy: try-catch

Validate before calling

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

Type guard

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

Try / catch

try:
    char = litellm.video_create_character(model=model, name=name, video=video)
except NotImplementedError:
    raise FeatureUnsupported("character APIs are not available for Gemini/Veo")

Prevention

When it happens

Trigger: Calling litellm.video_create_character(...) (name + video arguments) with a Gemini/Veo model or provider config.

Common situations: Multi-provider applications that build reusable characters (a feature of some video APIs) and point them at Gemini; assuming a uniform video feature matrix across providers.

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/4102ab885116926f. Report an issue: GitHub.

Appendix: source

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

        headers: dict,
    ) -> tuple[str, dict]:
        """
        Video delete is not supported by Veo API.
        """
        raise NotImplementedError(
            "Video delete is not supported by Google Veo. Videos are automatically cleaned up by Google."
        )

    def transform_video_delete_response(
        self,
        raw_response: httpx.Response,
        logging_obj: LiteLLMLoggingObj,
    ) -> VideoObject:
        """Video delete is not supported."""
        raise NotImplementedError("Video delete is not supported by Google Veo.")

    def transform_video_create_character_request(self, name, video, api_base, litellm_params, headers):
        raise NotImplementedError("video create character is not supported for Gemini")

    def transform_video_create_character_response(self, raw_response, logging_obj):
        raise NotImplementedError("video create character is not supported for Gemini")

    def transform_video_get_character_request(self, character_id, api_base, litellm_params, headers):
        raise NotImplementedError("video get character is not supported for Gemini")

    def transform_video_get_character_response(self, raw_response, logging_obj):
        raise NotImplementedError("video get character is not supported for Gemini")

    def transform_video_edit_request(
        self,
        prompt,
        video_id,
        api_base,
        litellm_params,
        headers,
        extra_body=None,

View on GitHub (pinned to 77b7c6c40c)