This guide covers only the simplest steps to run an LLM on your device. For a detailed, step-by-step explanation of how everything works, see the full integration guide.
1
Create a new SwiftUI project

2
Add the SDK
Add this package through SPM:
4
Paste the snippet
Go to
ContentView.swift
and add this snippet:Don’t forget to add your API key.
5
Add the snippet call
Now that we’ve tried the simplest snippet, let’s take a look at the step-by-step integration guide.