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 device factors like:

  • The device must support Apple Intelligence.

  • Apple Intelligence must be turned on in Settings.

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