@@ -353,14 +353,14 @@ assert isinstance(result.output, BinaryImage)
353353
354354_ (This example is complete, it can be run "as is")_
355355
356- To control the image resolution with Gemini 3 Pro Image models , use the ` resolution ` parameter:
356+ To control the image resolution with Google image generation models ( Gemini 3 Pro Image and later) , use the ` size ` parameter:
357357
358358``` py {title="image_generation_google_resolution.py"}
359359from pydantic_ai import Agent, BinaryImage, ImageGenerationTool
360360
361361agent = Agent(
362362 ' google-gla:gemini-3-pro-image-preview' ,
363- builtin_tools = [ImageGenerationTool(aspect_ratio = ' 16:9' , resolution = ' 4K' )],
363+ builtin_tools = [ImageGenerationTool(aspect_ratio = ' 16:9' , size = ' 4K' )],
364364 output_type = BinaryImage,
365365)
366366
@@ -383,9 +383,8 @@ For more details, check the [API documentation][pydantic_ai.builtin_tools.ImageG
383383| ` output_format ` | ✅ | ❌ |
384384| ` partial_images ` | ✅ | ❌ |
385385| ` quality ` | ✅ | ❌ |
386- | ` size ` | ✅ | ❌ |
387- | ` aspect_ratio ` | ✅ (1:1, 2:3, 3:2) | ✅ |
388- | ` resolution ` | ❌ | ✅ (1K, 2K, 4K) |
386+ | ` size ` | ✅ (1024x1024, 1024x1536, 1536x1024, auto) | ✅ (1K, 2K, 4K) |
387+ | ` aspect_ratio ` | ✅ (1:1, 2:3, 3:2) | ✅ (1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9) |
389388
390389## Web Fetch Tool
391390
0 commit comments