generate_image
Generate AI images from text prompts using configurable providers. Set resolution, aspect ratio, and output directory to get the image you need.
Instructions
Generate an image using AI models. Supports multiple providers (Yunwu, Gemini Official, Custom). Provider is configured via IMAGE_PROVIDER environment variable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model to use for generation (default: gemini-3-pro-image-preview) | |
| prompt | Yes | The prompt for image generation | |
| out_dir | No | Directory to save the image (optional) | |
| filename | No | Custom filename (optional, default: timestamp.png) | |
| image_size | No | Resolution of the generated image (default: 2K) | |
| aspect_ratio | No | Aspect ratio of the generated image (default: 1:1) |