Docs
Managing Free and Paid Users

Managing Free and Paid Users

Context

Freemium apps that want to control costs and remain margin neutral can do so by configuring Argmax SDK such that:

  • Free end-users are routed to Argmax Open-source SDK
  • Paid end-users are routed to Argmax Pro SDK

This page demonstrates various ways to implement this user cohort separation.

Argmax Pro SDK feature set is a superset of the Argmax Open-source SDK so please refer to the Open-source vs Pro SDK page for the subset of functionalities that can be gracefully downgraded to Open-source.

Code

Approach 1

This approach assumes you have a Paywall implementation that separates your users into free and paid like so:

import Argmax
...
let whisperKit: WhisperKit
 
if Paywall.shared.proFeaturesEnabled {
    await ArgmaxSDK.with(ArgmaxConfig(apiKey: Constants.argmaxAPIKey))
    let config = WhisperKitProConfig(...)
    whisperKit = try await WhisperKitPro(config)
} else {
    let config = WhisperKitConfig(...)
    whisperKit = try await WhisperKit(config)
}
...

Approach 2

Coming soon.