Codex CLI Integration with Flux MCP
📘 Complete Guide: Using Ace Data Cloud MCP in Codex CLI →
Top open-source image model produced by Black Forest Labs, with a realistic style and excellent Kontext editing capabilities. After integrating MCP with Codex CLI, 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 the configuration: ~/.codex/config.toml
[mcp_servers.flux]
url = "https://flux.mcp.acedata.cloud/mcp"
type = "http"
http_headers = { "Authorization" = "Bearer yourToken" }
After saving, the tool will automatically load during the next codex session startup.
¶ 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) |
