1

Add the dependency to your package manager

dependencies: [
    .package(url: "https://github.com/trymirai/uzu-swift.git", from: "0.1.15")
]
2

Create and activate the engine

let engine = UzuEngine()
let status = try await engine.activate(apiKey: resolvedApiKey)
The license status can have one of the following values:
NotActivated
PaymentRequired
GracePeriodActive
Activated
NetworkError
InvalidApiKey
SignatureMismatch
Timeout
HttpError
If the device has no network connection, the SDK won’t be able to validate the API key but will keep working for a grace period.
If you run your app right now, you’ll see in the Platform that your project is marked as activated.

Now let’s choose the model we’ll use in the app