Guide
AI Image MCP Server: How an Agent Makes and Edits Pictures
Published By DreamClip
An AI image MCP server hands an assistant a small toolkit for pictures: see which models exist and what sizes they make, price a run, start it, collect the files, and edit a photo. The tools are described in the Model Context Protocol's standard format, so an app with remote MCP support can pick them up without bespoke integration work. DreamClip's sits at https://dreamclip.ai/mcp, and this page follows an agent through it for images specifically.
Images differ from video in ways that shape the tools. A run is quick, a batch of variations is normal, the most common request is to change a photo rather than invent one, and the agent needs to see the result to judge it. The server answers with a count argument, an edit mode on most models, and a small preview of every image alongside the full-size link. How sign-in, the transport and long waits work in general is covered in the AI video MCP server guide; this page stays with pictures.
What an AI image MCP server does for an agent
Without one, an agent asked for a picture can only describe it or draw something in code. With one, it picks a real image model, sends a prompt and settings, and gets back a file it can show, save into a project or pass to the next step. The server's job is to make that safe and predictable: say exactly what each model takes, refuse impossible settings with a sentence the agent can act on, and never spend more than was quoted.
On DreamClip's server the same thirteen image models as the Image studio are available, at the studio's prices, along with the video and audio models. The connection is made once with an OAuth sign-in to the person's DreamClip account; there is no API key.
The tools an image run uses
| Step | Tool | What the agent gets |
|---|---|---|
| Look | Toollist_models with kind image | What the agent getsEach model's sizes, shapes, batch ceiling and whether it edits |
| Price | Toolestimate_cost | What the agent getsThe total for the settings and count, and the balance |
| Make | Toolgenerate_image | What the agent getsAn id at once, status queued, credits held |
| Collect | Toolget_generation | What the agent getsLinks, one resource link per file, a preview |
| Find again | Toollist_generations with kind image | What the agent getsRecent runs, newest first |
read_guide sits in front of all of them: the server tells every agent, at connection time, to read its guide before the first run. get_credit_balance is there for a big batch, though estimate_cost already reports the balance.
Reading the image models
list_models answers with one object per model. For images the fields that matter are the resolutions, given as size classes in pixels (512 for 0.5K, 1024 for 1K, 2048 for 2K, 4096 for 4K), the aspects the model accepts, maxCount, which is four on every image model here, and imageEdit, which says whether it can change a photo. Six with different ranges:
| Model | Maker | Sizes | Edits a photo |
|---|---|---|---|
| Nano Banana 2 | MakerGoogle | Sizes0.5K, 1K, 2K, 4K | Edits a photoYes |
| Seedream 4.5 | MakerByteDance | Sizes2K, 4K | Edits a photoYes |
| GPT Image 2.5 Flare | MakerOpenAI | Sizes1K, 2K, 4K | Edits a photoYes |
| Qwen Image 3 | MakerAlibaba | Sizes1K, 2K | Edits a photoYes |
| Krea 2 | MakerKrea | Sizes1K | Edits a photoNo |
| Grok Imagine 2.0 | MakerxAI | Sizes1K, 2K | Edits a photoNo |
Eleven of the thirteen image models edit a photo; the two exceptions, marked in the table, are Krea 2 and Grok Imagine 2.0, which only create. A good agent reads this once per session and chooses from it, rather than guessing a size and learning from the refusal.
One generate_image call, argument by argument
| Argument | Meaning | If left out |
|---|---|---|
| model | MeaningA key such as nano_banana_2 | If left outRequired |
| prompt | MeaningThe picture, or the change to make | If left outRequired |
| resolution | MeaningOne of the model's size classes | If left outThe smallest |
| aspect | MeaningA shape the model takes, or auto | If left outLeft to the model; name it |
| count | MeaningImages in the run, up to maxCount | If left outOne |
Three more are optional: reference_image_urls carries the one photo to edit, max_credits caps the run, and idempotency_key makes a retry safe. A count above the model's ceiling is refused with a sentence such as "Nano Banana 2 makes 1 to 4 outputs a run.", and nothing is charged.
Batches of variations
Asking for four options is the normal way to work with images, and it is a single call with count set to four. The price scales with the count, so estimate_cost should be called with the same count the agent will use. Four images from one call share the prompt and settings; for four different prompts, the agent makes four calls.
Because each delivered image comes with its own link and preview, the agent can show all four, take the person's pick, and carry that one link into the next step, an edit on the same server or a start frame for a clip.
Editing a photo through the server
On the eleven models with imageEdit, the agent sends one photo in reference_image_urls with a prompt that describes the change: "put this bottle on a wet slate surface", "make this street look like a winter evening", "replace the sky with a storm". The photo arrives either as an https address anyone can open or, once per call, inlined as a data URL smaller than 3 MB.
- The server reads the link and checks the bytes: PNG, JPEG and WebP are accepted, other types are refused with a sentence.
- It re-encodes the image, which strips location and camera metadata, and fits it inside 3,072 pixels.
- It stores the copy in the person's own uploads, where it also shows in their Character library.
- The edit runs like any other generation, quoted, held and settled.
A model without imageEdit answers with "Krea 2 does not edit photos. Call list_models for models with imageEdit." A file attached to a chat message is not part of the tool call, so the agent has to work from a link. The image to image page shows edits in the browser.
What comes back
A delivered get_generation answer carries three things for an image run. The text lists the output links. Each file also has a resource link with a media type and a name built from the model and the run. And each image gets a JPEG preview of at most 1,568 pixels on the long side, so an agent that can see images can judge the result without downloading the full file.
The links point at stored files in the person's DreamClip library, the Assets page, and do not expire. An agent writing code can download them into a project; an agent in a chat can show them.
Images as inputs to the next step
An image server earns most of its keep in chains. Because every delivered picture already sits at a stable address, the agent can hand it straight to another tool without downloading and re-uploading anything. Three chains come up again and again:
- Draft, pick, refine: four variations at a small size, the person chooses one, and that one is edited or remade at a larger size.
- Still to clip: a picture becomes the start frame of a video through generate_video's image_url, and on models that take one, a second picture becomes its end frame.
- Base and variants: one product shot is edited several times into different scenes, seasons or colourways, all from the same source photo.
The agent decides the order; the server only needs each step's link. For the still-to-clip chain, the image to video page shows what start frames look like once animated, and the animate an image in Claude guide walks through it in a chat.
Credits on an image run
- The quote from estimate_cost is the price the Image studio charges for the same size, shape and count.
- The generate call puts that amount on hold. Delivery spends it; a failure or a cancel returns it.
- max_credits turns away any run priced above it before a hold is made.
- Retrying with the same idempotency key answers with the original run, so a timeout never doubles a charge.
Refusals an image agent should expect
| Situation | What the agent reads |
|---|---|
| A size the model does not make | A sentence listing the model's sizes |
| Too many images in one run | "Nano Banana 2 makes 1 to 4 outputs a run." |
| An edit on a model that cannot edit | A sentence pointing at models with imageEdit |
| A link the server cannot reach | "DreamClip could not fetch that image URL. Use a public https link." |
| A photo edit the model declined with no reason | A sentence naming another model that takes the same request |
Each refusal comes back flagged as an error, with nothing charged, and its wording names the correction, so an agent rarely needs to ask the person what went wrong. For the declined edit, the answer names the model to try and says to call generate_image with the same prompt and photo.
Using it from different agents
The tools are the same whichever assistant calls them. The setup differs: the connect page has the steps for each app. Walkthroughs by assistant: images in Claude, images in Claude Code and images in Cursor. For a person comparing models before telling an agent which one to use, two pages help: the image generator overview and our roundup of AI image generators, and any single model opens directly, for example the Nano Banana 2 studio.
Questions
What is an AI image MCP server?
A remote service whose tools let an AI assistant make and edit pictures on a real image model, priced and billed to the account of the person who connected it.
How many images can one call make?
Up to four on every image model on DreamClip's server. Set count, and estimate the cost with the same count.
Can the server edit an existing photo?
Yes, on eleven of the thirteen image models. The agent sends one photo as a public link or a small data URL with a prompt describing the change.
Which image models cannot edit?
Krea 2 and Grok Imagine 2.0. They make new images only.
Does the agent see the result?
It gets the full-size links and a JPEG preview of each image, up to 1,568 pixels on the long side.
What size does a run use if the agent names none?
The model's smallest size. Ask for 2K or 4K by name on models that offer them, and quote that size before the run.
Is a failed image run charged?
No. The held credits go back to the balance.
Related
- GuideAI Video MCP Server: How an Agent Makes Clips, Tool by ToolWhat an AI video MCP server is and how an agent drives one: sign-in, the ten tools, async renders, holds and refusals, shown on DreamClip's own server.
- GuideHow to Generate Images in Claude on Named Image ModelsMake pictures inside a Claude chat on Nano Banana Pro, Seedream or GPT Image 2.5 through the DreamClip connector: setup, requests, photo edits and cost.
- GuideHow to Generate Images in Cursor with an MCP ServerInstall DreamClip's image server in Cursor with one link or three lines of JSON, then ask the agent for app icons, hero art and mockups on Nano Banana 2.



