One Logo Pool Ball
FoundationModels · IOS API REFERENCE

PrivateCloudComputeLanguageModel

class · iOS 27.0+ · SDK 27.1

final class PrivateCloudComputeLanguageModel

A variant of Apple Foundation Models that runs on Private Cloud Compute to provide enhanced capabilities while maintaining privacy guarantees. To use the server-based model that powers Apple Intelligence, you change a single line of code that you apply when creating your ``LanguageModelSession``. ```swift // 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](https://www.apple.com/apple-intelligence/). > Important: To develop with PCC you must meet certain eligibility requirements. To learn more and request access to the managed entitlement, see [Accessing Private Cloud Compute](https://developer.apple.com/private-cloud-compute/).

Members (9)

get · iOS 27.0+

quotaUsage

TypeScript
get quotaUsage(): PrivateCloudComputeLanguageModel_QuotaUsage
Swift declaration
final var quotaUsage: PrivateCloudComputeLanguageModel.QuotaUsage { get }

The usage quota for this model.

get · iOS 27.0+

contextSize

TypeScript
get contextSize(): Promise<number>
Swift declaration
nonisolated(nonsending) final var contextSize: Int { get async throws }

The maximum context size in tokens supported by the model. The context size represents the total number of tokens that can be used in a single session, including both input prompts and generated responses.

get · iOS 27.0+

isAvailable

TypeScript
get isAvailable(): boolean
Swift declaration
final var isAvailable: Bool { get }

A Boolean value that indicates whether the system is entirely ready.

get · iOS 27.0+

availability

TypeScript
get availability(): PrivateCloudComputeLanguageModel_Availability
Swift declaration
final var availability: PrivateCloudComputeLanguageModel.Availability { get }

The availability of the language model.

get · iOS 27.0+

capabilities

TypeScript
get capabilities(): LanguageModelCapabilities
Swift declaration
final var capabilities: LanguageModelCapabilities { get }

The capabilities of this language model. If a developer attempts to use capabilities that your model does not support, the system automatically throws an error for you instead of calling a respond method, like ``LanguageModelSession/respond(to:options:)-(Prompt,_)`` or ``LanguageModelSession/streamResponse(to:options:)-(Prompt,_)``.

method · iOS 27.0+

supportsLocale

TypeScript
supportsLocale(locale?: _Foundation_Locale): Promise<boolean>
Swift declaration
nonisolated(nonsending) final func supportsLocale(_ locale: Locale = Locale.current) async throws -> Bool

Returns a Boolean value that indicates whether the given locale is supported by the model. Use this method over ``supportedLanguages`` to check whether the given locale qualifies a person for using this model, as this method also takes language fallbacks into consideration.

get · iOS 27.0+

supportedLanguages

TypeScript
get supportedLanguages(): Promise<Array<_Foundation_Locale_Language>>
Swift declaration
nonisolated(nonsending) final var supportedLanguages: Set<Locale.Language> { get async throws }

Languages that the model supports. To check if a given locale is considered supported by the model, use ``supportsLocale(_:)``, which also takes language fallbacks into consideration.

get · iOS 27.0+

executorConfiguration

TypeScript
get executorConfiguration(): PrivateCloudComputeLanguageModel_Executor_Configuration
Swift declaration
final var executorConfiguration: PrivateCloudComputeLanguageModel.Executor.Configuration { get }

A configuration for an executor capable of running this model.

init · iOS 27.0+

init

TypeScript
static init(): PrivateCloudComputeLanguageModel
Swift declaration
convenience init()

Creates a Private Cloud Compute language model instance.

Skipped declarations

No declarations were skipped in this snapshot.

All FoundationModels types →