Skip to main content
Glama

flux_edit_image

Modify an existing image with a text prompt: change elements, apply artistic styles, or replace objects. Uses context-aware Flux models for accurate edits.

Instructions

Edit an existing image using Flux with a text prompt.

This allows you to modify an existing image based on a text description.
The kontext models (flux-kontext-pro, flux-kontext-max) are specifically
designed for high-quality image editing and style transfer.

Use this when:
- You want to modify or transform an existing image
- You want to change specific elements in an image
- You want to apply style changes or artistic effects
- You want to add, remove, or replace objects in an image

For generating new images from scratch, use flux_generate_image instead.

Returns:
    Task ID and edited image information including URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoOutput image size. For kontext models: aspect ratios like '1:1', '16:9'. For other models: pixel dimensions like '1024x1024'.
modelNoFlux model to use for editing. Recommended models for editing: - flux-kontext-pro: Best for context-aware editing and style transfer (recommended) - flux-kontext-max: Maximum context for complex edits - flux-dev: Basic editing support Other models also support editing but kontext models give best results.flux-kontext-pro
promptYesDescription of how to edit the image. Be specific about what changes to make. Examples: 'Change the background to a sunset beach', 'Add sunglasses to the person', 'Make it look like a watercolor painting', 'Replace the car with a bicycle'
image_urlYesURL of the image to edit. Must be a direct image URL (JPEG, PNG, etc.), not a web page containing an image.
callback_urlNoWebhook callback URL for asynchronous notifications.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. The description says it returns 'Task ID and edited image information including URLs,' but does not clarify whether the operation is asynchronous or synchronous, nor does it mention that users may need to poll with flux_get_task or provide a callback_url to receive results. Given the schema includes a callback_url, the async nature is likely but not disclosed, and the wording may mislead an agent into expecting the edited image immediately.

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

Conciseness4/5

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

The description is well-structured with a clear opening sentence, a brief paragraph on model suitability, bulleted use cases, an alternative reference, and a returns section. It is front-loaded with the core purpose. However, there is some redundancy among the 'Use this when' bullets (e.g., 'modify or transform' and 'change specific elements'), which slightly reduces efficiency.

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

Completeness2/5

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

The tool has 5 parameters, a rich schema, and an output schema, but the description misses the critical asynchronous workflow context. It does not explain that the operation is likely async, that users may need to poll with get_task or get_tasks_batch, or how the task lifecycle works. This gap is important for an agent to correctly invoke and monitor the edit, despite the schema covering parameter details well.

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

Parameters3/5

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

The input schema has 100% parameter description coverage, including detailed guidance for model selection, size formatting, and prompt examples. The description adds no additional parameter semantics beyond what the schema already provides, so it earns the baseline score of 3.

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 opens with 'Edit an existing image using Flux with a text prompt,' clearly identifying the verb (edit), resource (existing image), and mechanism (Flux and prompt). It explicitly distinguishes itself from the sibling flux_generate_image by stating 'For generating new images from scratch, use flux_generate_image instead,' making purpose and differentiation unambiguous.

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

Usage Guidelines5/5

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

The description provides explicit 'Use this when' bullets covering common editing scenarios (transform, change elements, apply styles, add/remove/replace objects). It also names the alternative tool for new image generation, flux_generate_image, making the decision of when to use this tool versus alternatives very clear.

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/FluxMCP'

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