generate_image
Create AI images from a text prompt through an OpenAI-compatible endpoint, with optional direct-to-disk saving via output_path for workspace files.
Instructions
Generate an AI image from a text prompt via an OpenAI-compatible /v1/images/generations endpoint (default: api.uxmio.com). Supports saving directly to disk via output_path.
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>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | Number of images to generate (1-4, default: 1). | |
| size | No | Optional image size such as 1024x1024, 1024x1536, 1536x1024, 1024x1792, 1792x1024, auto. | |
| model | No | Model ID (default: gpt-image-2.5). Options: gpt-image-2, gpt-image-2.5, gpt-image-2.6, gemini-3.1-flash-image, gemini-3-pro-image. | |
| prompt | Yes | Detailed text description of the image to generate. | |
| quality | No | Optional quality level: auto, low, medium, or high. | |
| output_path | No | Optional local file path to save the generated image (e.g. ./assets/hero.png). Parent directories are created automatically. | |
| response_format | No | Preferred upstream response format (default: b64_json). | |
| include_inline_image | No | Whether to return an inline MCP image content block when binary data is available (default: true). |