BerriAI/litellm · error · NotImplementedError
video edit is not supported for Gemini
Error message
video edit is not supported for Gemini
What it means
transform_video_edit_request for Gemini raises NotImplementedError: Veo (as integrated here) has no edit-an-existing-video endpoint. Editing must be expressed as a new generation with a prompt describing the desired change, optionally seeding style via the prompt or image inputs that video_generation supports.
Solutions
- Reissue the change as litellm.video_generation(model='gemini/veo-3', prompt='<original scene description> + <desired change>').
- Use Veo's image input (video_generation with an image) to anchor edits on a key frame.
- Feature-flag editing per provider so Gemini shows 'not supported' instead of erroring.
Example fix
# before
edited = litellm.video_edit(
model="gemini/veo-3", prompt="add sunglasses", video_id=video.id
)
# after: Veo cannot edit in place; regenerate with an enriched prompt
edited = litellm.video_generation(
model="gemini/veo-3",
prompt="the same cat surfing, now wearing black sunglasses",
) Defensive patterns
Strategy: try-catch
Validate before calling
def provider_supports_video_edit(model: str) -> bool:
return not model.lower().startswith(("gemini/", "vedo/")) Type guard
def can_edit_video(model: str) -> bool:
return not model.lower().startswith(("gemini/", "vedo/")) Try / catch
try:
edited = litellm.video_edit(model=model, prompt=delta, video_id=video_id)
except NotImplementedError:
if model.startswith("gemini/"):
edited = litellm.video_generation(model=model, prompt=f"{base_scene}, {delta}") Prevention
- Implement 'edit' as regenerate-with-modified-prompt for Veo from the start.
- Keep the original scene description around to compose edit prompts.
- Drive edit affordances from a per-provider capability map.
When it happens
Trigger: Calling litellm.video_edit(prompt=..., video_id=...) with a Gemini/Veo model.
Common situations: Applications with an 'edit' button built on providers that support edits (e.g. Sora) being switched to Gemini; prompt-to-edit pipelines reused 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
- video create character is not supported for Gemini
- Video delete is not supported by Google Veo.
- Video delete is not supported by Google Veo. Videos are…
- video extension is not supported for Gemini
- video get character is not supported for Gemini
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/e11a595169f647e1.
Report an issue: GitHub.
Appendix: source
Thrown at litellm/llms/gemini/videos/transformation.py:572
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,
prefetched_source_data=None,
):
raise NotImplementedError("video edit is not supported for Gemini")
def transform_video_edit_response(
self,
raw_response,
logging_obj,
custom_llm_provider=None,
request_data=None,
):
raise NotImplementedError("video edit is not supported for Gemini")
def transform_video_extension_request(
self,
prompt,
video_id,
seconds,
api_base,
litellm_params,
headers,View on GitHub (pinned to 77b7c6c40c)