Skip to main content

AI Budget

📖 FuerteventuraTV Docs Joomla & WordPress AI plugins
Governance

AI Budget

The AI Budget view lets you set token and monetary spending caps to prevent runaway API costs. Caps can be applied globally, per provider, per Joomla group / WordPress role, or per individual user.


Concepts

TermMeaning
Token capMaximum number of tokens (input + output) allowed per period
USD capMaximum dollar spend per period
Perioddaily, weekly, or monthly (rolling)
ScopeGlobal · Provider · Group/Role · User
Alert threshold% of cap at which an email notification is sent

Caps are evaluated in order: User → Group → Provider → Global. The most restrictive cap that applies wins.


Budget list

Navigate to JoomlaAI → AI Budget.

The list shows all active budget rules:

ColumnDescription
NameHuman label (e.g., "Global monthly cap", "Editors — daily limit")
ScopeGlobal / Provider / Group / User
PeriodDaily / Weekly / Monthly
Token capMax tokens (blank = unlimited)
USD capMax USD (blank = unlimited)
UsedTokens / USD consumed in the current period
%Bar chart of consumption
Alerts70% / 90% / 100% alert status
StatusActive / Paused

Creating a budget rule

Click New in the toolbar.

FieldRequiredDescription
NameYesLabel for this rule
ScopeYesGlobal / Provider / Group / User
TargetIf scope ≠ GlobalPick the provider, group, or user
PeriodYesDaily / Weekly / Monthly
Token capNoLeave blank for unlimited
USD capNoLeave blank for unlimited
Alert at 70%ONSend email when 70% consumed
Alert at 90%ONSend email when 90% consumed
Alert at 100%ONSend email when cap is hit
Action at 100%block or warnBlock further requests or just notify
StatusYesActive / Paused

Alert notifications

Alert emails are sent to the site administrator email address when a threshold is crossed.

Example email subject: [JoomlaAI] Budget alert — Editors group has used 90% of monthly token cap

To change the alert recipient, update the From email in Configuration → Mail (Joomla) or Settings → Email (WP).


Real-time budget widget

The Dashboard shows a Budget used KPI card. When any rule reaches 90% it turns amber; at 100% it turns red.

The Health Check view also shows budget status under the Budget section.


FREE_ONLY mode

If no provider API keys are configured, the system enters FREE_ONLY mode: only locally-hosted providers (Ollama) are available and budget tracking is skipped. This is shown on the Dashboard and Budget pages as an informational banner.


Token pricing reference

Token costs are calculated using the rates in PricingHelper. Approximate rates:

ProviderModelInput (per 1M tokens)Output (per 1M tokens)
ClaudeHaiku 4.5$0.80$4.00
ClaudeSonnet 4$3.00$15.00
ClaudeOpus 4.1$15.00$75.00
OpenAIGPT-4o mini$0.15$0.60
OpenAIGPT-4o$2.50$10.00
GeminiFlash 2.0$0.075$0.30
GroqLlama 3.3 70B$0.59$0.79

Rates are approximate and may change. Always verify at the provider's pricing page.


Permissions

CapabilityAccess
joomlaai.budget / wpai_manage_budgetCreate and edit budget rules
core.admin / manage_optionsDelete budget rules
core.manage / wpai_dashboardView budget (read-only)

_Last updated: 2026-05-19 · v2.5.3_

Kepp in touch!
Send us your questions and needings
reCAPTCHA v3: Please set your Site and Secret key in the configuration page.

Copyright www.fuerteventuratv.net © From 2011. All Rights Reserved.