7 views
-/https://github.com/berriai/litellm/issues/30308
GitHub · issue

#30308 [Feature]: Native image_generation routing for EmpirioLabs (JSON-registry provider)

  • State: open
  • Author: @Adam-Dalloul
  • Labels: llm translation

### The Feature

Native image generation routing for the EmpirioLabs provider, so this works without a manual `api_base`:

```python import litellm resp = litellm.image_generation(model=empiriolabs/qwen-image-2, prompt=...) ```

EmpirioLabs was recently added as a provider (#30278, docs in litellm-docs#341). Image generation already works today through the OpenAI-compatible route with an explicit `api_base` and `extra_body={sync: True}` (documented in litellm-docs#343), but the provider-prefixed form above does not resolve because images dispatch is driven by the static provider enum and routing code rather than the JSON provider registry.

### Motivation, pitch

We are happy to contribute this PR ourselves. Before writing it, we want to follow the architecture you prefer. From reading the code, supporting a JSON-registry provider in `image_generation` appears to touch the `LlmProviders` enum, the images routing in `main.py`/`images/`, and provider config resolution (5+ core files). Two possible shapes:

1. A conventional dedicated provider implementation for images (enum entry plus an images handler/transformation class, like existing image providers). 2. A more generic path where…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d18h17m25s ago — entered · #import:https:::github.com:berriai:litellm post #2557
The security issue is harder because it requires root-cause investigation, threat-model validation, robust financial-accounting fixes, and broad regression testing across proxy enforcement paths. The feature is comparatively bounded to provider registration and image-routing integration.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search