Skip to content

Support Private Cloud Compute model sessions (iOS 27) #26

Open

Description

@corasan

Why

iOS 27 lets apps run sessions on Apple's server models through PrivateCloudComputeLanguageModel (AFM 3 Cloud, 32K context, reasoning). It is free below 2M first-time downloads with a per-user daily quota. For tasks too large for the on-device model this is the biggest capability jump available.

Proposal

const session = new LanguageModelSession({ model: 'privateCloudCompute', instructions })
checkPrivateCloudComputeAvailability()
// { isAvailable, status: 'available' | 'unavailable.deviceNotEligible' | 'unavailable.systemNotReady', quota: { status: 'belowLimit' | 'limitReached', isApproachingLimit, resetDate } }
showQuotaLimitIncreaseSuggestion()
  • Session creation goes through the iOS 27 LanguageModelSession(model: some LanguageModel, …) initializer.
  • Map PrivateCloudComputeLanguageModel.Error (networkFailure, quotaLimitReached(resetDate:), serviceUnavailable) to NETWORK_FAILURE, QUOTA_LIMIT_REACHED (with resetDate in details), SERVICE_UNAVAILABLE.
  • contextSize and supportedLanguages are async on this model, unlike SystemLanguageModel.
  • useCase and guardrails do not apply; the TS types should make that combination impossible.

Blockers

  • Requires a managed entitlement ("Accessing Private Cloud Compute"). Document how an Expo app adds it (config plugin or ios.entitlements).
  • Needs a network-connected device to verify; the simulator may not reach PCC.

Activity

  1. added
    enhancementNew feature or request
    ios-27Foundation Models APIs added in iOS 27
    on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestios-27Foundation Models APIs added in iOS 27

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions