generate_ai_image
Create AI-generated images from text prompts using customizable dimensions and quality settings through the Image MCP Server.
Instructions
Generate AI images using the ai-image npm module
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>",
"output_dir": "<output_dir>"
},
"name": "generate_ai_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The text prompt for image generation | |
| size | No | Image size in format WIDTHxHEIGHT (e.g., 1536x1024) | 1024x1024 |
| model | No | AI model to use for generation (optional) | |
| output | No | Output file path (optional) | |
| output_dir | Yes | Absolute path direcotry where to save the image (use current folder root by default) | |
| quality | No | Image quality (low, medium, high, auto) - OpenAI only | high |
| uselibincli | No | Use library imports instead of CLI (default: false) |