The local ai is used by Apple services, mostly. Though there is a Swift SDK to access it, apparently.