googleapis / googleapis/python-genai

Poor Image Quality in Gemini Batch API Compared to Single Generation

Open
#2,175 1 comment 0 reactions 1 assignee Claimed by @Venkaiahbabuneelam View on GitHub
priority: p2 type: bug
Dominant language
Python
Stars
4k
Forks
1k
Avg merge
2d 11h
Merged PRs (30d)
40

Description

### **Description**

I'm using the Gemini Batch API for image generation, and I've noticed that the generated image quality is significantly lower compared to non-batch (single request) image generation.

---

### **Steps to Reproduce**

1. Call the Gemini Batch API for image generation with a standard prompt
2. Generate images using the same prompt via single (non-batch) API
3. Compare the output quality

---

### **Expected Behavior**

The image quality from the Batch API should be consistent with the quality produced by the standard (non-batch) image generation API.

---

### **Actual Behavior**

* Images generated via Batch API appear:

* Lower resolution
* Less detailed
* Slightly distorted in some cases

---

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.