WHMCS module for MozOut All in One AI: offer AI chat, images, video and voice to your WHMCS clients https://docs.mozout.com
  • PHP 95.4%
  • Go Template 4.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-28 09:40:57 +02:00
.github Add CI workflow and Dependabot 2026-11-28 09:14:50 +02:00
modules/servers/mozout_ai Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
CHANGELOG.md Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
LICENSE Initial release (1.0.0) 2026-11-27 22:29:25 +02:00
README.md Add badges and improve description 2026-11-28 09:40:57 +02:00
README.pt.md Add badges and improve description 2026-11-28 09:40:57 +02:00
repo.json Add badges and improve description 2026-11-28 09:40:57 +02:00

MozOut WHMCS All in One AI module

CI Release License: MIT

Português

API: https://api.mozout.com, built in. Create your key in the API Center of My MozOut. Documentation: https://docs.mozout.com

For resellers who sell AI credit packs in their own WHMCS. Your customer gets a balance of credits and asks questions to the AI models in the client area of your WHMCS.

How it works

The brand API has one AI credit balance per account: yours. The module keeps, for each WHMCS service, how many credits the customer has and how many were used. Each answer costs what the API rules say (tokens times the model price, rounded up to 0.01, minimum 0.01), and the real cost comes out of your AI balance at the brand.

Install

  1. Copy modules/servers/mozout_ai into the same folder of your WHMCS.
  2. Setup > Servers > Add server: module "MozOut All in One AI (API)", hostname api.mozout.com, password = API key (username sandbox or production, optional).
  3. In the product, Module tab: credits per period, renewal mode, allowed models and max tokens per answer.
  4. Key permissions: ai:read and ai:write; add billing:purchase if the module should also buy the credits at the brand.

Languages

The code is in English. The texts live in lang/english.php and lang/portuguese.php. In the admin area they follow the admin's language and in the client area the client's language: any WHMCS language whose name starts with "portuguese" (portuguese-pt, portuguese-br...) uses Portuguese, every other language uses English. The "Message language" option of the product can force English or Portuguese for the module messages; "Automatic" is the default.

Good to know

  • Keep your AI balance at the brand above what your customers can spend. Without it, answers stop for everyone.
  • "Buy the credits at the brand" buys at least 1,000 credits at a time, with your account credit.
  • Questions and answers are never stored or logged. Only the model, the tokens and the cost are kept.
  • A Coding Plan is one per account, so it cannot be resold per customer through this module.
  • With a sandbox_ key, chat answers "Resposta de teste (sandbox)." and costs 0.
  • Product settings saved with version 1.0.0 keep working.

Maintained by RLX Holdings.