#Gemini 2.5 Pro image generation not working – only text, no images

1 messages · Page 1 of 1 (latest)

tiny terrace
#

Hey, I'm having issues with Gemini 2.5 Pro image generation in LibreChat.

Problem:
Gemini doesn't generate actual images – it only returns text descriptions.
No image is rendered in the chat.

What I tried:

  • Setting fileStrategy: "local" in librechat.yaml
  • Updating to latest version

What I see:

My setup:

  • LibreChat version: v0.8.4
  • Running via: Docker
  • API: Google AI (Gemini 2.5 Pro)

Does LibreChat support Gemini's native image generation
If so, how do I configure it?

Thanks!

unkempt girder
# tiny terrace Hey, I'm having issues with Gemini 2.5 Pro image generation in LibreChat. **Pro...

The issue isn’t your setup... LibreChat just doesn’t properly support image output from Gemini 2.5 Pro yet. So even if Gemini sends image data, LibreChat only shows the text description.
That fileStrategy: "local" setting won’t fix it since the problem is how the response is handled, not storage.
Quick one do you want the images to show directly in the chat, or are you okay just getting the raw image data?

tiny terrace
#

@unkempt girder In the chat would be nice, but the raw data would also be fine. Maybe I need to see if I can make a fork or something similar; then I could probably implement it myself.

#

Or is there a simpler solution?

unkempt girder
# tiny terrace Or is there a simpler solution?

Honestly, you don’t really need to fork it unless you want to go deep into maintaining your own version. This can be fixed by handling Gemini’s image response properly on the backend and rendering it in the UI.
If you’re open to it, I can help you set this up cleanly from parsing the image data to getting it to display in chat without breaking anything else.

tiny terrace
#

@unkempt girder Sounds good. Thank you