Empower your app with free on-device intelligence and the cloud when you need it
all
without burning your budget.
When you use on-device AI intelligence, your token costs go to $0. That means
you can build smarter apps that will delight your users without worrying about unexpected bills or usage
limits.
Learn more
Need large context windows, image analysis, or complex reasoning? Change one line of code and you're running in the cloud. Use the best open weight models like DeepSeek R1, Kimi K2, and GPT OSS 120B.
import FreeToken
let pdfContent = PDFReader(url: pdfURL).extractText()
let client = FreeToken.shared
await client.generateCompletion(
prompt: "Summarize the following document:\n\(pdfContent)",
// đ Switch to the cloud in one line đ
model: "kimi_k2_cloud",
success: { completion in
print(completion.response)
}, error: { err in
print(err.localizedDescription)
}
)
Based on approximately 16k input tokens and 4k output tokens per conversation, with pricing from October 2025.
* 75% on-device AI, 25% cloud fallback
Keep your AI costs low and have 100% device compatibility by using a hybrid AI approach. The FreeToken SDK automatically uses on-device AI when the device supports it and the cloud when it doesn't -- making your app experience seamless to your users and cost-efficient for you.
Keep your user's data private, with built-in 256-bit encryption for all
document and chat data. It's so simple you set it up in two lines of code.
Learn more
import FreeToken
let client = FreeToken.shared
// Generate a key on first run - store it in Keychain.
// đ Everything is encrypted after this
let userPrivateKey = client.enableEncryption(scope: .userPrivate)
// Reuse your key on next app start, load it from Keychain, then:
client.configure(
appToken: "[YOUR-APP-TOKEN]",
userPrivateEncryptionKey: userPrivateKey)
Integrate specific information into the AI's available knowledge with one-click
RAG integration. All you have to do is upload your content.
Learn more
Allow the AI to interact with your app and external systems using built-in function
calling. Whether it's fetching real-time data, performing calculations, or triggering actions, FreeToken
makes it simple to give the AI agency.
Learn more
Perfect for developers and startups building AI-powered apps.
Run production apps with full functionality, onboarding and support.
We're here to help you integrate AI into your app seamlessly. Whether you need technical assistance, have feature requests, custom needs, our team is ready to assist you.