WHMCS module for Interweb Mozambique All in One AI: offer AI chat, images, video and voice to your WHMCS clients https://docs.interweb.co.mz
  • PHP 93.2%
  • Go Template 6.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-01 13:45:48 +02:00
assets Version 1.1.1: API key checked when it is saved, brand logo 2026-12-01 13:45:48 +02:00
modules/servers/interweb_mz_ai Version 1.1.1: API key checked when it is saved, brand logo 2026-12-01 13:45:48 +02:00
CHANGELOG.md Version 1.1.1: API key checked when it is saved, brand logo 2026-12-01 13:45:48 +02:00
LICENSE Initial release (1.0.0) 2026-11-28 15:28:05 +02:00
README-pt.md Version 1.1.1: API key checked when it is saved, brand logo 2026-12-01 13:45:48 +02:00
README.md Version 1.1.1: API key checked when it is saved, brand logo 2026-12-01 13:45:48 +02:00
repo.json Initial release (1.0.0) 2026-11-28 15:28:05 +02:00

Interweb

Interweb Mozambique WHMCS All in One AI module

Release License: MIT

Português

API: https://api.interweb.co.mz, built in. Create your key in the API Center of Meu Interweb. Documentation: https://docs.interweb.co.mz

For resellers who sell AI credit packs in their own WHMCS. Your customer gets a balance of credits, asks questions to the AI models and creates images, videos and voice on the service page 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.

Images, video and voice

Since 1.1.0 the service page also creates images, videos and voice from a text. The models come from the "Image, video and voice models" setting (empty = off), and only models that need just a text show. When the customer creates, the module holds the credits the API reserves; when the generation ends, the service pays the real cost, or gets the credits back if it failed. The page checks the status by itself every few seconds. The links to the files are not permanent: the customer should download them.

Install

  1. Download interweb_mz_ai.zip from the latest release and unzip it in the main folder of your WHMCS (the one with configuration.php). The files go straight to modules/servers/interweb_mz_ai. Do not use "Download ZIP" on the code page: it adds an extra folder and WHMCS will not find the module.
  2. Setup > Servers > Add server: module "Interweb Mozambique All in One AI (API)", hostname api.interweb.co.mz, password = API key (username sandbox or production, optional). When you save the server, the module checks the key and shows the result at the top of the Servers page.
  3. In the product, Module tab: credits per period, renewal mode, allowed models, max tokens per answer and the image, video and voice models.
  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; an image, a video or a voice ends at once with an example file and costs 0.
  • The text of an image, a video or a voice is not stored either. Only the model, the status, the credits and the links are kept.
  • Product settings saved with versions 1.0.x keep working (images, video and voice stay off until you fill in the new setting).

Maintained by RLX Holdings.