WHMCS All in One AI module: downloading it, installing it and connecting your API key

API & DocumentationWHMCS Modules·· 121 views· 3 min read

The All in One AI module lets you sell AI credit packs in your WHMCS. This article covers what it takes to get it running: where to download it, how to install it and which key to give it. For the balance, the product options and what the customer sees, see offering All in One AI to your own customers from WHMCS.

What it does

Your customer gets a balance of credits and, on the service page of your WHMCS, asks the AI models questions and creates images, videos and voice. The real cost comes out of your AI balance at MozOut.

What you need

A working WHMCS, with access to its main folder (the one with configuration.php), and your MozOut account with an AI balance and an API key. You create the key in the API Center of My MozOut.

Installing, step by step

1 Download mozout_ai.zip from the latest release.
2 Unzip it in the main folder of your WHMCS. The files go straight to modules/servers/mozout_ai.
3 Open Setup > Servers > Add server and pick the "MozOut All in One AI (API)" module. Type api.mozout.com as the hostname and paste the API key as the password.
4 In the product, on the Module tab, fill in the credits per period, the renewal mode, the allowed models, the max tokens per answer and the image, video and voice models.
Do not use "Download ZIP" on the code page. That zip adds an extra folder and WHMCS will not find the module. The right file is mozout_ai.zip, attached to the release.

The API key and its permissions

The key needs ai:read and ai:write. Add billing:purchase only if the module should also buy the credits at the brand. See how to create a key and pick its permissions.

The server username is optional: sandbox or production. When you save the server, the module checks the key and shows the result at the top of the Servers page.

Testing without spending

With a sandbox_ key, the chat answers "Resposta de teste (sandbox)." and costs 0. An image, video or voice job finishes at once with an example file, and costs 0 too. Set up the product that way and switch to the prod_ key at the end.

Good to know

Your balance: keep your AI balance at the brand above what your customers can spend. Without it, answers stop for everyone.

Buying credits: the "Buy the credits at the brand" option buys at least 1,000 credits at a time, with your account credit.

Privacy: questions, answers and the text of images, videos and voice are never stored. For chat, only the model, the tokens and the cost are kept; for images, videos and voice, the model, the status, the credits and the links.

Updating: product settings saved with versions 1.0.x keep working. Images, video and voice stay off until you fill in the new setting.

Help

If the module shows an error you do not understand, open a support ticket and tell us the module version and the message you see. The code is in the module repository, under the MIT license.

Ready to sell AI from your WHMCS?

Download the latest release

SEE ALSO

Offering All in One AI to your own customers from WHMCS

Testing All in One AI in the Sandbox

Creating an API key

The repository on MozOut Git

SDKs and integrations, in the API documentation

RECOMMENDED PRODUCT

Reseller hosting with WHM

Create, host and bill your own plans, under your own brand. from ₦53,358.75/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.