FoundationModels.Initialize
---------------------------

Initializes Foundation Models by loading a system model.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FoundationModels](component_FoundationModels.md) | [15.5](newinversion155.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "FoundationModels.Initialize" { ; UseCase; Guardrails } ) 

**MBS**( **"FoundationModels.Initialize";** /\* Initializes Foundation Models by loading a system model. \*/  
**$UseCase**; /\* Optional; Value can be nothing, "General" or "ContentTagging".  
Default is general.e.g. "General" \*/   
**$Guardrails**) /\* Optional; Value can be nothing, "Default" or "PermissiveContentTransformations".  
Default is the default mode.e.g. "Default" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| UseCase | Value can be nothing, "General" or "ContentTagging".   Default is general. | "General" | Optional |
| Guardrails | Value can be nothing, "Default" or "PermissiveContentTransformations".   Default is the default mode. | "Default" | Optional |

### Result

Returns identifier or error.

### Description

Initializes Foundation Models by loading a system model.  
Loads a system language model for a specific use case.  
### Examples

Loads with default settings:

 Set Variable \[ $r ; Value: MBS ( "FoundationModels.Initialize" ) \]  
### See also

- [FoundationModels.Available](FoundationModelsAvailable.md)
- [FoundationModels.ContextSize](FoundationModelsContextSize.md)
- [FoundationModels.Respond](FoundationModelsRespond.md)

### Example Databases

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

### Blog Entries

- [New in MBS FileMaker Plugin 15.5](https://www.mbsplugins.de/archive/2025-11-25/New_in_MBS_FileMaker_Plugin_15/monkeybreadsoftware_blog_filemaker)
- [Use Foundation Models in FileMaker](https://www.mbsplugins.de/archive/2025-10-02/Use_Foundation_Models_in_FileM/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 26th September 2025 , last changed 27th September 2025

  
[FoundationModels.GetTemperature](FoundationModelsGetTemperature.md) - [FoundationModels.List](FoundationModelsList.md)

[HTML Version](FoundationModelsInitialize.shtml)