Results from gemini-3.1-flash-image-preview are massive JSON files due to base64 and PNG

I’m using gemini-3.1-flash-image-preview with genkit to do something that generates 10 or 15 images.
I use 1K and each response is almost 2 MB.
That means that genkit cannot manage the traces properly because they are very heavy. So, the best genkit feature (The Developer UI) is totally useless. It cannot work.
And we waste a lot of network resources downloading that JSON files.

If you use 4K, the response JSON is about 20 MB. Which is by far much worse.

There are 2 ways to fix this easily:
Can you add a way to request the response as JPG base64 (and compress quality level)? PNG is too big.

Another way is a ephemeral URL. (But I prefer the JPG way)

Thanks