Claude cannot draw images by itself, but it can generate and edit them through an MCP server that calls OpenAI's GPT Image. With the ChatGPT MCP server, Claude gets generate_image and edit_image tools backed by gpt-image-2. The images come back inline in the chat with a download link, billed to your ChatGPT plan or your OpenAI API key.
Why can't Claude generate images on its own?
Claude models answer in text. They can read images you attach, describe them and write code that draws charts, but they do not output pictures. Asking Claude for "an image of a red bicycle" gets you a description, an SVG or a prompt to paste somewhere else.

MCP closes that gap. An MCP server gives Claude tools it can call, and an image tool returns real image files. Claude writes the prompt, picks the size, calls the tool and shows the result, all in the conversation you are already in. If MCP is new to you, how Claude uses MCP explains the basics.
What can Claude do with GPT Image through MCP?
- Generate 1 to 4 images from a prompt in one call.
- Edit 1 to 4 source images: change a background, add an object, combine a product shot with a scene.
- Mask an area of the first image so only that part changes.
- Make transparent PNGs for icons and stickers.
- Look at images with
ask, for example to have GPT critique a draft image before you regenerate it.
Both tools use gpt-image-2. On an OpenAI API key, a transparent background switches to gpt-image-2.5-sunburst, because the API refuses transparent backgrounds for gpt-image-2.
How do you set it up?
- Create a free MCPifex account and add the ChatGPT server from the marketplace.
- Add a credential: link a ChatGPT subscription with a one-time code, paste an OpenAI API key, or both.
- Choose the tools for your first key and click Create instance. Copy the
mcpx_API key the Connect step shows once, then addhttps://mcp.mcpifex.com/mcpto Claude Code, or a custom connector to claude.ai.
Use your ChatGPT subscription in Claude has every click for both clients.
Before you start: the ChatGPT subscription link is unofficial. OpenAI does not make, endorse or support it, and you use it at your own risk. OpenAI may limit or ban accounts that use their plan through third-party services. The OpenAI API key path uses the official API.
Which options does generate_image take?
Claude fills these in from your request, so you can ask in plain words ("a wide image, low quality, four versions") and it maps them.
| Option | Default | What it does |
|---|---|---|
prompt | Required | Subject, style, composition and any text to render. Up to 32,000 characters. |
size | auto | 1024x1024 square, 1536x1024 landscape, 1024x1536 portrait, or auto. |
quality | auto | low, medium, high or auto. Low is fastest and cheapest; high takes longest. |
background | auto | auto, opaque or transparent. Transparent returns a PNG with an alpha channel. |
n | 1 | How many images, 1 to 4. |
What does a good image prompt look like?
Describe the picture the way you would brief a designer. A prompt that covers these six points leaves the model less to guess:
- Subject: what is in the image and what it is doing.
- Setting: where it is and what surrounds it.
- Style: photo, flat illustration, 3D render, watercolour, line art.
- Composition: wide or close, centred or off-centre, empty space for a headline.
- Text: any words that must appear, in quotes, with the exact spelling.
- Constraints: what to leave out, such as logos, people or a busy background.
For example: "Generate a 1536x1024 flat illustration of a paper rocket lifting off a wooden desk next to a laptop. Soft morning light, muted teal and coral colours, empty space on the left for a headline, no text, no people."
Let Claude write the long prompt from a short idea, then read it before the call. That is cheaper than regenerating.
How do you edit an image from Claude?
edit_image takes 1 to 4 source images and a prompt that says what to change. The first image is the one being edited; the others are references, such as a logo or a product to place in the scene.

- Public URLs work best. Each image can be up to 10 MB and 20 MB per call, in PNG, JPEG or WebP.
- Base64 is limited. All base64 inputs together must stay under about 700 KB, because the whole request is capped at 1 MB. Large local files should be uploaded somewhere first.
- Masks need an API key. A mask is a PNG with an alpha channel, the same size as the first image. Fully transparent pixels mark the area to edit. The ChatGPT subscription endpoint does not take masks, so masked edits always run on your OpenAI API key.
A typical request: "Edit this photo, https://example.com/bottle.jpg: put the bottle on a white marble counter with soft window light, keep the label unchanged."
What comes back, and in which format?
Each image is returned inline, so Claude shows it in the chat, and as a download link that works for 7 days. The stored file is deleted after 30 days, so save what you keep. A result carries at most 8 MB of inline images; extra images arrive as links only, with a note.

The format depends on the credential. Images made on the ChatGPT subscription are PNG, typically 1 to 3.4 MB each even at low quality. Images made on an API key are JPEG at compression 80, which keeps them small, or PNG when the background is transparent.
How long does it take and what does it cost?
Image calls usually take one to three minutes, and the server allows up to 240 seconds. Low quality is the fastest way to explore ideas; switch to high for the final version.
On the subscription, images count against your plan. OpenAI's Codex pricing page says image generation uses the same limits as other messages, 3 to 5 times faster on average, and is not available on the Free plan. On an API key, OpenAI's image generation guide lists estimated output costs for gpt-image-2 from $0.005 per image at low quality to $0.211 at high quality (checked 2026-11-29). Billing is token-based, so these are estimates. ChatGPT plan limits vs OpenAI API pricing has the full table.
What are the limits and gotchas?
- Text in images. Check the spelling of any rendered text on every result before you publish it.
- No memory between calls. To iterate, pass the previous image's link into
edit_imageinstead of saying "make it bluer". - Busy server. If many people generate at once, the tool answers "MCPifex is busy generating images for other users, try again in a minute." Nothing is queued.
- Policy refusals. OpenAI can decline a prompt under its usage policies. The tool says so and adds OpenAI's reason when it gives one.
- Unofficial subscription link. The plan path is at your own risk; the API key path is official.
Quick answers
Not on its own: Claude models answer in text. Through an MCP server such as the ChatGPT MCP server, Claude can call GPT Image 2 and return real images in the chat.
gpt-image-2. On an OpenAI API key, transparent backgrounds use gpt-image-2.5-sunburst, because gpt-image-2 does not accept them there.
Yes. edit_image takes 1 to 4 source images as https URLs or small base64 inputs, plus an optional PNG mask. Masked edits need an OpenAI API key.
On a ChatGPT plan it counts against your usage limits. On an API key, OpenAI estimates gpt-image-2 output at $0.005 per image at low quality to $0.211 at high quality, checked 2026-11-29.
Sources
- OpenAI, Image generation guide, checked 2026-11-29.
- OpenAI, API pricing, checked 2026-11-29.
- OpenAI, Codex pricing and usage limits, checked 2026-11-29.
Ready to try it?
Run hosted MCP servers behind one endpoint and choose exactly which tools your AI can use.



