- PHP 95.4%
- Go Template 4.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github | ||
| modules/servers/mozout_mz_ai | ||
| CHANGELOG.md | ||
| LICENSE | ||
| README.md | ||
| README.pt.md | ||
| repo.json | ||
MozOut Mozambique WHMCS All in One AI module
API:
https://api.mozout.co.mz, built in. Create your key in the API Center of Meu MozOut. Documentation: https://docs.mozout.co.mz
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
- Copy
modules/servers/mozout_mz_aiinto the same folder of your WHMCS. - Setup > Servers > Add server: module "MozOut Mozambique All in One AI (API)", hostname
api.mozout.co.mz, password = API key (usernamesandboxorproduction, optional). - In the product, Module tab: credits per period, renewal mode, allowed models and max tokens per answer.
- Key permissions:
ai:readandai:write; addbilling:purchaseif 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.