Contents

PrivateCloudComputeLanguageModel

A variant of Apple Foundation Models that runs on Private Cloud Compute (PCC) to provide enhanced capabilities while maintaining privacy guarantees.

Declaration

final class PrivateCloudComputeLanguageModel

Mentioned in

Overview

To use the server-based model that powers Apple Intelligence, you change a single line of code that you apply when creating your LanguageModelSession.

// Create a session with the server-side model.
let session = LanguageModelSession(model: PrivateCloudComputeLanguageModel())
let response = try await session.respond(to: "Analyze this document...")

Before using the model, verify its availability. Model availability depends on whether the device and region supports Apple Intelligence. For a list of supported devices, see Apple Intelligence.

Topics

Creating an instance

Inspecting the availability

Getting the quota

Accessing the context size

Handling language and locales

Accessing the error

See Also

Private Cloud Compute