Skip to main content
Glama

midjourney_edit

Edit existing images using AI prompts. Optionally apply a mask to modify specific regions while preserving the rest.

Instructions

Edit an existing image using Midjourney.

This allows you to modify an existing image based on a text prompt,
optionally using a mask to specify which regions to edit.

Use this when:
- You want to modify an existing image with AI
- You want to add or change elements in an image
- You want to apply style changes to an image
- You need to edit specific regions using a mask

For masks:
- White areas in the mask indicate regions to regenerate
- Black areas will be preserved from the original

Returns:
    Task ID and edited image information including URLs and dimensions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
image_urlYesURL of the image to edit. Must be a direct image URL (not a web page).
promptYesDescription of how to edit the image. Examples: 'A cat sitting on a table', 'Add a sunset in the background', 'Make it look like a watercolor painting'
modeNoGeneration mode. 'fast' is recommended.fast
split_imagesNoIf true, split the result into separate images returned via sub_image_urls.
maskNoOptional Base64-encoded mask image. White areas indicate regions to edit and regenerate.
callback_urlNoWebhook callback URL for asynchronous notifications. When provided, the API will call this URL when the edit is complete.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so the description carries full burden. It explains mask semantics (white=regenerate, black=preserve) and states return type (Task ID and image info). However, it does not disclose potential side effects, authentication needs, or safety aspects like overwriting originals.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a main paragraph, bullet list for usage, mask instructions, and return info. Each sentence is informative and concise without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 6 parameters (2 required) and an output schema, the description covers core functionality and mask usage. It lacks explanations for 'mode' (fast/relax/turbo) and 'callback_url', but these are documented in the schema. Return values are mentioned.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds value by explaining mask semantics (white/black areas) and providing prompt examples, which goes beyond the schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Edit an existing image using Midjourney' and specifies modification via text prompt and optional mask. This differentiates it from sibling tools like midjourney_imagine (generation) and midjourney_transform (style transfer).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The bullet list explicitly states when to use the tool: modify existing image, add/change elements, style changes, edit with mask. It does not mention when not to use or list alternatives, but provides clear context for usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AceDataCloud/MidjourneyMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server