Skip to content

[Feature]: Support image edit for OpenRouter models #22305

@Chesars

Description

@Chesars

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

The Feature

Currently image edit doesn't work for OpenRouter models, even though OpenRouter now routes models that support it (e.g. Gemini image models).

Models

  • openrouter/google/gemini-3-pro-image-preview
  • openrouter/google/gemini-3.1-flash-image-preview
  • openrouter/google/gemini-2.5-flash-image

Motivation, pitch

Image generation works with OpenRouter, but image edit does not. Users routing through OpenRouter (e.g. with Open-WebUI) get ValueError: image edit is not supported for openrouter even with models that support it.

What part of LiteLLM is this about?

SDK (litellm Python package)

LiteLLM is hiring a founding backend engineer, are you interested in joining us and shipping to all our users?

No

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions