Component: FoundationModels 
----------------------------

Functions for Foundation Models from Apple to run a local AI LLM model with Apple Intelligence.

See also [Llama](component_Llama.md) functions for cross platform solutions.

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [15.5](newinversion155.md "First functions introduced with version 15.5.") / [16.2](newinversion162.md "Newest functions in version 16.2.") | ✅ Yes | ❌ No | ❌ No | 🔶 11%, on macOS | ✅ Yes |

  
| Item | Details | Server |
|:--|:--|:--|
| [FoundationModels.Available](FoundationModelsAvailable.md)   Checks whether the model is available. | Mac/iOS   15.5 | ❌ Server |
| [FoundationModels.AvailableStatus](FoundationModelsAvailableStatus.md)   Queries the availability. | Mac/iOS   15.5 | ❌ Server |
| [FoundationModels.BeginSession](FoundationModelsBeginSession.md)   Start a new session in blank slate state with instructions. | Mac/iOS   15.5 | ❌ Server |
| [FoundationModels.CloseSession](FoundationModelsCloseSession.md)   Closes the current model session. | Mac/iOS   15.5 | ❌ Server |
| [FoundationModels.ContextSize](FoundationModelsContextSize.md)  **New in 16.2**    The maximum context size (in tokens) supported by the model. | Mac/iOS   16.2 | ✅ Server |
| [FoundationModels.GetMaximumResponseTokens](FoundationModelsGetMaximumResponseTokens.md)   Queries the maximum number of tokens the model is allowed to produce in its response. | Mac/iOS   15.5 | ❌ Server |
| [FoundationModels.GetTemperature](FoundationModelsGetTemperature.md)   Queries the temperature. | Mac/iOS   15.5 | ❌ Server |
| [FoundationModels.Initialize](FoundationModelsInitialize.md)   Initializes Foundation Models by loading a system model. | Mac/iOS   15.5 | ❌ Server |
| [FoundationModels.List](FoundationModelsList.md)   Returns the list of model identifiers. | Mac/iOS   15.5 | ❌ Server |
| [FoundationModels.Prewarm](FoundationModelsPrewarm.md)   Prewarm the model. | Mac/iOS   15.5 | ❌ Server |
| [FoundationModels.Release](FoundationModelsRelease.md)   Release memory for a loaded model. | Mac/iOS   15.5 | ❌ Server |
| [FoundationModels.ReleaseAll](FoundationModelsReleaseAll.md)   Releases all models. | Mac/iOS   15.5 | ❌ Server |
| [FoundationModels.Respond](FoundationModelsRespond.md)   Produces a response to a prompt. | Mac/iOS   15.5 | ❌ Server |
| [FoundationModels.SetMaximumResponseTokens](FoundationModelsSetMaximumResponseTokens.md)   Sets the maximum number of tokens the model is allowed to produce in its response. | Mac/iOS   15.5 | ❌ Server |
| [FoundationModels.SetTemperature](FoundationModelsSetTemperature.md)   Sets the temperature. | Mac/iOS   15.5 | ❌ Server |
| [FoundationModels.SupportedLanguages](FoundationModelsSupportedLanguages.md)   Queries the languages that the model supports. | Mac/iOS   15.5 | ❌ Server |
| [FoundationModels.SupportsLocale](FoundationModelsSupportsLocale.md)   Returns a Boolean indicating whether the given locale is supported by the model. | Mac/iOS   15.5 | ❌ Server |
| [FoundationModels.TokenCount](FoundationModelsTokenCount.md)  **New in 16.2**    Returns the token count for the specified instructions. | Mac/iOS   16.2 | ✅ Server |
| [FoundationModels.Transcript](FoundationModelsTranscript.md)   A full history of interactions, including user inputs and model responses. | Mac/iOS   15.5 | ❌ Server |

19 functions shown.

### Release notes

- **Version 16.2**
    - Added [FoundationModels.ContextSize](https://www.mbsplugins.eu/FoundationModelsContextSize.shtml) and [FoundationModels.TokenCount](https://www.mbsplugins.eu/FoundationModelsTokenCount.shtml) functions for macOS/iOS 26.4.
- **Version 15.5**
    - Added [FoundationModels](https://www.mbsplugins.eu/component_FoundationModels.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin 16.2 News](https://www.mbsplugins.de/archive/2026-05-20/MBS_FileMaker_Plugin_162_News/monkeybreadsoftware_blog_filemaker)
- [AI Development with the MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2026-04-16/AI_Development_with_the_MBS_Fi/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 15.5 für Claris FileMaker](https://www.mbsplugins.de/archive/2025-11-18/Neues_MBS_Plugin_155_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 15.5 for Claris FileMaker](https://www.mbsplugins.de/archive/2025-11-18/MBS_Plugin_155_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [Use Foundation Models in FileMaker](https://www.mbsplugins.de/archive/2025-10-02/Use_Foundation_Models_in_FileM/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.5pr1](https://www.mbsplugins.de/archive/2025-10-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

### Example Databases

- [Mac and iOS/Foundation Models](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Foundation%20Models.shtml#1ScriptAnchor_)

[HTML Version](component_FoundationModels.shtml)