No backends. No leaked keys. Just drop in our SDK.
Compiler is the simplest way to integrate AI features into your app.
No servers and no complicated infrastructure required.
Implement Sign in with Apple in a few lines of code.
// MARK: - ContentView.swift
import SwiftUI
import AuthenticationServices
import CompilerSwiftAI
struct ContentView: View {
private let client = CompilerClient(appId: UUID(uuidString: "YOUR-APP-ID-HERE")!)
var body: some View {
SignInWithAppleButton(
...
onCompletion: { result in
Task {
// Sign in with Apple to authenticate users in one line of code
isAuthenticated = try await client.attemptAutoLogin()
}
}
)
}
}
Proxy OpenAI, Anthropic, or Perplexity in one line of code.
import SwiftUI
import CompilerSwiftAI
func generateText(messages: [Message]) async throws -> String {
let response = try await client.makeModelCall(
using: .openAI(.gpt4oMini),
messages: messages
)
return response.text
}