generate_image
Create images from text prompts with adjustable aspect ratio, resolution, style, and safety settings. Supports multiple variations and reference images for consistency.
Instructions
Generate an image from a text prompt using Google Gemini.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model override. Options: - "gemini-2.5-flash-image" (default): Fast, cheap - "gemini-3-pro-image-preview": Best text, complex edits - "gemini-3.1-flash-image-preview": Panoramic, fast 4K | |
| prompt | Yes | Text description of the image to generate | |
| quality | No | Quality preset: "fast" (cheapest), "balanced" (good quality), or "quality" (best output). Mutually exclusive with 'model'. | |
| image_size | No | Resolution: "1K" (default), "2K", or "4K" | |
| temperature | No | Creativity level 0.0-2.0 | |
| aspect_ratio | No | Image dimensions (1:1, 16:9, 9:16, etc.) | 1:1 |
| output_format | No | File format: "png", "jpeg", or "webp" | png |
| safety_setting | No | Safety filter (preset:strict, preset:relaxed) | preset:strict |
| output_filename | No | Custom filename (optional, auto-generated if not provided) | |
| thinking_budget | No | Thinking budget for extended reasoning (0-24576 tokens). Higher = deeper reasoning. | |
| number_of_images | No | Generate 1-4 variations (default: 1) | |
| reference_images | No | Paths to reference images for style/character consistency (up to 14 images) | |
| person_generation | No | People in images: "allow", "adults_only" (no minors), or "block" (no people). Only enforced with Imagen models. Gemini has built-in person restrictions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||