OpenAI Images Generate
openai-images-generateGenerate images from text prompts using OpenAI models. Choose from multiple output formats and settings to get custom images.
Instructions
Generate images from text prompts using OpenAI gpt-image-1.5 (default) or gpt-image-1. Returns MCP CallToolResult with content[] (ResourceLink or ImageContent based on tool_result param) and structuredContent (OpenAI ImagesResponse format with data[].url, data[].path, or data[].b64_json based on response_format param).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| background | No | ||
| model | No | gpt-image-1.5 | |
| moderation | No | ||
| n | No | ||
| output_compression | No | ||
| output_format | No | ||
| quality | No | high | |
| size | No | 1024x1536 | |
| user | No | ||
| tool_result | No | Controls content[] shape: 'resource_link' (default) emits ResourceLink items, 'image' emits base64 ImageContent blocks. | resource_link |
| response_format | No | Controls structuredContent shape: 'url' (default) emits data[].url, 'path' emits data[].path, 'b64_json' emits data[].b64_json. | url |