Flux AI & MCP

2 min read

On this page

Flux AI is the shared AI layer of the FluxWP packages. OpenRouter and Anthropic keys, the model catalogue and prices, prompt caching, a tool registry, usage logs, billing and spending limits live here once; Flux Chat, Flux Mail, Flux Social, Flux Lang, Flux Studio and the rest call it instead of talking to AI providers themselves. Authorised users also get a streaming AI chat in the admin that can use those tools.

Features

Hub for other plugins

flxai_chat() / flxai_complete() with tools, streaming, prompt caching (Claude) and model fallback; flxai_ready(), flxai_model_for(), flxai_budget_status().

Connected systems: each plugin with status, model, 30-day requests, tokens, cost, errors and last use; on/off per system; per-plugin model in Settings.

Tools: every tool registered through flxai_tools or Flux SEO, with source, reads/writes, approval flag, capability, 30-day calls and average time; on/off per tool.

Images in answers: widget /mermaid blocks rendered to PNG through Gotenberg or Imagick.

Image and video generation for Flux Studio through fal.ai, EvoLink, OpenAI, Gemini and OpenRouter (flxai_media_submit).

Costs and limits

Overview: daily, weekly and monthly spend against limits, cost, requests, tokens (input, output, from cache), total time split into model vs tools, errors; daily charts for 7 to 180 days, per plugin.

Billing: month by month with cache savings, per provider, per plugin and per model, CSV download.

Logs: every model request and tool call (where, who, model or tool, tokens, cache, duration, cost); content stored masked (e-mail, phone, IBAN, keys) and kept 30 days by default.

Spending limit action: block or only warn, with a warning percentage.

Shared chat

The AI button in the admin opens a docked or floating chat with chat history, search, model picker, suggestions for the current page and streaming answers.

Changes need the user’s approval in the chat; stop at any time; edit a message or go back to an earlier point.

The chat keeps running across page loads.

Requirements

An OpenRouter or Anthropic API key. Optional: Gotenberg or Imagick for images in answers, fal.ai / EvoLink / OpenAI / Gemini keys for Flux Studio.

First steps

Activate Flux AI and open Flux AI & MCP › Settings.

Enter an OpenRouter key (or an Anthropic key), choose the default model and press Test.

Set daily, weekly and monthly limits.

Open Connected systems to see which plugins use Flux AI and pick a model per plugin if you like.

Updated yesterday