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
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Random seed for reproducibility (optional, random if not provided) | |
| model | No | Model 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-dev | flux2-dev |
| steps | No | Number of inference steps. Model-specific defaults: FLUX.1-dev=40, FLUX.2-dev=50. Range: 20-100 | |
| width | No | Image width in pixels (default: 1024) | |
| height | No | Image height in pixels (default: 1024) | |
| prompt | Yes | Text description of the image to generate | |
| guidance_scale | No | Guidance scale for prompt adherence. Default 7.5 for strong adherence. Use 3.0-4.0 for faster/looser results. Range: 1.0-10.0 |