OpenAI Image
v0.5.0OpenAI image generation MCP server for Model Context Protocol hosts
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
generate_image Generate Image
Generate one or more images using OpenAI's GPT Image models and save outputs to your workspace.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Text description of the image to generate |
background | string | Background style. 'transparent' produces a cutout with an alpha channel; it requires png or webp output. The default model supports it; gpt-image-2 does not. |
count | integer | How many images to generate (1-8). Cost multiplies by count. |
moderation | string | Content moderation strictness (defaults to auto). |
output_compression | integer | Compression level 0-100 (higher = better quality, larger file). Only applies when output_format is jpeg or webp. |
output_format | string | Output file format (defaults to png). jpeg and webp produce smaller files; only png and webp support transparency. |
quality | string | Image quality (defaults to high). Medium is usually about 10-20 seconds and $0.01-0.02; high usually takes 20-60 seconds and costs about $0.05-0.08. |
size | string | Image dimensions: square (1024x1024), portrait (1024x1536), landscape (1536x1024) |
edit_image Edit Image
Edit one or more existing images with OpenAI image editing and save outputs to your workspace.
| Parameter | Type | Description |
|---|---|---|
image_paths * | array | Absolute or workspace-relative paths to reference images. PNG/JPEG/WEBP only. |
prompt * | string | What to change in the image. Describe the edit in plain language. |
background | string | Background style. 'transparent' produces a cutout with an alpha channel; it requires png or webp output. The default model supports it; gpt-image-2 does not. |
count | integer | How many output images to generate (1-8). |
mask_path | string | Optional PNG mask. Transparent areas define the edit region. |
moderation | string | Content moderation strictness (defaults to auto). |
output_compression | integer | Compression level 0-100 (higher = better quality, larger file). Only applies when output_format is jpeg or webp. |
output_format | string | Output file format (defaults to png). jpeg and webp produce smaller files; only png and webp support transparency. |
quality | string | Output quality (defaults to high). Medium is usually about 10-20 seconds and $0.01-0.02; high usually takes 20-60 seconds and costs about $0.05-0.08. |
size | string | Output dimensions. |