From 8020927e6d82a627786a0ae56ac8cb6994978e99 Mon Sep 17 00:00:00 2001 From: priyanshumishra74101 Date: Fri, 1 May 2026 12:35:38 +0530 Subject: [PATCH 1/2] add note about maximum images limit and asyncio workaround Added a note clarifying that the maximum number of images per request is 4. Suggested asyncio as workaround for generating more than 4 images. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 1b3848d4f..c1c9161aa 100644 --- a/README.md +++ b/README.md @@ -1175,8 +1175,10 @@ print(response) ### Imagen #### Generate Images +> **Note:** Maximum images per request is 4. For more than 4 images, send multiple parallel requests using `asyncio`. See the asyncio example below. ```python + from google.genai import types response1 = client.models.generate_images( From 64ac5411546dcc8abd604af2c62edad6e5f783cc Mon Sep 17 00:00:00 2001 From: priyanshumishra74101 Date: Fri, 1 May 2026 13:11:08 +0530 Subject: [PATCH 2/2] docs: add note about maximum images limit and asyncio workaround