generate_image
Create images from text descriptions using Google's Gemini AI models. Specify prompts, aspect ratios, and resolutions to generate custom visual content.
Instructions
Generate an image from a text prompt using Google's Gemini image models.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description of the image to generate | |
| model | No | Model tier: nb2 (default) or pro. Raw model IDs also accepted | |
| aspectRatio | No | Aspect ratio (1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9) | |
| resolution | No | Output resolution (1K, 2K, 4K) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | ||
| model | Yes | ||
| mimeType | Yes |