generateImage
Create custom images from text prompts using configurable settings like model, dimensions, and transparency. Outputs base64-encoded data and saves files automatically.
Instructions
Generate an image, return the base64-encoded data, and save to a file by default. User-configured settings in MCP config will be used as defaults unless specifically overridden.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enhance | No | Whether to enhance the prompt using an LLM before generating (default: true) | |
| fileName | No | Name of the file to save (without extension, default: generated from prompt) | |
| format | No | Image format to save as (png, jpeg, jpg, webp - default: png) | |
| height | No | Height of the generated image (default: 1024) | |
| model | No | Model name to use for generation (default: user config or "flux"). Use listImageModels to see all available models | |
| outputPath | No | Directory path where to save the image (default: "./mcpollinations-output") | |
| prompt | Yes | The text description of the image to generate | |
| safe | No | Whether to apply content filtering (default: false) | |
| seed | No | Seed for reproducible results (default: random) | |
| transparent | No | Generate image with transparent background (gptimage model only, default: false) | |
| width | No | Width of the generated image (default: 1024) |