Gemini CLI Integration with Flux MCP
📘 Complete Guide: Use Ace Data Cloud MCP in Gemini CLI →
A top open-source image model by Black Forest Labs, with photorealistic styles and outstanding Kontext editing capabilities. After integrating it with Gemini CLI through MCP, you can invoke it directly in conversations, without switching windows or copying and pasting.
¶ Obtain an API Token
Create or copy an API Key with access to this service from General Applications in the console. For account applicability, see Gemini CLI Overview.

¶ Configuration
Set the environment variable ACEDATACLOUD_API_TOKEN in the terminal where Gemini CLI is launched, using an application API Key authorized to access this service. Execute the following commands in a trusted working directory to register it in your personal configuration. Single quotes preserve the variable reference.
gemini mcp add --scope user --transport http flux https://flux.mcp.acedata.cloud/mcp --header 'Authorization: Bearer ${ACEDATACLOUD_API_TOKEN}'
gemini mcp list
After confirming that flux is shown as connected, launch gemini from the same terminal.
¶ Usage Examples
Use Flux to generate a cyberpunk-style city nightscape, with neon lights, a rainy night, and wet streets
Change this image (link xxx) into a watercolor painting style
Generate a 1024x1024 product hero image: black metallic-textured headphones floating against a white background
¶ Tools
| Tool | Description |
|---|---|
| flux_generate_image | Text-to-image generation (Flux pro / dev / ultra) |
| flux_edit_image | Edit an existing image according to prompts (using flux-kontext-pro / max models) |
