Skip to main content
Glama

generate_image

Create images from text prompts using FLUX models. Runs in the background; timeouts are normal, and the image saves to the output directory when done.

Instructions

Generate high-quality images using FLUX models. Two models available: FLUX.1-dev (faster, 40 steps default) and FLUX.2-dev (highest quality, 50 steps default). Both models are optimized for quality output. Images are saved to the configured output directory with embedded metadata. IMPORTANT: This tool is LONG-RUNNING and NON-BLOCKING. flux1-dev takes ~4-8 min, flux2-dev takes ~30-40 min. The MCP client may receive a timeout error - this is EXPECTED and NORMAL. Do NOT treat a timeout as a failure. Inform the user that generation is running in the background and they should upload the result image when ready.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNoRandom seed for reproducibility (optional, random if not provided)
modelNoModel to use: 'flux1-dev' (faster quality, ~4-8 min) or 'flux2-dev' (highest quality, ~30-40 min on 16GB). Both optimized for quality. Default: flux2-devflux2-dev
stepsNoNumber of inference steps. Model-specific defaults: FLUX.1-dev=40, FLUX.2-dev=50. Range: 20-100
widthNoImage width in pixels (default: 1024)
heightNoImage height in pixels (default: 1024)
promptYesText description of the image to generate
guidance_scaleNoGuidance scale for prompt adherence. Default 7.5 for strong adherence. Use 3.0-4.0 for faster/looser results. Range: 1.0-10.0
Behavior5/5

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

With no annotations provided, the description takes on the full burden of behavioral disclosure. It thoroughly explains that the tool is non-blocking, takes 4-40 minutes, may cause timeout errors that are expected, and saves images to a configured output directory with embedded metadata. This is exemplary transparency.

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 and appropriately sized. It leads with purpose, then model options, then critical operational warnings. Every sentence contributes necessary usage or behavioral information, with no fluff or repetition.

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

Completeness5/5

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

Given the tool's complexity and lack of an output schema, the description covers the full lifecycle: what it does, which models to choose, how long it takes, what to expect regarding timeouts, and where results are saved. It even advises the user on how to handle the result. This is highly complete.

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?

All 7 parameters are fully documented in the input schema with defaults, ranges, and descriptions, so coverage is 100%. The description adds context about model-specific step defaults and performance differences, but this information is already largely present in the schema. Baseline 3 is appropriate since no significant additional semantics are provided.

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 it generates high-quality images using FLUX models, naming specific models (FLUX.1-dev and FLUX.2-dev). This specific verb+resource action distinguishes it from sibling tools like get_preview, unload_model, get_status, and set_timeout, which all have different purposes.

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 description provides explicit guidance on how to handle the tool's long-running and non-blocking nature, including instructions to not treat timeouts as failures and to inform the user about background generation. It does not explicitly mention alternatives like get_preview for previews, but the usage context is clear and actionable.

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/tehw0lf/flux-mcp'

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