Gemini CLI Integration with Flux MCP
📘 Complete Guide: Using Ace Data Cloud MCP in Gemini CLI →
Top open-source image model produced by Black Forest Labs, with a realistic style and excellent Kontext editing capabilities. After integrating with Gemini CLI via MCP, it can be called directly in the conversation without switching windows or copying and pasting.
¶ Obtain API Token
Register an account on the Ace Data Cloud platform and copy the API Token from the homepage—one Token is sufficient to use all MCP Servers. For detailed steps, see the Complete Guide.

¶ Configuration
Edit configuration: one-click addition via command line (recommended)
gemini mcp add flux \
--transport http \
https://flux.mcp.acedata.cloud/mcp \
--header "Authorization: Bearer yourToken"
Or manually edit ~/.gemini/settings.json:
{
"mcpServers": {
"flux": {
"httpUrl": "https://flux.mcp.acedata.cloud/mcp",
"headers": { "Authorization": "Bearer yourToken" }
}
}
}
The tool will be available the next time the gemini session starts.
¶ Usage Examples
Generate a cyberpunk-style city night scene with neon lights, rainy night, and wet streets using Flux.
Change this image (link xxx) to a watercolor style.
Generate a 1024x1024 product hero image: black metallic headphones floating on a white background.
¶ Tools
| Tool | Description |
|---|---|
| flux_generate_image | Text-to-image (Flux pro / dev / ultra) |
| flux_edit_image | Edit existing images based on prompts (using flux-kontext-pro / max model) |
