
Fal.ai Image
STDIOGenerate images from text prompts using fal.ai API within your IDE
Generate images from text prompts using fal.ai API within your IDE
Effortlessly generate images from text prompts using fal.ai and the Model Context Protocol (MCP). Integrates directly with AI IDEs like Cursor and Windsurf.
This tool is designed for:
Key features:
{ "mcpServers": { "fal-ai-image": { "command": "npx", "args": ["-y", "mcp-fal-ai-image"], "env": { "FAL_KEY": "YOUR-FAL-AI-API-KEY" } } } }
generate-image
tool from your IDE.💡 Typical Workflow: Describe the image you want (e.g., “generate a landscape with flying cars using model fal-ai/kolors, 2 images, landscape_16_9”) and get instant results in your IDE.
generate an image of a red apple
generate an image of a red apple using model fal-ai/kolors
generate 3 images of a glowing red apple in a futuristic city using model fal-ai/recraft-v3, square_hd, 40 inference steps, guidance scale 4.0, safety checker on
Supported parameters: prompt, model ID (any fal.ai model), number of images, image size, inference steps, guidance scale, safety checker.
Images are saved locally; file paths are shown in the response. For model IDs, see fal.ai/models.
FAL_KEY environment variable is not set
: Set your fal.ai API key as above.npx
not found: Install Node.js 18+ and npm.{ "tool": "generate-image", "args": { "prompt": "A futuristic cityscape at sunset", "model": "fal-ai/kolors" } } // Example response { "images": [ { "url": "file:///path/to/generated_image1.png" }, { "url": "file:///path/to/generated_image2.png" } ] }
Generated images are saved to your local system:
~/Downloads/fal_ai
(on Linux/macOS; uses XDG standard if available)FAL_IMAGES_OUTPUT_DIR
to your desired folder. Images will be saved in <your-folder>/fal_ai
.The full file path for each image is included in the tool's response.
Contributions and suggestions are welcome! Please open issues or pull requests on GitHub.
MIT License © 2025 Madhusudan Kulkarni