Docs
Counting Active Licenses

Counting Active Licenses

Context

The vast majority of inference services follow usage-based billing, which leads to unpredictable variations in costs per month and makes it hard for companies to charge a flat fee per end-user.

Argmax does not follow usage-based billing. Instead, Argmax follows device-based billing which corresponds to a flat and predictable fee multiplied by the count of monthly active devices. This page shows you how to count active device licenses to estimate your bill and control your costs even further.

What is an active device license?

A device license is created upon the first successful initialization of ArgmaxSDK that unlocks Pro SDK features and models. The device license is considered active for a given calendar month if ArgmaxSDK is initialized at least once during that calendar month.

A device license becomes inactive if ArgmaxSDK is not initialized during the whole calendar month. Billing cycles follow calendar months.

Code

In order to independently estimate your bill, you may fully recreate Argmax's billing logic in your code in just 2 lines:

import Argmax
...
// Initialize Argmax SDK
let myAPIKey: String = "ax_..."
await ArgmaxSDK.with(ArgmaxConfig(apiKey: myAPIKey))
 
// Collect License ID information on each device
let licenseId = await ArgmaxSDK.licenseInfo().licenseId

Argmax bills the customer based on the cardinality of the licenseId field in License Server logs for each org rolled up during each calendar month.

Note that you may keep using open-source features for your free users and only enable ArgmaxSDK behind your paywall implementation. Please see Managing Free and Paid Users.